From ef2b59f772d4f2c42e4bc874d33194a8c8886a27 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 13 Feb 2005 18:13:44 +0000 Subject: [PATCH] - Expand tests to have it work inside PHP 5.0 --- ext/pdo/pdo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/pdo/pdo.c b/ext/pdo/pdo.c index 1d47f93865..b87cb94000 100755 --- a/ext/pdo/pdo.c +++ b/ext/pdo/pdo.c @@ -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 @@ PHP_MINIT_FUNCTION(pdo) #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); -- 2.50.1