#25713 [Opn->Bgs]: endless self call loop
| From: | sniper@php.net | Date: | Wed, 01 Oct 2003 14:33:30 +0000 |
| Subject: | #25713 [Opn->Bgs]: endless self call loop | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-48379@lists.php.net to get a copy of this message | ||
ID: 25713
Updated by: sniper@php.net
Reported By: kevin at netflex dot nl
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Windows/Netware and maybe more
PHP Version: 4.3.3
New Comment:
1. You didn't search the bug database first
2. This is expected.
3. We won't "fix" it.
Previous Comments:
------------------------------------------------------------------------
[2003-10-01 10:08:45] kevin at netflex dot nl
The problem isn't with the call by ref. but with the following
situation:
if you have an function that calls himself endless then PHP crashes.
See the firt post for more information.
------------------------------------------------------------------------
[2003-10-01 09:53:36] kevin at netflex dot nl
Description:
------------
if you create an function that calls himself with an pass by ref.
variable then as a result PHP crashes.
tested with:
* PHP 5.0.0b2-dev (snapshot: php5-win32-200309251030.zip) on Windows
(Apache2 2.0.47 and Windows 2003)
* PHP 4.3.3 on Windows (Apache2 2.0.47 and Windows 2003)
* PHP 4.2.3 on Netware (Apache2 2.0.47 and Netware 6.5)
In the web browser appears the page: "can't find server"
and in the log files there is no information about the error/crash
Reproduce code:
---------------
crash($test = 0);
function crash(&$test) {
if ($test < 10)
crash($test);
$test++;
}
Expected result:
----------------
the variable test with an value of (int)10
Actual result:
--------------
with PHP4 on Windows only php crashes and with PHP5 on Windows and PHP4
on Netware both php and apache2 crashes.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25713&edit=1