|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-09-26 19:48 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
Description: ------------ Require triggers __autoload Reproduce code: --------------- File teste.php <?php class teste extends acs_activerecord { public function __construct() { parent::__construct(); } } ?> File other.php require("teste.php"); This will trigger my autoload function (which is declared and included, but not shown here), which will try to load the file where the acs_activerecord is Expected result: ---------------- I would expect it not to trigger the autoload function. The autoload function should be triggered when I instantiate the class teste Actual result: -------------- I have xdedub and the cachegrind shows the autoload function being called when the file teste.php is required http://img142.imageshack.us/img142/2047/loadproblemug6.jpg Here is a link to the image of the cachegrind file.I have placed a little arrow indicating the file