php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch php-pecl-parsekit-1.3-php56-variadic-fix.patch for parsekit Bug #67854

Patch version 2014-08-18 08:56 UTC

Return to Bug #67854 | Download this patch
Patch Revisions:

Developer: pahan@hubbitus.info

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);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC