|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-01-13 02:15 UTC] h dot riepma at gmail dot com
Description: ------------ not a bug, but http://www.php.net/sitemap.php said to put features here too... would love to have __autoload effect functions as well as classes... Reproduce code: --------------- <? __autoload($n){ if(!function_exists($n)) require_once('functions/'.$n); } n_md5('test'); ?> Expected result: ---------------- functions/n_md5 required automatically and ran as normal Actual result: -------------- Fatal error: Call to undefined function n_md5() in /var/www/autoload.php on line 5 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 11:00:02 2025 UTC |
yes i know theres a logic error there... <? __autoload($n){ if(!function_exists('functions/'.$n)) require_once('functions/'.$n); } n_md5('test'); ?>