note 114384 added to function.get-declared-classes

From: Date: Fri, 14 Feb 2014 08:53:45 +0000
Subject: note 114384 added to function.get-declared-classes
Groups: php.notes 
Request: Send a blank email to php-notes+get-198507@lists.php.net to get a copy of this message
get-declared-classes makes no sense at all, if u maybe, later for production, merge class files in one package file. lets say: package.php print_r(get_declared_classes()); class declaredHere { } print_r(get_declared_classes()); so in this case, the declaredHerr class is defined at the first call of print_r(); because PHP-complier runs a hole file and declare Stuff before running the code. But (Lovely PHP): print_r(get_declared_classes()); if(true){ class declaredHere { } } print_r(get_declared_classes()); Will print the declaredHere class only in the second print_r. Its not a Bug it a... ---- Server IP: 64.71.164.2 Probable Submitter: 87.193.233.146 ---- Manual Page -- http://php.net/manual/en/function.get-declared-classes.php Edit -- https://master.php.net/note/edit/114384 Del: integrated -- https://master.php.net/note/delete/114384/integrated Del: useless -- https://master.php.net/note/delete/114384/useless Del: bad code -- https://master.php.net/note/delete/114384/bad+code Del: spam -- https://master.php.net/note/delete/114384/spam Del: non-english -- https://master.php.net/note/delete/114384/non-english Del: in docs -- https://master.php.net/note/delete/114384/in+docs Del: other reasons-- https://master.php.net/note/delete/114384 Reject -- https://master.php.net/note/reject/114384 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198507) next »