Commit Graph

283 Commits

Author SHA1 Message Date
Sebastian Bergmann
f5117c81b3 MFH: Add an additional field $frame['object'] to the result array of debug_backtrace() that contains a reference to the respective object when the frame was called from an object. 2005-11-24 05:07:28 +00:00
Antony Dovgal
f43767b249 fix #34505 (possible memory corruption when unmangling properties with empty names)
1st part
2005-09-16 17:05:09 +00:00
Dmitry Stogov
9305339d94 Changed "instanceof" and "catch" operators, is_a() and is_subclass_of() functions to not call __autoload(). 2005-09-09 06:48:49 +00:00
Dmitry Stogov
248345d920 Support for class constants and static members for internal classes 2005-09-01 10:05:32 +00:00
Stanislav Malyshev
33df597531 fix crash if throw attempted outside of executable code 2005-08-22 13:26:33 +00:00
Antony Dovgal
4e798f6e02 MFH: fix memleak 2005-08-18 15:13:45 +00:00
foobar
916815b779 Bump up the year 2005-08-03 13:30:58 +00:00
Stanislav Malyshev
d5a1296008 fix various "Class entry requested for an object without PHP class" messages
when working with non-PHP objects.
# Using Z_OBJCE(object)->name is usually bad idea unless you know it's
# a pure PHP object
2005-06-27 18:13:13 +00:00
Dmitry Stogov
0e720a8b42 Fixed wrong include/requre occurrences in debug backtrace. 2005-06-27 06:03:10 +00:00
Dmitry Stogov
f3f97394b2 Fixed bug #28377 (debug_backtrace is intermittently passing args) 2005-06-23 12:00:13 +00:00
Dmitry Stogov
f17f5da8af Fixed bug #30828 (debug_backtrace() reports incorrect class in overridden methods) 2005-06-23 09:23:24 +00:00
Dmitry Stogov
da2ab06111 Fixed bug #29896 (Backtrace argument list out of sync) 2005-06-22 15:26:05 +00:00
Dmitry Stogov
fac2718edd Fixed memory leak in debug_print_backtrace() 2005-06-07 13:14:23 +00:00
Dmitry Stogov
81b536f4a6 Fixed bug #32296 (get_class_methods output has changed between 5.0.2 and 5.0.3)
Now get_class_methods() shows accessible private and protected methods if it is called from class scope.
2005-05-03 08:52:04 +00:00
Marcus Boerger
56d543c161 - Extend API to support real existance test without the need to add any new
functions or change any behavior
2005-05-02 16:18:02 +00:00
Dmitry Stogov
4f15b20b92 Fixed bug #32429 (method_exists() always return TRUE if __call method exists) 2005-04-26 08:47:31 +00:00
Dmitry Stogov
4e04b5b5fb Fixed memory leak in debug_backtrace() 2005-04-18 07:25:20 +00:00
Marcus Boerger
7aad424332 - Fix special cases of property_exists() 2005-04-17 20:16:14 +00:00
Sara Golemon
083795cbbf Fix method_exists(), pce is fetched, but ce is used 2005-04-16 15:24:56 +00:00
Marcus Boerger
5b21e48557 - Fix even though we already know that the function will be renamed 2005-04-15 18:53:42 +00:00
Marcus Boerger
32182b190a - Add property_exits() 2005-04-08 13:33:15 +00:00
Stanislav Malyshev
95f860d025 MF50: fix backtraces - non-Zend classes have names too 2005-04-04 17:23:38 +00:00
Stanislav Malyshev
7b6ec9178f ws 2005-03-14 09:21:04 +00:00
Stanislav Malyshev
c3957fe1e8 Fix get_extension_funcs() - extension names are now lowercased, so should
be function arguments.
2005-03-13 15:30:10 +00:00
Marcus Boerger
6f00c1b73b - Fix #32226 2005-03-07 19:28:10 +00:00
Marcus Boerger
ddd62f2b07 - Add support for methods dynamically added through object handlers 2005-02-28 18:53:33 +00:00
Marcus Boerger
8324d21955 - Update method_exists to new handlers and allow first parameter as string 2005-02-27 15:03:09 +00:00
Stanislav Malyshev
1088e28dfa Fix debug_trace with eval (patch from Antony Dovgal) 2005-02-01 19:05:56 +00:00
Zeev Suraski
6b1f070907 MFB 2004-12-27 18:53:27 +00:00
Andi Gutmans
6a16f3eb1d - Patch from Andrey Hristov:
I have cooked a small patch which allows is_subclass_of() the accept
not only an object as first parameter but a string as well. When string
is passed the function checks whether the class specified is subclass of
the second parameter
class a{}
class b{} extends a{}
is_subclass_of("a", "a") //false
is_subclass_of("b", "a") //true
currently only objects are allowed as first parameter
2004-10-26 23:25:05 +00:00
Marcus Boerger
b52ab41ca7 - Allow to omit object/classname in get_parent_class() which makes it
compatible with the signature and behavior of get_class()
2004-10-14 07:26:04 +00:00
Marcus Boerger
0c40e2a06e Bug #30381 Strange results with get_class_vars() 2004-10-12 22:19:43 +00:00
Marcus Boerger
a4c387508e - Fix visibility in get_class_vars() and get_class_methods()
# Still there is a problem/error in the executor, i'll have a look
2004-10-12 11:01:08 +00:00
Marcus Boerger
0f9b3de234 - Fix set_exception_handler
# unsettign with '' never worked so we use NULL now which is much better
# because it matches the the return NULL in case no handler was defined
# and can't lead to problems with wrong string operations.
2004-10-12 09:13:20 +00:00
Marcus Boerger
4b395a168b - Bugfix #27798 2004-10-04 08:59:29 +00:00
Marcus Boerger
4bcd155285 - Fix warnings 2004-09-27 08:43:05 +00:00
Andi Gutmans
96ab56e146 - Roll back VM commit 2004-09-09 16:47:22 +00:00
Andi Gutmans
2e286e7374 - Fix bug #28054 by preventing printing out bogus information in backtrace
when in error handler (still doesn't know all information but at least
  it's not bogus)
2004-09-08 23:46:37 +00:00
Andi Gutmans
709c5bd2d5 - Add interface_exists() and differentiate between classes and interfaces
(Andrey Hristov)
2004-08-25 00:41:43 +00:00
Ilia Alshanetsky
b1c45f61ad Eliminate unneeded variable. 2004-08-05 00:44:30 +00:00
Marcus Boerger
7bfc91c3a9 - Fixed Bug #29505 get_class_vars() severely broken when used with arrays 2004-08-03 16:59:25 +00:00
Wez Furlong
03e298ec47 Fix two possible crashes. Latter is unlikely unless you are doing scary
things, but former looks nasty.
2004-07-27 01:33:25 +00:00
Edin Kadribasic
d42361630f Fixed build 2004-07-21 22:13:31 +00:00
Marcus Boerger
08fa8849b2 - Fixded #29291: get_class_vars() return names with NULLs 2004-07-21 18:36:51 +00:00
George Schlossnagle
6d182a8456 fix for 28213.
class_name and call_type should be reinitialized on every loop iter.
2004-06-18 17:34:58 +00:00
Sara Golemon
96a8b63865 String length in parse_parameters should be int 2004-06-17 18:23:47 +00:00
Derick Rethans
877ecb3c81 - Make the default mask for user defined error handlers include ALL errors,
including E_STRICT.
2004-05-28 08:08:56 +00:00
Andi Gutmans
ef9878647d - Fix the following script (it crashed):
<?php
   class ErrorHandler {
     function __construct() {
       set_error_handler(array(&$this, 'handle'));
     }

     function __destruct() {
       restore_error_handler();
     }

     function handle($code, $msg, $file, $line, $locals) {
     }
   }

   new ErrorHandler();
?>
2004-05-23 20:27:32 +00:00
Marcus Boerger
953a09969f - Optional parameter to class_exists() that can be used to bypass
__autoload() which can be helpfull in __autoload() itself.
2004-04-27 18:09:40 +00:00
Marcus Boerger
5fff6fa361 Skip correct amount of stack entries 2004-04-25 11:28:46 +00:00