|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-26 14:29 UTC] mv28jam at gmail dot com
-Summary: static class property __autoload problem
+Summary: autoload problem in class destructor
[2010-11-26 14:29 UTC] mv28jam at gmail dot com
[2010-11-26 14:29 UTC] mv28jam at gmail dot com
[2010-11-26 21:36 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2010-11-26 21:36 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 19:00:01 2025 UTC |
Description: ------------ __autoload does not works in class destructor when path in autoload is relative Test script: --------------- function __autoload($class_name){ $res=include_once('./'.$class_name.'.class.php'); } class Test1{ public function __destruct(){ $obj = new Test2; } } $test= new Test1; //other file class Test2{} Expected result: ---------------- class autoload Actual result: -------------- on windows Warning: include_once(./Test2.class.php) [function.include-once]: failed to open stream: No such file or directory in C:\VertrigoServ\www\index.php on line 3 same on Fedora