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
Zeev Suraski
2310acb57a
Fix debug_backtrace to show arguments again
...
We need to merge code from debug_backtrace & debug_print_backtrace at
some point!
2004-04-13 16:07:19 +00:00
Andi Gutmans
c534a9e782
- Hopefully fix the debug_backtrace() code.
2004-04-07 15:29:09 +00:00
Andi Gutmans
7264ffe50d
- Fix crash bug in zend_debug_backtrace(). No idea how come this survived
...
- for so long....
2004-04-07 14:02:29 +00:00
Andi Gutmans
8838b38fcb
Patch by Timm Friebe:
...
It changes
set_exception_handler() to accept the pseudo-type "callable" (instead of
a string referring to a global function).
Examples:
set_exception_handler('function_name');
set_exception_handler(array('class_name', 'static_method'));
set_exception_handler(array($instance, 'instance_method'));
This also makes set_exception_handler() more consistent with all the
other callback functionality, e.g. set_error_handler().
2004-04-03 21:50:12 +00:00
Ilia Alshanetsky
c85843aec1
MFB: Revert patch for bug #27782 .
2004-04-01 22:07:42 +00:00
Ilia Alshanetsky
ec4655f864
Fixed bug #27782 (Wrong behaviour of next(), prev() and each()).
2004-03-30 19:08:43 +00:00
Marcus Boerger
afe794c0d6
Allow mixed case search for extensions
2004-03-29 18:48:59 +00:00
Marcus Boerger
4efbb35067
Make object parameter optional
2004-03-14 22:40:25 +00:00
Andi Gutmans
47cb3323a8
- Fixing bug #27123
2004-03-14 17:16:31 +00:00
Derick Rethans
a84efbe923
- Fixed bug #27443 (defined() returns wrong type).
2004-03-01 08:07:25 +00:00
foobar
b87a245207
ws + cs
2004-02-25 21:06:59 +00:00
Zeev Suraski
a72c1ab93b
Added error mask to set_error_handler()
...
Patch by Christian Schneider <cschneid@cschneid.com>
2004-01-10 11:43:42 +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
Derick Rethans
03f8baa87e
- Make it compile again
2003-12-08 13:26:03 +00:00
Stanislav Malyshev
dc6a849a2f
Apply Andrey Hristov's patch adding get_declared_interfaces()
2003-12-07 18:54:31 +00:00
Andi Gutmans
709060e161
- Nuke property_exists(). We need to fix isset() and this is already
...
- supported in reflection API. In any case, it's best not to add new
- functions in the general namespace except for keeping engine consistency
(which would have been true in this case)
2003-12-01 11:53:42 +00:00
Marcus Boerger
3be27ecc78
Add a support function to check for property existance which is different
...
from checking a property from being empty/set.
Update test #26182 .
2003-11-27 17:06:26 +00:00
Andi Gutmans
d344648b07
- Fix __autoload() to preserve class case.
...
- Heads up, this patch might break stuff so please let me know if you
- bump into any problems.
2003-11-24 18:13:29 +00:00
Andi Gutmans
c0df450203
- Add E_STRICT, to be used to warn purists (like Jani :)
2003-11-18 09:25:04 +00:00
Marcus Boerger
7cc93e121b
Bugfix #26010 (Bug on get_object_vars() function)
2003-11-10 21:03:04 +00:00
Marcus Boerger
e912635f82
Removedouble efree call
2003-11-04 22:01:37 +00:00
Marcus Boerger
3efe102a48
Nuke vars no longer needed
2003-09-18 17:13:59 +00:00
Marcus Boerger
7b3e84871e
Go with studlyCaps
2003-09-18 16:20:42 +00:00
Zeev Suraski
f1b80b9210
Attempt at fixing the linkage problem in Win32
2003-08-31 12:38:50 +00:00
Marcus Boerger
bdd2d4aacf
Need to tell zend_fetch_debug_backtrace() whether to skip top function or not.
...
# And i wondered why the trace wasn't rally accurate.
2003-08-29 00:16:00 +00:00
Marcus Boerger
8d3620aea8
- Split debug_backtrace() into lowlevel c function and php function wrapper
...
- Add trace property to default method based on new zend_fetch_debug_backtrace
# Unforunatley the handler for uncaught exception can't show this backtrace
# simply because there is currently no way to do it. If i can think of a
# solution i'll add it. Until them i am open to any ideas/help.
2003-08-28 20:35:54 +00:00
Sascha Schumann
2e36578cfd
Add format attribute to a number of functions
...
Kill a few warnings
2003-08-28 16:41:20 +00:00
Ilia Alshanetsky
f94b536bc8
Replace *magic number* with a much nicer define.
2003-08-22 18:50:12 +00:00