diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-10-28 22:44:29 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-10-28 22:44:29 +0100 |
commit | 45e2dc692b9b0ad13c32444622d85c0353aaee42 (patch) | |
tree | bb8d56e43d2ff3475653bf8fa04f7b542eac9a18 | |
parent | 4bc7a91be71f833672cc52134e665ce0b08bd61c (diff) | |
download | php-git-45e2dc692b9b0ad13c32444622d85c0353aaee42.tar.gz |
Merge phpdbg into PHP-5.6
-rw-r--r-- | config.m4 | 1 | ||||
-rw-r--r-- | phpdbg_wait.c | 2 | ||||
-rw-r--r-- | phpdbg_webdata_transfer.c | 2 |
3 files changed, 5 insertions, 0 deletions
@@ -25,6 +25,7 @@ if test "$BUILD_PHPDBG" == "" && test "$PHP_PHPDBG" != "no"; then if ! test -d $abs_srcdir/ext/phpdbg_webhelper; then ln -s ../sapi/phpdbg $abs_srcdir/ext/phpdbg_webhelper fi + PHP_NEW_EXTENSION(phpdbg_webhelper, phpdbg_rinit_hook.c phpdbg_webdata_transfer.c, $ext_shared) fi PHP_PHPDBG_CFLAGS="-D_GNU_SOURCE" diff --git a/phpdbg_wait.c b/phpdbg_wait.c index bdce77180b..a8c7dd49cb 100644 --- a/phpdbg_wait.c +++ b/phpdbg_wait.c @@ -174,6 +174,7 @@ void phpdbg_webdata_decompress(char *msg, int len TSRMLS_DC) { free_zv = *zvpp; } +#if PHP_VERSION_ID >= 50600 if (zend_hash_find(ht, "input", sizeof("input"), (void **) &zvpp) == SUCCESS && Z_TYPE_PP(zvpp) == IS_STRING) { if (SG(request_info).request_body) { php_stream_close(SG(request_info).request_body); @@ -182,6 +183,7 @@ void phpdbg_webdata_decompress(char *msg, int len TSRMLS_DC) { php_stream_truncate_set_size(SG(request_info).request_body, 0); php_stream_write(SG(request_info).request_body, Z_STRVAL_PP(zvpp), Z_STRLEN_PP(zvpp)); } +#endif if (zend_hash_find(ht, "cwd", sizeof("cwd"), (void **) &zvpp) == SUCCESS && Z_TYPE_PP(zvpp) == IS_STRING) { if (VCWD_CHDIR(Z_STRVAL_PP(zvpp)) == SUCCESS) { diff --git a/phpdbg_webdata_transfer.c b/phpdbg_webdata_transfer.c index 1cbc4107b5..7c169ee113 100644 --- a/phpdbg_webdata_transfer.c +++ b/phpdbg_webdata_transfer.c @@ -49,6 +49,7 @@ PHPDBG_API void phpdbg_webdata_compress(char **msg, int *len TSRMLS_DC) { zend_hash_add(ht, "GLOBALS", sizeof("GLOBALS"), &zvp1, sizeof(zval *), NULL); } +#if PHP_VERSION_ID >= 50600 /* save php://input */ { php_stream *stream; @@ -64,6 +65,7 @@ PHPDBG_API void phpdbg_webdata_compress(char **msg, int *len TSRMLS_DC) { Z_SET_REFCOUNT(zv2, 2); zend_hash_add(ht, "input", sizeof("input"), &zvp2, sizeof(zval *), NULL); } +#endif /* change sapi name */ { |