php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19102 Crash in a recursive function with a buged return value
Submitted: 2002-08-26 05:31 UTC Modified: 2002-08-26 05:36 UTC
From: jemore at m6net dot fr Assigned:
Status: Wont fix Package: Reproducible crash
PHP Version: 4.2.2 OS: Win32
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
49 + 48 = ?
Subscribe to this entry?

 
 [2002-08-26 05:31 UTC] jemore at m6net dot fr
  function crashme($val)
  {
    if ($val == 0) return 0;
    return crashme($val--); // here is the bug. Should be $val - 1
  }
  echo crashme(1);

result in a "Unkown software exception" under WinNT.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-26 05:36 UTC] derick@php.net
We can't prevent all user errors. It was deciced before that this will not be fixed, as it's a huge performance impact and almost impossible to do it correct.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 00:01:41 2024 UTC