|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-28 21:02 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 27 17:00:01 2025 UTC |
Description: ------------ Recursively calling two functions in a class leads to a segmentation fault. Reproduce code: --------------- class SegFault { public function call(){ $this->back(); } public function back(){ $this->call(); } } $seg = new SegFault(); $seg->Call(); Expected result: ---------------- I'd expect some kind of error when php runs out of buffer for the callstack - this function clearly is an example of bad code in the script - however php shouldnt die by segmentation fault. Actual result: -------------- Segmentation fault