php.net |  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
 [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. :)

Ally

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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 Apr 19 21:01:30 2024 UTC