|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-04-19 04:47 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 29 06:00:02 2026 UTC |
After using the apxs utility that comes with Apache to reconfigure and install PHP3 3.0.5 as a DSO, I attempted to access a script that was previously working on the same machine. By eliminating a line of code at a time, It seems that the ereg_replace function in the code snippit below is causing the problem. If I comment that line out, my script works just fine, if I leave it in, it causes Apache to report and Segmentation Fault and IE4 tells me that the server returned an invalid response. <? $fp = fopen($dat_file_name, "r"); $count = -1; while(!feof($fp)) { $data = explode(":", fgets($fp, 1024)); // chomp $data[0] = chop($data[0]); $data[1] = ereg_replace( "\n", "", $data[1] ); $tmp_array[$data[0]] = $data[1]; } fclose($fp); ?>