note 88029 added to function.preg-last-error

From: Date: Tue, 06 Jan 2009 19:44:51 +0000
Subject: note 88029 added to function.preg-last-error
Groups: php.notes 
Request: Send a blank email to php-notes+get-148902@lists.php.net to get a copy of this message
the following function decodes this message for you: <?php function pcre_error_deocde() { switch (preg_last_error()) { case PREG_NO_ERROR: print "pcre_error: PREG_NO_ERROR!\n"; break; case PREG_INTERNAL_ERROR: print "pcre_error: PREG_INTERNAL_ERROR!\n"; break; case PREG_BACKTRACK_LIMIT_ERROR: print "pcre_error: PREG_BACKTRACK_LIMIT_ERROR!\n"; break; case PREG_RECURSION_LIMIT_ERROR: print "pcre_error: PREG_RECURSION_LIMIT_ERROR!\n"; break; case PREG_BAD_UTF8_ERROR: print "pcre_error: PREG_BAD_UTF8_ERROR!\n"; break; case PREG_BAD_UTF8_OFFSET_ERROR: print "pcre_error: PREG_BAD_UTF8_OFFSET_ERROR!\n"; break; } } ?> ---- Server IP: 213.92.11.19 Probable Submitter: 79.20.22.158 (proxied: 222.141.222.242) ---- Manual Page -- http://www.php.net/manual/en/function.preg-last-error.php Edit -- https://master.php.net/note/edit/88029 Del: integrated -- https://master.php.net/note/delete/88029/integrated Del: useless -- https://master.php.net/note/delete/88029/useless Del: bad code -- https://master.php.net/note/delete/88029/bad+code Del: spam -- https://master.php.net/note/delete/88029/spam Del: non-english -- https://master.php.net/note/delete/88029/non-english Del: in docs -- https://master.php.net/note/delete/88029/in+docs Del: other reasons-- https://master.php.net/note/delete/88029 Reject -- https://master.php.net/note/reject/88029 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148902) next »