|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-17 17:17 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Feb 06 18:00:01 2026 UTC |
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