From: Operating system: windows xp PHP version: 5.3.8 Package: Class/Object related Bug Type: Bug Bug description:Return $this double quoted __toString
Description: ------------ If you try to return $this double quoted in __toString break all the system and does not even throw any exception or log anything. my php.ini have error_reporting = E_ALL | E_STRICT display_errors = On display_startup_errors = On log_errors = On report_memleaks = On report_zend_debug = 1 Test script: --------------- class test { public function __toString ( ) { return "$this"; } } $test = new test; echo $test; Expected result: ---------------- the string "$this" or the error exception Actual result: -------------- The server break completely and does not output nothing, not even the error log. The browser say "The connection has been reset". (The apache server is still logging the requests) -- Edit bug report at https://bugs.php.net/bug.php?id=60689&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60689&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60689&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60689&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60689&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60689&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60689&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60689&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60689&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60689&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60689&r=support Expected behavior: https://bugs.php.net/fix.php?id=60689&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60689&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60689&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60689&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60689&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60689&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60689&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60689&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60689&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60689&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60689&r=mysqlcfg