|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-12-05 02:52 UTC] kalle@php.net
Description:
------------
Same type of crash as reported in #46156, instead of a crash a memory_limit error is expected.
Reproduce code:
---------------
<?php
class Crash
{
public function __toString()
{
return((string) new self);
}
}
echo new Crash;
?>
Expected result:
----------------
memory_limit error
Actual result:
--------------
Crash
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
The case reported is the same as my issue and the code posted in the original report still segfaults for me using 5.3.10. Admittedly I am using a packaged build from the current Ubuntu development branch ("precise" 12.04) and I know that Debian/Ubuntu do plenty of their own patching of the PHP sources, which I have sometimes found to create problems that don't otherwise exist. So that is why I came straight to the "upstream" bug tracker to see if the issue was known to exist for purer and/or newer builds. But how then to interpret the exact same bug already reported years back and rejected for being "not a bug"? There didn't seem to be any point in pursuing the issue in that case, hence some annoyance in my tone. But if PHP would indeed be interested to fix it, I'll check using latest, unaltered sources and file a new bug if it's still an issue...