Dmitry Stogov
ce5c38af25
Fixed bug #42820 (defined() on constant with namespace prefixes tries to load class).
2007-10-03 10:33:45 +00:00
Jani Taskinen
751d5232a2
- Nuked unused variable
2007-09-29 02:08:19 +00:00
Dmitry Stogov
8146078f7b
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:28:44 +00:00
Dmitry Stogov
189ac4f201
Late Static Binding (Dmitry, Etienne Kneuss)
2007-09-26 07:16:33 +00:00
Dmitry Stogov
894f79596e
typo
2007-09-11 11:35:46 +00:00
Dmitry Stogov
7256dc0894
forgotten part
2007-09-11 11:34:51 +00:00
Sebastian Bergmann
9ad07186b6
MFB: Add optional parameter to debug_backtrace().
2007-08-30 07:43:53 +00:00
Dmitry Stogov
611abb17fc
Namespace constants
2007-08-24 13:50:52 +00:00
Dmitry Stogov
1322b1a30a
Fixed bug #42009 (is_a() and is_subclass_of() should NOT call autoload, in the same way as "instanceof" operator).
2007-08-22 13:20:09 +00:00
Dmitry Stogov
ad8aa49f06
Fixed bug #42211 (property_exists() fails to find protected properties from a parent class)
2007-08-08 13:32:58 +00:00
Antony Dovgal
2de948a3fa
int -> zend_bool
2007-08-02 20:32:34 +00:00
Johannes Schlüter
0122a6fede
- Respect value of the parameter for get_loaded_extensions() and
...
get_defined_cosntants()
2007-08-02 16:52:59 +00:00
Johannes Schlüter
c883e25485
- Add additional param to get_loaded_extensions() for returning Zend
...
extensions (Fixes #41278 )
2007-07-31 22:45:08 +00:00
Dmitry Stogov
92d3bc0c93
Fixed bug #40757 (get_object_vars get nothing in child class)
...
Fixed bug #41929 (Foreach on object does not iterate over all visible properties)
2007-07-24 11:40:07 +00:00
Antony Dovgal
4adec955f9
fix folding and ws
2007-07-10 15:06:58 +00:00
Johannes Schlüter
eae4b3109e
Fix #41640 (get_class_vars produces error on class constants)
2007-06-09 08:36:52 +00:00
Dmitry Stogov
2908322c14
WIN64 support
2007-04-16 09:43:53 +00:00
Sara Golemon
b39fc244f0
Update create_function()
2007-01-05 19:00:36 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Antony Dovgal
120275b00e
fix possible leak on failure in get_defined_functions()
2006-12-20 23:19:44 +00:00
Antony Dovgal
afd3d27c5f
resolve coverity issue #224
2006-11-28 21:19:58 +00:00
Antony Dovgal
43559f1b18
fix leak in get_extension_funcs()
2006-11-21 11:10:01 +00:00
Antony Dovgal
6983398b91
fix proto
2006-11-21 10:48:16 +00:00
Dmitry Stogov
7edaae4ebf
typo
2006-11-15 17:53:39 +00:00
Dmitry Stogov
cc134cef18
Fixed bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash)
2006-11-15 16:05:26 +00:00
Johannes Schlüter
0e58baae93
- Fix #38465 (ReflectionParameter fails if default value is an access to self::
2006-10-18 16:34:25 +00:00
Andrei Zmievski
83e0dbb3d2
- Add an extra parameter to the cast_object handler that can be used by
...
various types as needed.
- Use that parameter to pass a specific converter for
IS_UNICODE/IS_STRING types.
2006-10-13 14:52:19 +00:00
Andrei Zmievski
706d7a3b55
Unicode string support for extension_loaded().
2006-10-06 17:11:17 +00:00
Andrei Zmievski
de082072cf
Unicode string support in get_extension_funcs().
2006-10-06 17:05:22 +00:00
Sara Golemon
d666c05427
PHP6 Update for get_included_files() and export of path decode for Zend
2006-10-03 16:28:02 +00:00
Dmitry Stogov
59d0c16391
Fixed bug #38942 (Double old-style-ctor inheritance)
2006-09-26 07:55:54 +00:00
Sara Golemon
3b24a795a6
Add missing function protos
2006-09-21 23:58:06 +00:00
Dmitry Stogov
128548a5c0
Disabled autoconversion of hash keys (from string to unicode) for PHP arrays
2006-09-19 10:38:31 +00:00
Andrei Zmievski
df345b9e33
Remove UTODO's -- this is handled during name mangling/unmangling.
2006-08-14 21:09:30 +00:00
Dmitry Stogov
0eb0282912
Fixed bug #38047 ("file" and "line" sometimes not set in backtrace from inside error handler)
2006-07-27 08:20:52 +00:00
Marcus Boerger
617a18fc40
- Fix for #34505 and repated (improved version of what is in 5.2, 5.1)
2006-07-24 17:51:41 +00:00
Antony Dovgal
402cbc1db9
no need to return bool and false in the same time =)
2006-07-20 07:30:14 +00:00
Andrei Zmievski
0667864631
Callable checks and class fetching and lookup should support identifer
...
normalization now. (Marcus, Andrei)
2006-07-18 17:52:45 +00:00
Marcus Boerger
607ca7baf6
- Provide defined value for autoload flag
2006-07-15 19:16:19 +00:00
Marcus Boerger
2de6065591
- Fixed Bug #37811 define not using toString on objects
2006-07-09 22:40:10 +00:00
Antony Dovgal
5a816e0f20
no need to throw E_ERROR here, E_WARNING is more than enough
2006-06-27 19:58:27 +00:00
Andrei Zmievski
5e64063b1c
Plug memory leak in set_exception_handler().
2006-06-20 22:50:49 +00:00
Dmitry Stogov
4e662470f7
Keeping consistent arg_stack during arguments freeing (Exception from destructor may use inconsistent arg_stack for backtrace).
2006-05-31 13:02:15 +00:00
Marcus Boerger
ef855827e3
- MFB Missing check
2006-05-09 21:28:47 +00:00
Antony Dovgal
3305bba32b
MF51: fix #36944 (strncmp & strncasecmp do not return false on negative string length)
2006-04-05 11:36:28 +00:00
Antony Dovgal
f34d655334
MF51: fix #36897 (debug_print_backtrace() doesn't return void but array(0) {})
2006-03-28 19:43:37 +00:00
Andrei Zmievski
9840a792ee
*** empty log message ***
2006-03-07 08:33:46 +00:00
Derick Rethans
6709a6bfc9
- Make this compile again
2006-03-07 07:58:56 +00:00
Andrei Zmievski
25d1f03526
Mark some functions as Unicode-safe and adjust UTODO notices for others.
2006-03-07 04:30:15 +00:00
Dmitry Stogov
62de2d7366
Remove "called at [(null):0]" from debug backtrace
2006-03-03 10:09:35 +00:00
Dmitry Stogov
e3b7f3fd0d
Unicode support: MS Visual C compatibility
2006-02-26 11:57:14 +00:00
Dmitry Stogov
1f4d9fa4a7
Unicode support: fixed internal constants usage and get_defined_constants()
2006-02-22 10:02:15 +00:00
Dmitry Stogov
0f1209ab3d
Portable unicode string API:
...
- use the same type (int) for zval.value.usr.len and zval.value.str.len
- use union "zstr" as char*/UChar* mixture instead of void*
- Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
- nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
b424a32610
Preparation for portable string API (use macroses to access zval).
2006-02-20 19:03:43 +00:00
Andrei Zmievski
ef4c06c083
Check for get_properties handler before using it. (Patch from
...
rrichards@ctindustries.net ).
2006-02-07 00:32:16 +00:00
Antony Dovgal
a1640d5ef9
duplicate string when needed
2006-02-03 13:24:26 +00:00
Dmitry Stogov
227295a4f1
Unicode stuff is changed according to decision maden on PDM.
...
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
Andi Gutmans
5de7cc3194
- Update copyright notices to 2006
2006-01-04 23:54:12 +00:00
Dmitry Stogov
feaa2501d0
Fixed bug #34729 (Crash in ZTS mode under Apache)
2005-12-01 11:49:51 +00:00
Sebastian Bergmann
5d671dd4b2
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. This revised patch has been reviewed by Dmitry and Zeev.
2005-11-01 13:18:34 +00:00
Sebastian Bergmann
621c6fb266
Revert.
2005-11-01 07:20:54 +00:00
Sebastian Bergmann
805cc1d659
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. Patch has been reviewed by Andi, Zeev, and Marcus. I will coordinate with Ilia on merging it to the PHP_5_1 branch after PHP 5.1.0 has been released.
2005-10-28 20:08:25 +00:00
Dmitry Stogov
ce0c17aa95
MFH (is_sublass_of("A","B") should call __autoload() for "A" and "B")
2005-09-09 06:47:18 +00:00
Dmitry Stogov
49c3b14f53
Unicode support for PHP constants
2005-09-08 11:10:34 +00:00
Dmitry Stogov
7b7551085b
Support for class constants and static members for internal classes
2005-09-01 10:05:01 +00:00
Andrei Zmievski
ec65bc1039
Implement Unicode support for strncasecmp().
2005-08-23 22:05:22 +00:00
Dmitry Stogov
8f6f97a77d
Unicode support
2005-08-23 12:53:31 +00:00
Dmitry Stogov
24743055a3
Changed is_a() and is_subcalls_of() functions to not call __autoload() (in the same way as "instanceof" operator).
2005-08-23 07:23:30 +00:00
Dmitry Stogov
cfe1dcb6e9
Unicode support for strncasecmp()
2005-08-23 06:51:11 +00:00
Andrei Zmievski
26d10c5c76
Unicode support for strcasecmp().
2005-08-22 22:17:19 +00:00
Dmitry Stogov
6b622046dc
zend_is_callable() and zend_make_callable() were changed to return readable function name as zval (instead of string).
2005-08-22 12:22:16 +00:00
Andrei Zmievski
87f0bee331
Unicode support for strcmp()/strncmp().
2005-08-19 23:15:36 +00:00
Dmitry Stogov
90393d675f
Unicode support
2005-08-19 13:20:16 +00:00
Dmitry Stogov
b0e24970bb
Unicode support cleanup
2005-08-19 10:54:26 +00:00
Antony Dovgal
e27521e578
fix memleak
2005-08-18 15:13:15 +00:00
Dmitry Stogov
8c33fcf7ce
Unicode mode doesn't allow non-unicode properties
2005-08-17 17:07:52 +00:00
Andrei Zmievski
250726f95b
Z_UNI* are the right macros to use.
2005-08-16 18:10:40 +00:00
Dmitry Stogov
e47587e189
Fixed several unicode related bugs
2005-08-15 14:39:18 +00:00
Andrei Zmievski
b80cb7bd2f
Unicode support
2005-08-11 23:35:03 +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