Hi!

As of now, zend_parse_method_parameters_ex does ignore the ex-flags if
called in a procedural context.

NB: Calling it in a procedural context is explicitely handled in the
code! It's not a false use of the function.

I suppose, the body was copied from zend_parse_method_parameters and the
"flags" correction got lost in one case.

HP
diff -r 8d27b606e890 Zend/zend_API.c
--- a/Zend/zend_API.c	Wed Dec 23 10:40:28 2009 +0100
+++ b/Zend/zend_API.c	Wed Dec 23 13:00:50 2009 +0100
@@ -923,7 +923,7 @@
 		RETURN_IF_ZERO_ARGS(num_args, p, quiet);
 
 		va_start(va, type_spec);
-		retval = zend_parse_va_args(num_args, type_spec, &va, 0 TSRMLS_CC);
+		retval = zend_parse_va_args(num_args, type_spec, &va, flags TSRMLS_CC);
 		va_end(va);
 	} else {
 		p++;

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to