projects
/
php-ancillary.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support for php5.6.30
[php-ancillary.git]
/
php-ancillary.c
diff --git
a/php-ancillary.c
b/php-ancillary.c
index
9ca16fd
..
b79a92a
100644
(file)
--- a/
php-ancillary.c
+++ b/
php-ancillary.c
@@
-149,7
+149,13
@@
PHP_FUNCTION(ancillary_getstream);
// list of custom PHP functions provided by this extension
// set {NULL, NULL, NULL} as the last record to mark the end of list
// list of custom PHP functions provided by this extension
// set {NULL, NULL, NULL} as the last record to mark the end of list
-static function_entry ancillary_getstream[] = {
+static
+#if ZEND_MODULE_API_NO >= 20131226
+ zend_function_entry
+#elif ZEND_MODULE_API_NO >= 20010901
+ function_entry
+#endif
+ ancillary_getstream[] = {
PHP_FE(ancillary_getstream, NULL)
{NULL, NULL, NULL}
};
PHP_FE(ancillary_getstream, NULL)
{NULL, NULL, NULL}
};
@@
-236,6
+242,10
@@
PHP_FUNCTION(ancillary_getstream)
}
shutdown(fd_out[1], SHUT_RDWR);
close(fd_out[1]);
}
shutdown(fd_out[1], SHUT_RDWR);
close(fd_out[1]);
+ write(1, "HEADERS[", 8);
+ write(1, headers, curpos);
+ headers[curpos] = '\0';
+ write(1, "]\n", 2);
ZVAL_STRING(zheaders, headers, 1);
free(headers);
ZVAL_STRING(zheaders, headers, 1);
free(headers);
@@
-263,7
+273,7
@@
PHP_FUNCTION(ancillary_getstream)
if (stream == NULL) {
pefree(sock, 0);
if (stream == NULL) {
pefree(sock, 0);
- return
NULL
;
+ return;
}
php_stream_to_zval(stream, return_value);
}
}
php_stream_to_zval(stream, return_value);
}