note 77194 added to function.register-shutdown-function
| From: | Sinured at osu1 dot php dot net | Date: | Sun, 19 Aug 2007 14:49:17 +0000 |
| Subject: | note 77194 added to function.register-shutdown-function | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129594@lists.php.net to get a copy of this message | ||
> "Sinured's example of how to use a static method did not work for me."
True, my example only works for PHP5, while yours also works for PHP4. In fact, for PHP5 both
examples are valid, but with a major difference:
'classname::funcname' fails to find class methods that weren't declared static (as I
said below), while array('classname', 'funcname') will execute the (non-static)
method after emitting three E_STRICT errors.
----
Server IP: 217.160.72.57
Probable Submitter: 85.179.223.91
----
Manual Page -- http://www.php.net/manual/en/function.register-shutdown-function.php
Edit -- https://master.php.net/note/edit/77194
Del: integrated -- https://master.php.net/note/delete/77194/integrated
Del: useless -- https://master.php.net/note/delete/77194/useless
Del: bad code -- https://master.php.net/note/delete/77194/bad+code
Del: spam -- https://master.php.net/note/delete/77194/spam
Del: non-english -- https://master.php.net/note/delete/77194/non-english
Del: in docs -- https://master.php.net/note/delete/77194/in+docs
Del: other reasons-- https://master.php.net/note/delete/77194
Reject -- https://master.php.net/note/reject/77194
Search -- https://master.php.net/manage/user-notes.php