PHP 4.0 Bug #6055: require&include("http://...) crash whereas include("file.inc") works

From: Date: Thu, 10 Aug 2000 04:22:32 +0000
Subject: PHP 4.0 Bug #6055: require&include("http://...) crash whereas include("file.inc") works
Groups: php.dev 
Request: Send a blank email to php-dev+get-28291@lists.php.net to get a copy of this message
From: cahagn_o@epita.fr Operating system: NetBSD 1.3.3 PHP version: 4.0 Latest CVS (10/08/2000) PHP Bug Type: Reproduceable crash Bug description: require&include("http://...) crash whereas include("file.inc") works Hi, I ran some tests with PHP 4.0.2-dev snapshot php4-200008090645. Users were complaining require("http://...") wouldn't work anymore since php4 released this last sunday of August. I was runnning PHP4 snapshot from mid-July (23rd) I remember (after dbase stuff was fixed) This script will crash PHP4: #!/space/www/bin/php/php <? include("http://www.website.com/foo.inc"); ?> whereas this one will work: include("file.inc"); The same happens with require() I saw many changes with URL, wirtual_cwd, etc. so I guess it's "normal" to see glitches, I just wanted to let you know. GDB 4.16 (i386-netbsd), Copyright 1996 Free Software Foundation, Inc... (gdb) run ./cr.php Starting program: /space/www/bin/php/php-4.0.2-dev2 ./cr.php Program received signal SIGSEGV, Segmentation fault. 0x7b72b in _estrdup (s=0x0) at zend_alloc.c:289 289 length = strlen(s)+1; I'm in holidays so I can't run many tests. Here's my ./configure: ./configure --with-config-file-path=/space/www/etc/httpd/conf/php_cgi \ --enable-discard-path \ --with-gd=/u/guest/www/mbin/i386-NetBSD \ --with-mysql \ --with-dbase \ --with-zlib=/u/guest/www/mbin/i386-NetBSD \ --with-mcrypt=/u/guest/www/mbin/i386-NetBSD \ --with-mhash=/u/guest/www/mbin/i386-NetBSD \ --enable-ftp \ --enable-inline-optimization \ --with-jpeg-dir=/u/guest/www/mbin/i386-NetBSD \ --with-imap=/u/guest/www/mbin/i386-NetBSD/lib

« previous php.dev (#28291) next »