|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15293 Incorrect brackets in strlen crashes server
Submitted: 2002-01-30 03:41 UTC Modified: 2002-03-05 00:00 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: phil dot whittaker at phoenixtelecom dot co dot uk Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 4.0.6 OS: Linux 2.2.14-5.0 (RedHat 6.2)
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:
Solve the problem:
45 + 7 = ?
Subscribe to this entry?

 [2002-01-30 03:41 UTC] phil dot whittaker at phoenixtelecom dot co dot uk
Using an apache linux box if the brackets are in the wrong place, (see below) the box spawns hundreds of processes eventually crashing the server.

(strlen($local[1] < "3"))

Rather than:

(strlen($local[1]) < "3")

[Basic php install with sigchild enabled and Oracle support]


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-30 14:52 UTC]
Can you provide a backtrace (see and your configure-line?
 [2002-01-31 02:12 UTC] phil dot whittaker at phoenixtelecom dot co dot uk
'./configure' '--with-oracle=/u01/app/oracle/product/8.1.6' '--with-oci8=/u01/app/oracle/product/8.1.6' '--with-apache=/usr/local/apache_1.3.20' '--enable-sigchild' 

Unfortunately, the server is a live and very active server and I can not get approval to change to config to add --enable-debug.


Quite interestingly the server runs with 10 httpd processes however when the script is executed this dramatically increases to approx 70 processes then gradually dies back to 31 processes before hanging. The time scale for the whole call to hang is round one minute.
 [2002-02-04 02:07 UTC]
I think you should have test/development box, aren't you?

Anyway, attach complete script that works. i.e. include <?php ?> tag
that can directly feed to CGI or CLI version PHP. Even if it a few line. 

It may be a few line for you, but it will be many line for us with 
hundreds of bug reports.

 [2002-03-05 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, 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".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 21 23:01:30 2024 UTC