PHPã«ON ERROR GOTOã追å ããã¾ãã
å æ¥ã¯ id:sotarok ã«ããããªPHPãããããã ãã©ãä»åº¦ã¯
id:ockeghemããã
PHPã®@æ¼ç®åã£ã¦ãBASICã®on error resume nextãã©ããã¦ãé£æ³ãã¾ããããã¼ã£ã¨ãPHPã®5.4ã§on error ... ã追å ãããã®ã§ããã£ãï¼¼ï¼ï¼¾oï¼¾ï¼ï¼
http://wassr.jp/user/ockeghem/statuses/yicBUtcar3
ã¨ãä½è¨ãªãã¨ãè¨ã£ãã®ã§ãã¼ã¡ã¼ã¡ä½ã£ãã
<?php on error goto ERROR; trigger_error("HAGE", E_USER_ERROR); die; ERROR: echo "ouff\n"; ?>
ã¨ãããã¨ãset_error_handler() ãªã©ãæ¸ããªãã¦ãã¨ã©ã¼ãã³ããªã³ã°ãã§ããã®ã§ããã£ã¨ä¾¿å©ã ã¨æãã¾ã!!
ç§ã¯PHPæ¸ããªãã®ã§ãããããã¾ãã!!
æ¬å½ã«è©¦ãããé ã®ããããªæ¹ã¸
試ãã«ã¯ bison ãã re2c ãããå¿ è¦ã§ãã
ãã«ãæ¹æ³:
cvs -d:pserver:[email protected]/repository co -r PHP_5_3 -d php-src-5.3 php-src cd php-src patch -p0 < php-5.3-on-error-goto.patch.diff (cd Zend && php zend_vm_gen.php) ./buildconf ./configure .... make