From:             ssem at complexusgroup dot com
Operating system: apache
PHP version:      4CVS-2003-07-10 (stable)
PHP Bug Type:     *Directory Services problems
Bug description:  class not instantiated problem with include/require

Description:
------------
when I use

include("http://".$_SERVER['HTTP_HOST']."/bread.php");

and

include("bread.php");

the include found both files.  But when I try to instantiate an instance
of an class in bread.php, only include("bread.php"); works???????

the reason I am using $_server variable is to have an absolute path for
file at different subdirectories to call bread.php

Reproduce code:
---------------
//include("http://".$_SERVER['HTTP_HOST']."/bread.php");

include("bread.php");
$b =new bread();
echo $b->trace($ctid, $pctid);

//works fine but if I use

include("http://".$_SERVER['HTTP_HOST']."/bread.php");
//include("bread.php");
$b =new bread();
echo $b->trace($ctid, $pctid);\

//I got the error in the following section.  

Expected result:
----------------
no error

Actual result:
--------------
Fatal error: Cannot instantiate non-existent class: bread in
/hsphere/local/home/developm/hsc.development.complexusgroup.com/common/header.php
on line 67


-- 
Edit bug report at http://bugs.php.net/?id=24593&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24593&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24593&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24593&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24593&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24593&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24593&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24593&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24593&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24593&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24593&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24593&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24593&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24593&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24593&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24593&r=gnused

Reply via email to