]> granicus.if.org Git - php/commitdiff
* define PEAR_ZE2 when running with Zend Engine 2
authorStig Bakken <ssb@php.net>
Fri, 5 Jul 2002 01:52:09 +0000 (01:52 +0000)
committerStig Bakken <ssb@php.net>
Fri, 5 Jul 2002 01:52:09 +0000 (01:52 +0000)
pear/PEAR.php

index 2f3d71b8ddb52e28138f6130ee5f59874b487430..8b29290cb9055dc95cbb5aeb93dbdd5666e528bd 100644 (file)
@@ -26,6 +26,8 @@ define('PEAR_ERROR_PRINT',    2);
 define('PEAR_ERROR_TRIGGER',  4);
 define('PEAR_ERROR_DIE',      8);
 define('PEAR_ERROR_CALLBACK', 16);
+define('PEAR_ZE2', (function_exists('version_compare') &&
+                    version_compare(zend_version(), "2-dev", "ge")));
 
 if (substr(PHP_OS, 0, 3) == 'WIN') {
     define('OS_WINDOWS', true);
@@ -348,7 +350,7 @@ class PEAR
     }
 
     // }}}
-   // {{{ _checkDelExpect()
+    // {{{ _checkDelExpect()
 
     /**
      * This method checks unsets an error code if available
@@ -867,9 +869,6 @@ class PEAR_Error
                            $callback, $this->error_message_prefix,
                            $this->userinfo);
         }
-        if ($this->mode & PEAR_ERROR_CALLBACK) {
-            $modes[] = 'callback';
-        }
         if ($this->mode & PEAR_ERROR_PRINT) {
             $modes[] = 'print';
         }