Tomas V.V.Cox
4da2fbe6f0
Don't reapply the error_message_prefix if an error
...
object is passed to raiseError()
2003-10-05 15:22:21 +00:00
Greg Beaver
dcd7f23e6c
verified unit test pear2.phpt works with changes, removing old code
2003-09-11 16:45:03 +00:00
Greg Beaver
a344aabb19
missed one segment to comment out
2003-09-11 13:21:07 +00:00
Greg Beaver
140ec7f354
use is_callable() - what a great function!
2003-09-11 13:16:13 +00:00
Greg Beaver
0901d5e3b7
fix for Bug #21845 $this in static calls
2003-08-13 20:36:54 +00:00
Tomas V.V.Cox
8c7c27b93a
Expose PHP errors on error callback function
2003-07-10 11:35:37 +00:00
Tomas V.V.Cox
287363df63
Detect enable_dl off or safe_mode on PEAR::loadExtension()
2003-07-08 10:52:23 +00:00
Tomas V.V.Cox
a136105e34
Atm php5 doesn't support this:
...
function foo(&$a) {
return new Bar;
}
2003-07-03 06:54:26 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Martin Jansen
185a4baedd
* Update PHPDoc
2003-05-18 19:40:04 +00:00
Martin Jansen
8c5eac260f
* Fixing note
2003-05-11 09:33:04 +00:00
Stig Bakken
e853217651
* support both error codes and messages in the second parameter to
...
PEAR::isError()
2003-04-03 23:10:11 +00:00
Stig Bakken
0e6fca4f22
* email address change
2003-03-18 12:06:09 +00:00
Martin Jansen
1188dbe64f
* Fixing bug #21845 .
2003-03-13 21:07:40 +00:00
Stig Bakken
983dd29a7e
* update PEAR::isError phpdoc
2003-02-10 14:27:21 +00:00
Stig Bakken
4ef53806f4
* PEAR::isError accepts second parameter that will be matched against
...
the error code. PEAR::isError($obj, FOO) will return true if $obj
is an error object, and $obj->getCode() returns FOO.
2003-02-10 14:26:19 +00:00
Stig Bakken
d250e7ba9d
* whoops, heritage shows through :)
2003-01-26 23:54:19 +00:00
Stig Bakken
832545d97f
* 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).
2003-01-21 13:32:34 +00:00
Stig Bakken
f39c0ad2b6
* added debug_backtrace() support to PEAR errors
2003-01-09 15:14:23 +00:00
Sebastian Bergmann
61ce6bc8f1
Bump year.
2002-12-31 16:18:29 +00:00
Pierre Joye
54d920dd3c
Sorry Derick, generated the wrong patch
...
and we don't need to recreate an array ;)
2002-10-08 13:17:01 +00:00
Derick Rethans
fa5ce6bbfa
- Fix for deprecated function
2002-10-08 13:02:31 +00:00
Martin Jansen
64a31beb6a
* Fix bug #19269 .
...
This patch makes popErrorHandling() pop the first _two_ elements
from the error handler stack to prevent un-necessary memory
consumption.
# Patch by: jrust (at) rustyparts (dot) com
2002-09-25 17:36:24 +00:00
Stig Bakken
f246ef4239
* always enable track_errors
...
* added throwError method (simpler version of raiseError)
2002-07-21 07:04:45 +00:00
Stig Bakken
6b4707320d
* define PEAR_ZE2 when running with Zend Engine 2
2002-07-05 01:52:09 +00:00
Tomas V.V.Cox
d2b435eb08
Dropped case insentive ext search in PEAR::loadExtension()
2002-06-17 14:35:12 +00:00
Tomas V.V.Cox
4211d0e590
Typo in the folding mark
2002-06-17 14:04:01 +00:00
Tomas V.V.Cox
87ddd96027
Added PEAR::loadExtension($ext) - OS independant PHP extension load
...
# PEAR developers, please use this function if you need to check or
# load an extension.
2002-06-17 13:39:29 +00:00
Tomas V.V.Cox
9e67012d74
trailing ws
2002-06-17 13:32:42 +00:00
Jan Lehnardt
5ec88a3b73
- minor improvement of readability,
...
#thanks richy ;)
2002-05-29 21:55:52 +00:00
Jan Lehnardt
998ef91cad
- added delExpect() API method. It allows to unset one or more expected
...
- error codes.
- requires _checkDelExpect() (private) which I added as well.
- inspired by chregu (PHP-Deluxe, page 75)
2002-05-29 21:41:27 +00:00
Stig Bakken
ea14cadea2
* phpdoc fixes (un-break the broken)
2002-05-26 12:50:36 +00:00
Stig Bakken
0ca308d152
* fix phpdoc
2002-04-19 13:58:25 +00:00
Richard Heyes
f006b2bbc3
* Added getStaticProperty() for static methods.
2002-04-08 21:03:41 +00:00
Richard Heyes
d3c0d67060
* Added registerShutdownFunc() method
2002-04-06 17:01:14 +00:00
Tomas V.V.Cox
02bff6ce0e
Fix bug in pushErrorHandling() (fail under very specific circumstances)
2002-04-06 15:12:04 +00:00
Tomas V.V.Cox
12b0eae9e2
phpdoc update
2002-03-13 01:39:51 +00:00
Tomas V.V.Cox
409a631bed
Fix error handling selection when both class and global are set
2002-03-13 01:17:47 +00:00
Stig Bakken
22aac3652e
* fix PEAR::setErrorHandling() settings so they apply when using raiseError()
2002-03-05 14:43:02 +00:00
Sebastian Bergmann
90613d2282
Maintain headers.
2002-02-28 08:29:35 +00:00
Martin Jansen
52ba15e99d
='typo'
2002-02-18 10:27:36 +00:00
Martin Jansen
64a857c52e
* Destructors seem to work like a charm. -> No need to keep this line.
2001-12-15 15:01:35 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Stig Bakken
db44b1086c
* expectError() now accepts "*" as a catch-all
...
* updated tests
2001-11-04 09:07:17 +00:00
Stig Bakken
2c05c7e0ac
* removed error_prepend and error_append properties
2001-10-31 05:48:16 +00:00
Stig Bakken
b5dc4f7ce0
renamed "debuginfo" property declaration to "userinfo"
2001-10-31 05:44:19 +00:00
Stig Bakken
405142087c
* replaced PEAR::phpVersionIs with version_compare
2001-10-11 22:11:34 +00:00
Tomas V.V.Cox
b244f61139
changed the logic of version comparation
2001-10-05 12:46:21 +00:00
Tomas V.V.Cox
0ebee4d29f
get rid of the RC part of php versions
2001-10-05 00:28:36 +00:00
Tomas V.V.Cox
0786889de0
added method phpVersionIs() to find if a PHP version is minor, greater
...
or both (see in-line doc for more info)
2001-10-04 19:05:09 +00:00