php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6055 require&include("http://...) crash whereas include("file.inc") works
Submitted: 2000-08-10 00:22 UTC Modified: 2000-08-15 06:56 UTC
From: cahagn_o at epita dot fr Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Latest CVS (10/08/2000) OS: NetBSD 1.3.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cahagn_o at epita dot fr
New email:
PHP Version: OS:

 

 [2000-08-10 00:22 UTC] cahagn_o at epita dot fr
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-15 06:56 UTC] stas@php.net
Should be fixed in CVS, please check.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 00:01:33 2024 UTC