From 81a509d5bfca69c678e0c1eb66f6731db61c222c Mon Sep 17 00:00:00 2001 From: rub Date: Sat, 16 Feb 2008 13:22:47 +0000 Subject: Resolved issue 0000712: PWG-ERROR-VERSION on remote synchronization git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2212 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/php_compat/preg_last_error.php | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 include/php_compat/preg_last_error.php (limited to 'include/php_compat') diff --git a/include/php_compat/preg_last_error.php b/include/php_compat/preg_last_error.php new file mode 100644 index 000000000..38dc1fd5b --- /dev/null +++ b/include/php_compat/preg_last_error.php @@ -0,0 +1,45 @@ += 5.2.0 +if (!defined('PREG_NO_ERROR')) + define('PREG_NO_ERROR', 0); +if (!defined('PREG_INTERNAL_ERROR')) + define('PREG_INTERNAL_ERROR', 1); +if (!defined('PREG_BACKTRACK_LIMIT_ERROR')) + define('PREG_BACKTRACK_LIMIT_ERROR', 2); +if (!defined('PREG_RECURSION_LIMIT_ERROR')) + define('PREG_RECURSION_LIMIT_ERROR', 3); +if (!defined('PREG_BAD_UTF8_ERROR')) + define('PREG_BAD_UTF8_ERROR', 4); + +function preg_last_error() +{ + return PREG_NO_ERROR; +} +?> \ No newline at end of file -- cgit v1.2.3