note 84384 added to language.oop5.typehinting

From: Date: Fri, 11 Jul 2008 10:09:12 +0000
Subject: note 84384 added to language.oop5.typehinting
Groups: php.notes 
Request: Send a blank email to php-notes+get-141397@lists.php.net to get a copy of this message
I must admit that Daniel's implementation is quite awesome (after all we'd be omonyms if I was english, omen nomen ;-) ), for everyone that already has a function/class to handle errors, this is a quick method to integrate the TypeHint class: <?php public static function handleError($errno, $errstr, $errfile, $errline){ // Implements just-in-time classes for broad type hinting if (TypeHint::handleTypehint($errno, $errstr)){ return true; } // do your usual stuff here /* * ... */ } ?> The initializeHandler method and the Typehint::initializeHandler(); call are rendered useless in this case. Enjoy. ---- Server IP: 213.92.11.19 Probable Submitter: 88.52.202.25 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.typehinting.php Edit -- https://master.php.net/note/edit/84384 Del: integrated -- https://master.php.net/note/delete/84384/integrated Del: useless -- https://master.php.net/note/delete/84384/useless Del: bad code -- https://master.php.net/note/delete/84384/bad+code Del: spam -- https://master.php.net/note/delete/84384/spam Del: non-english -- https://master.php.net/note/delete/84384/non-english Del: in docs -- https://master.php.net/note/delete/84384/in+docs Del: other reasons-- https://master.php.net/note/delete/84384 Reject -- https://master.php.net/note/reject/84384 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141397) next »