Re: Stuck in the Middle

From: Date: Tue, 11 Jul 2000 08:08:20 +0000
Subject: Re: Stuck in the Middle
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5879@lists.php.net to get a copy of this message
Boaz Yahav wrote: > > Check the archives, there are tons of emails on that. Thanks, Am i correct in assuming then that http://marc.theaimsgroup.com/?l=php-general&m=92402160011863&w=2 I ran a small test using the barest code to open a file and display on a page Running the same code with php 3.0.6 +Apache 1.3.4 , it works , with php 3.0.7+ Apache 1.3.6 nope! Running gdb I get: (gdb) run -X -f /etc/opt/apache/httpd.conf Starting program: /opt/apache/sbin/httpd -X -f /etc/opt/apache/httpd.conf Program received signal SIGSEGV, Segmentation fault. 0x40130a70 in _IO_new_fclose (fp=0x841df70) at iofclose.c:45 iofclose.c:45: No such file or directory. So I commented out fclose and it processes but does not write to the file gdb says Program received signal SIGSEGV, Segmentation fault. 0x40134eaf in new_do_write (fp=0x8416ed8, data=0x403f4000 "kakakkakakakakak", to_do=16) at fileops.c:328 fileops.c:328: No such file or directory. This looks permanent. I guess I need to recompile with a different version? Perhaps sprintf? or is this in the same ball of hell!? Is there anyway out of this besides re-compiling apache and php ++ ? Thanks for the time, Christopher > > -----Original Message----- > From: callen [mailto:callen@driver8.org] > Sent: Tuesday, July 11, 2000 7:55 AM > To: PHP General List > Subject: [PHP] Stuck in the Middle > > Greetings: > > While moving code from one server to another, I came across this odd > error: > > While taking a link from one page to another page, > the following section of my code causes a "Document contains no data.." > error. > I remain on the original page with no data being sent back to the client > for it to process. > I also add that Apache child segfaults! Jeesh! > > <clip> > if (! $file=fopen ("log.txt", "a") ) { > echo ("Can't open the file "); > } > > else { > > $scratch="\n**************************************************************** > *\n"; > > fputs ($file, $scratch); > fclose($file); > } > </clip> > > This is php3, on a RH Linux 2.2.5-15 running a recent Apache(1.3.6). If > I take out these lines, meaning I don't attempt to open a file on the > local file system everything works fine! I have tried various file > perms, and nada! > > Is this php3 or apache <directory> related? > I have this placed for the specfic directory these files are in: > > "Options Indexes FollowSymLinks Includes MultiViews > ExecCGI" > > Any help and / or pointers appreciated! > > Thanks, > > Christopher Allen > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Christopher C.M. Allen http://design.driver8.org/ Email: callen@driver8.org Cell : 1.715.821.4006 Home Phone: 1.715.426.6661

« previous php.general (#5879) next »