php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48888 script crashing when running simultaneously
Submitted: 2009-07-11 17:12 UTC Modified: 2009-08-28 05:38 UTC
From: contact at juzaz dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.2.10 OS: Linux 2.6.24-gentoo-r8
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: contact at juzaz dot com
New email:
PHP Version: OS:

 

 [2009-07-11 17:12 UTC] contact at juzaz dot com
Description:
------------
When running 2 batch scripts simultaneously, getting weird errors like:
Fatal error: Call to undefined function substr() in xxx.php on line 125

The problem is obviously not related to the source code as it happens with built-in functions.

It also happens with custom class functions sometimes.

The problem doesn't seem to exist when a single php process is running.

Unfortunately the problem is not reproductible intentionnally.  The exact same code and conditions will sometimes work and other times fail.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-12 08:00 UTC] sjoerd-php at linuxonly dot nl
Thank you for your bug report.

How do you run these scripts? From the command line or from the browser?
 [2009-07-12 12:30 UTC] jani@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2009-07-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-08-28 05:38 UTC] contact at juzaz dot com
After reinstalling a bunch of components to find the cause of this weird issue, I upgraded my kernel and it fixed it.

I unfortunately don't know the reason behind but at least it works well now.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 14:01:33 2025 UTC