Created
May 20, 2015 20:26
-
-
Save SteelPangolin/864f0ddf7291eaa7eccf to your computer and use it in GitHub Desktop.
patch by @Hubbitus for Parsekit on PHP 5.6; see PHP bug #67854
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur php-pecl-parsekit-1.3.0.orig/parsekit-1.3.0/parsekit.c php-pecl-parsekit-1.3.0/parsekit-1.3.0/parsekit.c | |
--- php-pecl-parsekit-1.3.0.orig/parsekit-1.3.0/parsekit.c 2014-08-16 21:55:32.000000000 +0400 | |
+++ php-pecl-parsekit-1.3.0/parsekit-1.3.0/parsekit.c 2014-08-18 12:50:05.377165855 +0400 | |
@@ -300,7 +300,7 @@ | |
} | |
add_assoc_long(return_value, "num_args", ops->num_args); | |
add_assoc_long(return_value, "required_num_args", ops->required_num_args); | |
- add_assoc_bool(return_value, "pass_rest_by_reference", ops->fn_flags & ZEND_ACC_PASS_REST_BY_REFERENCE); | |
+ add_assoc_bool(return_value, "pass_rest_by_reference", ops->fn_flags & ZEND_ACC_VARIADIC); | |
if (ops->num_args && ops->arg_info) { | |
MAKE_STD_ZVAL(tmpzval); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally created by @Hubbitus for https://bugs.php.net/bug.php?id=67854. I'm just mirroring it.