Xinchen Hui
62059c16ee
Fixed bug #63980 (object members get trimmed by zero bytes)
2013-01-14 16:23:22 +08:00
Xinchen Hui
a666285bc2
Happy New Year
2013-01-01 16:37:09 +08:00
Nikita Popov
5c7dd7811e
Simplify set_error_handler/set_exception_handler code
2012-09-22 21:46:29 +02:00
Nikita Popov
f28c128b20
Return previous error handler when resetting the error handler
...
set_error_handler(null) and set_exception_handler(null) now return the
previous error/exception handler instead of just returning bool(true).
This is consistent with the behavior of these functions with non-null
values.
2012-09-22 21:46:18 +02:00
Nikita Popov
c815dd74bc
Allow resetting the error handler
...
This allows the error handler to be reset using set_error_handler(null).
As the code suggests this behavior was already previously intended, but
the callback check was done too strictly.
2012-09-22 21:46:02 +02:00
Nikita Popov
4954aba2ed
Revert error/exception handler changes
...
This reverts the following two commits:
* 6ba2e662e4
* d8f8e98d8e
Laruence already did some partial changes to set_error_handler and
set_exception_handler. I'm reverting those modifications to apply the full
set of changes. (The modifications changed the code structure in a way that
would lead to more duplication with the new behavior.)
2012-09-22 21:41:51 +02:00
Xinchen Hui
6ba2e662e4
Implemented FR #60738 (Allow 'set_error_handler' to handle NULL)
...
The previous commit was reverted as Stas ask, so only commit this
to Truk now.
2012-03-24 19:41:11 +08:00
Xinchen Hui
d8f8e98d8e
Improve set_exception_handler while doing reset
2012-03-24 19:38:40 +08:00
Xinchen Hui
872fdd153e
Merge branch 'PHP-5.3' of ../php-5.3 into PHP-5.4
2012-03-24 19:26:27 +08:00
Xinchen Hui
9c99a89e8e
Revert "Implemented FR #60738 (Allow 'set_error_handler' to handle NULL)"
...
This reverts commit fcae164ea6
.
2012-03-24 19:26:02 +08:00
Xinchen Hui
2d21149743
Revert "Merge from PHP-5.4"
...
This reverts commit 9a87fe1c52
.
2012-03-24 19:25:21 +08:00
Xinchen Hui
7ffc442927
Merge branch 'PHP-5.3' of ../php-5.3 into PHP-5.4
2012-03-24 15:15:27 +08:00
Xinchen Hui
fcae164ea6
Implemented FR #60738 (Allow 'set_error_handler' to handle NULL)
2012-03-24 15:13:10 +08:00
Xinchen Hui
9a87fe1c52
Merge from PHP-5.4
...
Improve set_exception_handler
2012-03-24 14:33:00 +08:00
Xinchen Hui
4130f5a43c
Improve set_exception_handler
...
Remove useless alloc/free and return_value copy while doing reset
exception handler
2012-03-24 11:54:50 +08:00
Xinchen Hui
213145a6da
MFH: Fixed bug #61072 (Memory leak when restoring an exception handler).
2012-03-02 02:56:08 +00:00
Xinchen Hui
8f7381a6ea
Fixed bug #61072 (Memory leak when restoring an exception handler)
2012-02-14 05:35:34 +00:00
Felipe Pena
e4ca0ed09f
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Stanislav Malyshev
0f0ffd38c9
fix is_a reflection
2011-11-20 22:20:03 +00:00
Stanislav Malyshev
66877fbd15
fix typo
2011-11-18 09:15:15 +00:00
Stanislav Malyshev
77d0643b68
fixes for bug #55748
2011-11-18 07:11:19 +00:00
Stanislav Malyshev
3598185a74
fix bug #55475 - implement is_a BC solution
2011-11-09 05:27:45 +00:00
Stanislav Malyshev
f50f54a6ea
update proto
2011-09-26 03:57:22 +00:00
Rasmus Lerdorf
92f68921cf
Re-committing Alan's is_a revert/fix for bug #55475
...
Dmitry had done so earlier, but reverted pending discussion.
It is completely clear that this should never have been changed in the
5.3 branch in the first place giving the number of things that broke
because of it.
2011-09-23 09:52:09 +00:00
Dmitry Stogov
59ad27b0aa
Reverted the fix for #55475 (is_a() triggers autoloader) before the common decision
2011-09-15 10:59:39 +00:00
Dmitry Stogov
e98759eecf
Fixed bug #55475 (is_a() triggers autoloader). (alan at akbkhome dot com)
2011-09-15 09:58:33 +00:00
Dmitry Stogov
4a25a7740d
Fixed ZE specific compile warnings (Bug #55629 )
2011-09-13 13:29:35 +00:00
Etienne Kneuss
baf2e822cc
Fix typo
2011-08-08 14:54:50 +00:00
Etienne Kneuss
6b5d5b8d12
Fix typo
2011-08-08 14:54:50 +00:00
Pierrick Charron
cbd4f7602e
Use snprintf to make the static analyzers happy
2011-08-08 11:19:49 +00:00
Pierrick Charron
d0a4c01099
Use snprintf to make the static analyzers happy
2011-08-08 11:19:49 +00:00
Pierrick Charron
bfd10cfee9
function_name cannot be false
2011-08-07 06:19:43 +00:00
Pierrick Charron
b90059120d
function_name cannot be false
2011-08-07 06:19:43 +00:00
Felipe Pena
68e5e29850
- Fix compiler warning
2011-07-25 11:51:43 +00:00
Felipe Pena
a10e7fe11d
- Use ZEND_FE_END macro here
2011-07-25 11:50:10 +00:00
Felipe Pena
468d13513c
- Use ZEND_FE_END macro here
2011-07-25 11:50:10 +00:00
Stanislav Malyshev
4d926b1fa3
Change E_ALL to include E_STRICT
2011-07-23 22:07:22 +00:00
Stanislav Malyshev
1ee8ff3b7d
remove warning for is_a() BC
2011-07-12 05:20:40 +00:00
Stanislav Malyshev
c6076da77c
remove warning for is_a() BC
2011-07-12 05:20:40 +00:00
Dmitry Stogov
adabdede5e
Fixed bug #53727 (Inconsistent behavior of is_subclass_of with interfaces)
2011-07-04 14:55:39 +00:00
Dmitry Stogov
293f710827
Fixed bug #53727 (Inconsistent behavior of is_subclass_of with interfaces)
2011-07-04 14:55:39 +00:00
Sebastian Bergmann
6f3148db81
Add optional argument to debug_backtrace() and debug_print_backtrace() to limit the amount of stack frames returned.
2011-04-09 09:52:24 +00:00
Stanislav Malyshev
3a3f369678
Add options to debug_backtrace functions
2011-01-16 20:39:22 +00:00
Stanislav Malyshev
b4dba12d34
Add options to debug_backtrace functions
2011-01-16 20:39:22 +00:00
Stefan Marr
478e5d1dd0
Added trait_exists() [TRAITS] [DOC]
...
- also changed class_exists() to return false for traits
- added related tests, and get_declared_traits() tests in ext/s/t/co
2011-01-09 19:57:41 +00:00
Felipe Pena
927bf09c29
- Year++
2011-01-01 02:19:59 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Felipe Pena
565c484222
- Moved leak_variable() to zend_builtin_functions.c (Gustavo)
2010-11-15 17:06:27 +00:00
Hartmut Holzgraefe
aaa2f1c30b
marked char pointer arguments as const in lots of
...
places where strings pointed to are not modified
to prevent compiler warnings about discarded qualifiers ...
2010-10-14 21:33:10 +00:00