|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-11-08 07:46 UTC] themylogin at gmail dot com
-Summary: strt converts unused variables to strings
+Summary: strtr converts unused variables to strings
[2013-11-08 07:46 UTC] themylogin at gmail dot com
[2013-11-13 08:36 UTC] laruence@php.net
[2013-11-13 08:42 UTC] laruence@php.net
-Assigned To:
+Assigned To: cataphract
[2013-11-13 08:42 UTC] laruence@php.net
[2017-09-20 10:45 UTC] tim_siebels_aurich at yahoo dot de
[2017-09-20 10:48 UTC] requinix@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 15 05:00:02 2025 UTC |
Description: ------------ With PHP 5.5.5 when I call php > strtr("a", array("a" => "b", "c" => new stdclass)); I get PHP Catchable fatal error: Object of class stdClass could not be converted to string in php shell code on line 1 This used to work with PHP 5.4 and there is no reason why it shouldn't work now (haystack does not contain "c", so variable with appropriate key should not be used anyway). Test script: --------------- strtr("a", array("a" => "b", "c" => new stdclass)); Expected result: ---------------- No error Actual result: -------------- PHP Catchable fatal error: Object of class stdClass could not be converted to string in php shell code on line 1