|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2009-11-11 17:12 UTC] felipe@php.net
  [2009-11-11 17:13 UTC] svn@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 08:00:01 2025 UTC | 
Description: ------------ When I ran 'gmake test' on my PHP6 tree on Solaris 10 (SPARC), I noticed many test failures. The following patch fixes many(~350) of these test failures: Index: Zend/zend_object_handlers.c =================================================================== --- Zend/zend_object_handlers.c (revision 290471) +++ Zend/zend_object_handlers.c (working copy) @@ -198,7 +198,7 @@ ulong h; if ((Z_TYPE_P(member) == IS_UNICODE && Z_USTRVAL_P(member)[0] == 0) || - Z_STRVAL_P(member)[0] == '\0') { + (Z_TYPE_P(member) == IS_STRING && Z_STRVAL_P(member)[0] == '\0')) { if (!silent) { if (Z_UNILEN_P(member) == 0) { zend_error(E_ERROR, "Cannot access empty property"); Reproduce code: --------------- % sapi/cli/php tests/classes/__call_001.php Expected result: ---------------- Method test called: array(4) { [0]=> int(1) [1]=> unicode(1) "2" [2]=> float(3.4) [3]=> bool(true) } array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } Actual result: -------------- Method test called: array(4) { [0]=> int(1) [1]=> unicode(1) "2" [2]=> float(3.4) [3]=> bool(true) } Fatal error: Cannot access property started with '\0' in /space/arvind/php-src-6/tests/classes/__call_001.phpt on line 14