Commit Graph

83 Commits

Author SHA1 Message Date
Greg Beaver
9752cbde12 merge in PEAR 1.3.5 2005-03-28 16:38:59 +00:00
Stig Bakken
6527a454c6 * don't register object on destructors list if it does not define its
own emulated destructor
2004-06-16 16:26:12 +00:00
Pierre Joye
98e59d58ba - Fix licence (#1645)
- update my status there, reflecting the fact for the past 11 months
2004-06-15 16:33:46 +00:00
Greg Beaver
b79e803a43 fix Bug #937 throwError() treats every call as static
fix Bug #964 PEAR_ERROR_EXCEPTION causes fatal error
2004-04-03 06:28:54 +00:00
Stig Bakken
c9a5a75fef * fit copyright header on 80 columns 2004-03-21 22:11:18 +00:00
Greg Beaver
7c6b73ce38 fix #640, error in comment for getStaticProperty 2004-02-27 02:27:00 +00:00
Greg Beaver
71b6a816f6 fix PATH_SEPARATOR issues - was defined in PHP 4.3.0, but documentation never showed this. 2004-02-07 04:42:07 +00:00
Pierre Joye
48fb978f72 - Use is_a 2004-01-25 23:53:13 +00:00
Martin Jansen
36137aefe0 * CS 2004-01-19 13:57:38 +00:00
Greg Beaver
7dc2bf3605 fix get_class() case-sensitive incompatibility in PHP5 2004-01-14 22:43:12 +00:00
foobar
ccfc46b0aa - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Greg Beaver
49a2893adb simple fix for core bug #362 - raiseError() doesn't return a reference, why should throwError()? 2003-12-06 02:00:33 +00:00
Greg Beaver
6c9fa67eca fix Bug #293 [Patch] PEAR_Error not calling static method callbacks for error-handler 2003-11-26 15:08:42 +00:00
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