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

Patch pass-by-ref-proto-check.patch for *General Issues Bug #66331

Patch version 2013-12-20 17:56 UTC

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

Developer: remi@php.net

diff -up Zend/zend_compile.c.old Zend/zend_compile.c
--- Zend/zend_compile.c.old	2013-12-20 18:54:27.817018413 +0100
+++ Zend/zend_compile.c	2013-12-20 18:54:37.015050252 +0100
@@ -3209,7 +3209,7 @@ static zend_bool zend_do_perform_impleme
 		}
 
 		/* by-ref constraints on arguments are invariant */
-		if (fe->common.arg_info[i].pass_by_reference != proto->common.arg_info[i].pass_by_reference) {
+		if ((fe->common.arg_info[i].pass_by_reference>0) != (proto->common.arg_info[i].pass_by_reference>0)) {
 			return 0;
 		}
 	}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 22:01:29 2024 UTC