cvs: pecl /pdo pdo.c
| From: | Marcus Boerger | Date: | Sun, 13 Feb 2005 18:13:44 +0000 |
| Subject: | cvs: pecl /pdo pdo.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-2550@lists.php.net to get a copy of this message | ||
helly Sun Feb 13 13:13:44 2005 EDT
Modified files:
/pecl/pdo pdo.c
Log:
- Expand tests to have it work inside PHP 5.0
http://cvs.php.net/diff.php/pecl/pdo/pdo.c?r1=1.30&r2=1.31&ty=u
Index: pecl/pdo/pdo.c
diff -u pecl/pdo/pdo.c:1.30 pecl/pdo/pdo.c:1.31
--- pecl/pdo/pdo.c:1.30 Sun Feb 13 10:40:15 2005
+++ pecl/pdo/pdo.c Sun Feb 13 13:13:44 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pdo.c,v 1.30 2005/02/13 15:40:15 helly Exp $ */
+/* $Id: pdo.c,v 1.31 2005/02/13 18:13:44 helly Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -33,7 +33,7 @@
#include "php_pdo_int.h"
#include "zend_exceptions.h"
-#ifdef HAVE_SPL
+#if defined(HAVE_SPL) && ((PHP_MAJOR_VERSION > 5) || (PHP_MAJOR_VERSION == 5 &&
PHP_MINOR_VERSION >= 1))
extern PHPAPI zend_class_entry *spl_ce_RuntimeException;
#endif
@@ -286,7 +286,7 @@
#endif
INIT_CLASS_ENTRY(ce, "PDOException", NULL);
-#ifdef HAVE_SPL
+#if defined(HAVE_SPL) && ((PHP_MAJOR_VERSION > 5) || (PHP_MAJOR_VERSION == 5 &&
PHP_MINOR_VERSION >= 1))
pdo_exception_ce = zend_register_internal_class_ex(&ce, spl_ce_RuntimeException, NULL
TSRMLS_CC);
#else
pdo_exception_ce = zend_register_internal_class_ex(&ce, zend_exception_get_default(), NULL
TSRMLS_CC);