#35967 [Opn->Bgs]: control statement "return" problen

From: Date: Wed, 11 Jan 2006 07:24:43 +0000
Subject: #35967 [Opn->Bgs]: control statement "return" problen
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91757@lists.php.net to get a copy of this message
ID: 35967 Updated by: derick@php.net Reported By: sqchen at citiz dot net -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: redhat 7.3 PHP Version: 5.1.1 New Comment: This has nothing to do with return. You're creating a infinite recursion here (where foo() is calling foo()). This will exhaust the stack and PHP will crash. This is expected behavior. Previous Comments: ------------------------------------------------------------------------ [2006-01-11 07:15:05] sqchen at citiz dot net Description: ------------ the "return" control statement will cause segfault Reproduce code: --------------- <?php funciton foo() { return foo(); } foo(); Actual result: -------------- Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35967&edit=1

« previous php.bugs (#91757) next »