php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43619 object extend bug
Submitted: 2007-12-17 16:23 UTC Modified: 2007-12-17 17:17 UTC
From: senad dot meskin at studioce dot ba Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.5 OS: Windows xp
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: senad dot meskin at studioce dot ba
New email:
PHP Version: OS:

 

 [2007-12-17 16:23 UTC] senad dot meskin at studioce dot ba
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-17 17:17 UTC] scottmac@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

It's based on the current working directory.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 17 20:00:02 2025 UTC