From:             senad dot meskin at studioce dot ba
Operating system: Windows xp
PHP version:      5.2.5
PHP Bug Type:     Scripting Engine problem
Bug description:  object extend bug

Description:
------------
When I extend object from the other class and I use include_once it does
not use current script path for include.

Reproduce code:
---------------
/*
Dir "/web/lib/Modul.php"
*/
Class Modul
{
 protected $modulName;
 public function LoadActions()
{
  include($modulName . "action.php");
}
}
/*
Dir "/web/Moduls/News/News.php"
*/
class News extends Modul
{
public function __construct()
{
 $this->LoadActions();
}
}

Expected result:
----------------
It say that that file does note exists because it look in the path of the
extended class


-- 
Edit bug report at http://bugs.php.net/?id=43619&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43619&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43619&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43619&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43619&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43619&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43619&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43619&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43619&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43619&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43619&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43619&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43619&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43619&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43619&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43619&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43619&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43619&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43619&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43619&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43619&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43619&r=mysqlcfg

Reply via email to