php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28337 endless recursion crashes Apache
Submitted: 2004-05-09 17:33 UTC Modified: 2004-05-17 21:39 UTC
From: wf at bitplan dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.0.0RC2 OS: Windows XP SP1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wf at bitplan dot com
New email:
PHP Version: OS:

 

 [2004-05-09 17:33 UTC] wf at bitplan dot com
Description:
------------
Endless recursion crashes Apache
PHP should simply report a stack-overflow exception and die
This was called non repairable in 2002 but I'd seem its not
acceptable for the object oriented PHP 5 version anymore

Reproduce code:
---------------
<?php
class recurse
{
	function loop() {
		$this->loop();
  } // loop
}

$endless=new recurse();
$endless->loop();
?>	


Expected result:
----------------
stack-overflow message

Actual result:
--------------
Apache crashes

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-09 17:58 UTC] magnus@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Don't do that.
 [2004-05-17 21:39 UTC] wf at bitplan dot com
Endless recursion is detected in any decent programming language. I'd consider PHP a decent programming language if it does detect endless recursion. A simple stack overflow message will do. Not detecting endless recursion is an inacceptable design decision for PHP since an apache crash is not acceptable result for such a simple problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 15:01:27 2024 UTC