|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-07 08:28 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 20:00:01 2025 UTC |
Description: ------------ Using the script below causes PHP to crash with a segfault. I would expect PHP to catch a recursion like this and report an error through php_error or some such. Reproduce code: --------------- <?php class A { function last_error() { return $this->last_error(); } } $a = new A(); echo $a->last_error(); exit(0); ?> Expected result: ---------------- I expect an error along the lines of: brk() problem when calling function last_error(). Cannot increase stack space. Actual result: -------------- Segmentation fault