note 121934 added to function.autoload
| From: | ohcc at 163 dot com | Date: | Wed, 29 Nov 2017 05:51:10 +0000 |
| Subject: | note 121934 added to function.autoload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209242@lists.php.net to get a copy of this message | ||
In PHP 7.2, this code will trigger a "
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in path\to\file.php on
line *" error although the spl_autoload_register function really really exists.
<?php
if(!function_exists('spl_autoload_register')){
function __autoload($class){
// blah blah blah
}
}
?>
----
Server IP: 208.43.231.9
Probable Submitter: 118.117.77.148
----
Manual Page -- http://php.net/manual/en/function.autoload.php
Edit -- https://master.php.net/note/edit/121934
Del: integrated -- https://master.php.net/note/delete/121934/integrated
Del: useless -- https://master.php.net/note/delete/121934/useless
Del: bad code -- https://master.php.net/note/delete/121934/bad+code
Del: spam -- https://master.php.net/note/delete/121934/spam
Del: non-english -- https://master.php.net/note/delete/121934/non-english
Del: in docs -- https://master.php.net/note/delete/121934/in+docs
Del: other reasons-- https://master.php.net/note/delete/121934
Reject -- https://master.php.net/note/reject/121934
Search -- https://master.php.net/manage/user-notes.php