On Wed, 8 Aug 2001, Andrew Lindeman formally [EMAIL PROTECTED] wrote: > I can't use fopen (file) to get anything off the > internet with the latest cvs... > > <? > $file=fopen("http://php.net/","r"); > fpassthru($file); > ?> > Will produce "Segmentation Fault (core dumped)" > > No idea why, but it probably needs to be fixed. > I was able to generate the attached backtrace... -Sterling
Starting program: /usr/local/bin/php tst.php Program received signal SIGSEGV, Segmentation fault. 0x0808b6a3 in php_sock_fgets_internal (buf=0xbfffded0 "", maxlen=127, sock=0x824dcac) at fsock.c:553 553 fsock.c: No such file or directory. in fsock.c (gdb) bt #0 0x0808b6a3 in php_sock_fgets_internal (buf=0xbfffded0 "", maxlen=127, sock=0x824dcac) at fsock.c:553 #1 0x0807fa60 in php_fopen_url_wrap_http (path=0x824cddc "http://php.net/", mode=0x824ce54 "r", options=4, issock=0xbfffdfd8, socketd=0xbfffdfdc, opened_path=0x0) at http_fopen_wrapper.c:191 #2 0x08075302 in php_fopen_url_wrapper (path=0x824cddc "http://php.net/", mode=0x824ce54 "r", options=4, issock=0xbfffdfd8, socketd=0xbfffdfdc, opened_path=0x0) at fopen_wrappers.c:555 #3 0x0808445b in php_if_fopen (ht=2, return_value=0x824ce34, this_ptr=0x0, return_value_used=1) at file.c:668 #4 0x0810fb51 in execute (op_array=0x824cf54) at ./zend_execute.c:1565 #5 0x080b88dd in zend_execute_scripts (type=8, file_count=3) at zend.c:760 #6 0x08077844 in php_execute_script (primary_file=0xbffff490) at main.c:1238 #7 0x0807399c in main (argc=2, argv=0xbffff53c) at cgi_main.c:736 #8 0x400bc0de in __libc_start_main () from /lib/libc.so.6 (gdb)
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]