#28488 [Opn->Bgs]: No warning reported when using string as object

From: Date: Fri, 14 Jan 2005 23:13:35 +0000
Subject: #28488 [Opn->Bgs]: No warning reported when using string as object
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72185@lists.php.net to get a copy of this message
ID: 28488 Updated by: tony2001@php.net Reported By: tomas dot matousek at matfyz dot cz -Status: Open +Status: Bogus -Bug Type: Scripting Engine problem +Bug Type: Zend Engine 2 problem Operating System: WinXP PHP Version: 5.0.0RC2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Use error_reporting(E_ALL|E_STRICT); to turn on E_STRICT notices. Previous Comments: ------------------------------------------------------------------------ [2004-05-22 13:15:22] tomas dot matousek at matfyz dot cz Description: ------------ PHP should report a warning if -> operator is used on a string. Reproduce code: --------------- <? $x = "sdfs"; $x->y->z = 1; var_dump($x); ?> Expected result: ---------------- Warning: ... string(4) "sdfs" Actual result: -------------- string(4) "sdfs" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28488&edit=1

« previous php.bugs (#72185) next »