|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-08-07 12:12 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jun 15 06:00:02 2026 UTC |
The following script doesn't work in PHP4 : <? class titi { function toto() { echo "meuuh"; } function main() { $var = "\$this->toto"; $var(); } } $titi = new titi; $titi->main(); ?> Notice that it doesn't work in PHP3 either, so it is not a bug report, rather a feature request. It doesn't make sense in PHP3, but if you intend to push OO features in PHP4, function pointers might be pretty useful.