source: trunk/include/php_compat/preg_last_error.php @ 2218

Last change on this file since 2218 was 2213, checked in by rub, 16 years ago

Resolved issue 0000712: PWG-ERROR-VERSION on remote synchronization

Merge branch-1_7 2211:2212 into BSF

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | PhpWebGallery - a PHP based picture gallery                           |
4// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
6// +-----------------------------------------------------------------------+
7// | branch        : BSF (Best So Far)
8// | file          : $Id: preg_last_error.php 2213 2008-02-16 13:27:50Z rub $
9// | last update   : $Date: 2008-02-16 13:27:50 +0000 (Sat, 16 Feb 2008) $
10// | last modifier : $Author: rub $
11// | revision      : $Revision: 2213 $
12// +-----------------------------------------------------------------------+
13// | This program is free software; you can redistribute it and/or modify  |
14// | it under the terms of the GNU General Public License as published by  |
15// | the Free Software Foundation                                          |
16// |                                                                       |
17// | This program is distributed in the hope that it will be useful, but   |
18// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
19// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
20// | General Public License for more details.                              |
21// |                                                                       |
22// | You should have received a copy of the GNU General Public License     |
23// | along with this program; if not, write to the Free Software           |
24// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
25// | USA.                                                                  |
26// +-----------------------------------------------------------------------+
27
28// http://www.php.net/manual/fr/function.preg-last-error.php
29// PHP 5 >= 5.2.0
30if (!defined('PREG_NO_ERROR'))
31  define('PREG_NO_ERROR', 0);
32if (!defined('PREG_INTERNAL_ERROR'))
33  define('PREG_INTERNAL_ERROR', 1);
34if (!defined('PREG_BACKTRACK_LIMIT_ERROR'))
35  define('PREG_BACKTRACK_LIMIT_ERROR', 2);
36if (!defined('PREG_RECURSION_LIMIT_ERROR'))
37  define('PREG_RECURSION_LIMIT_ERROR', 3);
38if (!defined('PREG_BAD_UTF8_ERROR'))
39  define('PREG_BAD_UTF8_ERROR', 4);
40
41function preg_last_error()
42{
43  return PREG_NO_ERROR;
44}
45?>
Note: See TracBrowser for help on using the repository browser.