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

Patch trait_arrayaccess_get_ref.patch for Scripting Engine problem Bug #64417

Patch version 2013-03-12 22:39 UTC

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

Developer: me@fixxxer.me

--- zend_compile.c.orig	2013-03-12 22:14:29.358900749 +0000
+++ zend_compile.c	2013-03-12 22:14:52.590900827 +0000
@@ -2953,11 +2953,11 @@
 		return 0;
 	}
 
-	/* by-ref constraints on return values are covariant */
+	/* by-ref constraints on return values are covariant
 	if ((proto->common.fn_flags & ZEND_ACC_RETURN_REFERENCE)
 		&& !(fe->common.fn_flags & ZEND_ACC_RETURN_REFERENCE)) {
 		return 0;
-	}
+	} */
 
 	for (i=0; i < proto->common.num_args; i++) {
 		if (ZEND_LOG_XOR(fe->common.arg_info[i].class_name, proto->common.arg_info[i].class_name)) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC