From 832545d97ff7975adf0cf84e8b373b1d01391537 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Tue, 21 Jan 2003 13:32:34 +0000 Subject: [PATCH] * PEAR_Error now supports exceptions when using Zend Engine 2. Set the error mode to PEAR_ERROR_EXCEPTION to make PEAR_Error throw itself as an exception (invoke PEAR errors with raiseError() or throwError() just like before). --- pear/PEAR.php | 30 +++++++++++++++++------------ pear/package-PEAR.xml | 44 +++++++++++++++++++++++++++++-------------- 2 files changed, 48 insertions(+), 26 deletions(-) diff --git a/pear/PEAR.php b/pear/PEAR.php index 7f034b7b0a..0543be1ea3 100644 --- a/pear/PEAR.php +++ b/pear/PEAR.php @@ -1,7 +1,7 @@ callback, $this); } } + if (PEAR_ZE2 && $this->mode & PEAR_ERROR_EXCEPTION) { + eval('throw $this;'); + } } // }}} diff --git a/pear/package-PEAR.xml b/pear/package-PEAR.xml index a3cdf6bb1a..4965f30255 100644 --- a/pear/package-PEAR.xml +++ b/pear/package-PEAR.xml @@ -31,23 +31,14 @@ - 1.0.1 + 1.1-dev stable 2003-01-10 -* PEAR_Error class has call backtrace available by - calling getBacktrace(). Available if used with - PHP 4.3 or newer. - -* PEAR_Config class uses getenv() rather than $_ENV - to read environment variables. - -* System::which() Windows fix, now looks for - exe/bat/cmd/com suffixes rather than just exe - -* Added "pear cvsdiff" command - -* Windows output buffering bugfix for "pear" command +* PEAR_Error now supports exceptions when using Zend Engine 2. Set the + error mode to PEAR_ERROR_EXCEPTION to make PEAR_Error throw itself + as an exception (invoke PEAR errors with raiseError() or throwError() + just like before). @@ -101,6 +92,31 @@ + + 1.0.1 + stable + 2003-01-10 + + * PEAR_Error class has call backtrace available by + calling getBacktrace(). Available if used with + PHP 4.3 or newer. + + * PEAR_Config class uses getenv() rather than $_ENV + to read environment variables. + + * System::which() Windows fix, now looks for + exe/bat/cmd/com suffixes rather than just exe + + * Added "pear cvsdiff" command + + * Windows output buffering bugfix for "pear" command + + + + Archive_Tar + Console_Getopt + + 1.0 stable -- 2.40.0