Bug #15057: getimagesize() crashes when offline
| From: | jonatan at cyberdude dot com | Date: | Tue, 15 Jan 2002 21:35:47 +0000 |
| Subject: | Bug #15057: getimagesize() crashes when offline | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-77170@lists.php.net to get a copy of this message | ||
From: jonatan@cyberdude.com
Operating system: Mac OS X 10.1.2 (Build 5P48)
PHP version: 4.1.1
PHP Bug Type: Reproducible crash
Bug description: getimagesize() crashes when offline
when i am offline from the internet and access a file which
contains only:
<?php getimagesize( "http://www.php.net/image.gif" ); ?>
httpd crashes. i am using the precompiled apache php module
version 4.1.1 from <http://www.entropy.ch/software/macosx/
php/> on macosx 10.1.2. the configure line is:
'./configure' '--with-mysql' '--with-pgsql' '--with-apxs'
'--with-gd=/usr/local' '--with-png-dir=/usr/local' '--with-
zlib-dir=/usr' '--with-jpeg-dir=/usr/local' '--with-
freetype-dir=/usr/local' '--enable-trans-sid' '--enable-
exif' '--with-xml' '--enable-wddx' '--with-curl=/usr/local'
'--with-pdflib=/usr/local' '--with-t1lib=/usr/local' '--
enable-ftp' '--enable-bcmath'
and the crashlog:
**********
Date/Time: 2002-01-15 16:02:50 +0100
OS Version: 10.1.2 (Build 5P48)
Host: localhost
Command: httpd
PID: 771
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000001c
Thread 0 Crashed:
#0 0x00a27d50 in php_network_getaddresses
#1 0x00a2800c in php_hostconnect
#2 0x00aba634 in php_fopen_url_wrap_http
#3 0x00a24ae0 in php_fopen_url_wrapper
#4 0x00a24278 in php_fopen_wrapper
#5 0x00abbc68 in zif_getimagesize
#6 0x00a057c0 in execute
#7 0x009f0f64 in zend_execute_scripts
#8 0x00a27158 in php_execute_script
#9 0x00a23d34 in apache_php_module_main
#10 0x00a227e0 in send_php
#11 0x0000c5ac in ap_invoke_handler
#12 0x00016530 in process_request_internal
#13 0x000165ac in ap_process_request
#14 0x00005d5c in child_main
#15 0x00005fcc in make_child
#16 0x0000631c in perform_idle_server_maintenance
#17 0x000068a0 in standalone_main
#18 0x00006f64 in main
#19 0x00001e18 in _start
#20 0x00001c48 in start
PPC Thread State:
srr0: 0x00a27d50 srr1: 0x0000d030 vrsave:
0x00000000
xer: 0x20000020 lr: 0x00a27d20 ctr: 0x70025330 mq:
0x00000000
r0: 0x00a27d20 r1: 0xbfffb3a0 r2: 0xbfff6d90 r3:
0x00000002
r4: 0x00000000 r5: 0xbfffb238 r6: 0xbfffb2e8 r7:
0x00000803
r8: 0x00000000 r9: 0x00000000 r10: 0x00000000 r11:
0x2422228b
r12: 0x70025330 r13: 0x00000000 r14: 0x00000000 r15:
0x00000000
r16: 0x00000000 r17: 0x00000004 r18: 0x00bfd0c4 r19:
0xbfffdae0
r20: 0x00000000 r21: 0xbfffdae4 r22: 0x00000000 r23:
0x00000000
r24: 0xbfffdae4 r25: 0x0021c4c0 r26: 0x00bfd0c4 r27:
0x00000001
r28: 0xbfffb450 r29: 0x00000000 r30: 0x0021c860 r31:
0x00a27cd8
**********
--
Edit bug report at: http://bugs.php.net/?id=15057&edit=1