|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2210 Seg Fault on php.ini reading. Using PHP as a cgi
Submitted: 1999-09-01 13:51 UTC Modified: 1999-09-19 10:11 UTC
From: ally at shires dot org Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Latest CVS (01/09/1999) OS: DEC Unix OSF 1 4.0D Dec Alpha
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: ally at shires dot org
New email:
PHP Version: OS:


 [1999-09-01 13:51 UTC] ally at shires dot org
This error occured compiling PHP4 cvs 08/31/99. I fixed the other nasty little bugs like the 
php_lcg.h thingy.

When I try to execute ./php after compiling, I get a seg fault and a core dump.
Examination of the core reveils the following.

 0x12001eddc in OnUpdateInt (entry=0x30,     
    new_value=0x30 <Address 0x30 out of bounds>, new_value_length=3221787512, 
    mh_arg1=0xd0, mh_arg2=0x14003ea18, mh_arg3=0x0) at php_ini.c:382 382  *p = atoi(new_value);

This is moving one context up. The fault occurred in atoi.

I compiled this with the native compiler and gcc using the following ./configure 

./configure --with-oracle=$ORACLE_HOME --with-config-file-path=/tmp
And I just copied the php.ini-dist file to /tmp/php.ini
Hope this helps. :)



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-19 10:11 UTC] andi at cvs dot php dot net
This should be fixed by now in the latest CVS.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 12:01:29 2024 UTC