Commit Graph

508 Commits

Author SHA1 Message Date
Dmitry Stogov
9ef40c1284 Fixed bug #50261 (Crash When Calling Parent Constructor with call_user_func()) 2009-11-30 11:39:53 +00:00
David Soria Parra
ad929b4a24 Add object-create and object-destroy dtrace probe 2009-11-16 03:10:25 +00:00
Felipe Pena
51986f9ce3 - Drop brackets 2009-11-13 00:24:43 +00:00
Pierre Joye
9ec72d0415 - don't hide early declaration 2009-09-05 19:00:05 +00:00
Scott MacVicar
afcc47ef85 Fix bug #48575 - Use dlopen() just like all the other *nixes instead of OSX specific code. 2009-08-06 01:33:54 +00:00
Felipe Pena
dd6e75c230 - Fixed bug #48899 (is_callable returns true even if method does not exist in parent class) 2009-07-15 01:08:15 +00:00
Matt Wilmas
8aa9727037 Restored double->long conversion behavior to that of PHP 5.2 (on most platforms) and prior:
* Out-of-range numbers overflow/preserve least significant bits (no LONG_MAX/MIN limit)
 * See bug #42868 (presumably-rare platform with different results in 5.2)
 * On 32-bit platforms with 64-bit long type, a zend_long64 cast has been added,
    otherwise it's the same as 5.2
 * Use this conversion method everywhere instead of some plain (long) casts

Added 'L' parameter parsing specifier to ensure a LONG_MAX/MIN limit:
 * Essentially what 5.3's new conversion was doing in most cases
 * Functions with "limit" or "length" type params could be updated to use this,
    and prevent confusing overflow behavior with huge numbers (*also* in 5.2)
  - See bug #47854, for example; or even #42868 again

# Test updates coming
2009-06-04 18:18:47 +00:00
Felipe Pena
6d34e06a2f - Dropped *_TEXT* macros in favor of unicode macros direct usage 2009-05-25 14:32:15 +00:00
Scott MacVicar
0c54cd40c0 PPC machines mark char as unsigned, rather than signed.
This caused a segfault when using the T type for zend_parse_parameters because the default value
ended up being 255 and never -1
2009-05-08 11:36:35 +00:00
Dmitry Stogov
78d2e0b924 Bug #47880 (crashes in call_user_func_array()) 2009-04-06 11:10:50 +00:00
Dmitry Stogov
f970a1e5c3 Fixed bug #47851 (is_callable throws fatal error) 2009-04-02 09:56:53 +00:00
Felipe Pena
8ecf8ede1f - Removed:
- UG(unicode) checks
       - pcre_cache_entry.unicode_mode
- Changed:
       - ZEND_STR_TYPE -> IS_UNICODE
       - convert_to_text -> convert_to_unicode
       - convert_to_text_ex -> convert_to_unicode_ex

(Felipe, Steph)
2009-03-26 20:02:53 +00:00
Dmitry Stogov
a7fceff373 Fixed double efree() 2009-03-24 16:35:41 +00:00
Dmitry Stogov
2cfd6cd195 Fixed __call() to be invoked on private/protected method access through callback
s
2009-01-14 11:56:24 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Stanislav Malyshev
636b2c9a6f MF5: Merge namespaces changes 2008-12-04 20:12:30 +00:00
Dmitry Stogov
e5454b359a Fixed bug #46409 (__invoke method called outside of object context when using array_map) 2008-11-27 19:02:45 +00:00
Stanislav Malyshev
3a54f031e4 cleanup 2008-11-25 22:23:28 +00:00
Stanislav Malyshev
04c165274a add object-compatible array parameters 2008-11-24 19:17:24 +00:00
Dmitry Stogov
a54d8e5d08 Fixed bug #46246 (difference between call_user_func(array($this, $method)) and $this->$method()) 2008-10-10 15:19:22 +00:00
Antony Dovgal
dcb76bf143 fix zend_register_functions() not displaying duplicate functions (reported by Gopal) 2008-08-22 14:51:19 +00:00
Etienne Kneuss
6423606a63 Handlerify get_closure 2008-08-14 21:26:05 +00:00
Felipe Pena
66dab83834 - Fix build 2008-08-13 16:19:28 +00:00
Felipe Pena
a5f867f3d5 - Constness (Added const qualifier to several function parameters) 2008-08-12 17:15:59 +00:00
Marcus Boerger
320c954402 - Fix memleak with new error handling stack'ing 2008-08-11 17:19:01 +00:00
Marcus Boerger
034d2e5916 - Turns out the easy solution for correct error_handling doesn't work. So
we need to provide save/replace/restore functions right away. It also
  to save/restore in the vm.
2008-08-08 17:10:49 +00:00
Dmitry Stogov
d24ecd1458 Fixed bug #45744 (Case sensitive callback behaviour) 2008-08-07 12:03:51 +00:00
Felipe Pena
611ecc5111 - Added parameter TSRMLS_DC in zend_is_callable() 2008-08-02 04:40:45 +00:00
Felipe Pena
dd3d9fc455 - Removed unnecessary TSRMLS_FETCH() 2008-08-02 02:49:46 +00:00
Antony Dovgal
182de3e907 add zend_u_read_property() and zend_u_update_property() 2008-07-29 08:47:21 +00:00
Dmitry Stogov
d379f1fd06 Added checks for destroied objects 2008-07-26 18:32:39 +00:00
Dmitry Stogov
bdf7981e28 Fixed is_callable/call_user_func mess that had done different things for very similar arguments e.g. array("A","B") and "A::B" 2008-07-26 13:14:56 +00:00
Felipe Pena
8e1b4a55cc - Added TSRMLS_DC to apply_func_args_t and zend_hash_apply_with_arguments. 2008-07-24 19:50:23 +00:00
Dmitry Stogov
72dfe66661 LSB parent/self forwarding 2008-07-24 10:14:01 +00:00
Dmitry Stogov
84625f5e7e Fixed is_callable() to support closures and return appropriate function name 2008-07-14 12:17:16 +00:00
Dmitry Stogov
8d2e0a7e0f Added closures support 2008-07-08 07:05:04 +00:00
Felipe Pena
579dcade61 - MFB: Fixed bug #45186 (__call depends on __callstatic in class scope) 2008-06-05 19:16:17 +00:00
Matt Wilmas
9c37df900c Add array_init_size() and use it where array size is known at initialization 2008-05-27 10:28:25 +00:00
Dmitry Stogov
1e2676070d Added API to use namesapces in internal extensions 2008-05-12 07:13:47 +00:00
Felipe Pena
496099274b - Fixed detection of invalid class name 2008-05-08 16:58:43 +00:00
Felipe Pena
cb9f7f675f - Fix valgrind report (Conditional jump or move depends on uninitialised value) 2008-05-08 15:39:35 +00:00
Dmitry Stogov
a0f5a72a8a Support for old-style constructors in namespaces 2008-05-05 09:44:07 +00:00
Antony Dovgal
f2ca4aaf6a allow NULL argument to be passed where binary string expected 2008-03-26 09:09:08 +00:00
Dmitry Stogov
ad40998e8a Optimized detection of "__call" and "__callstatic" methods. 2008-03-25 13:04:22 +00:00
Felipe Pena
d6aacd5eb6 Fixed error message on unicode mode 2008-03-05 14:39:05 +00:00
Sebastian Bergmann
b1d4185f7f Fugbix typo. 2008-02-19 06:52:17 +00:00
Marcus Boerger
43b623f2a2 - Windows build fix 2008-02-09 21:22:22 +00:00
Marcus Boerger
7329e71eb5 - Simplify 2008-02-07 18:40:44 +00:00
Marcus Boerger
cbf04002c4 - Is there an easier way to figure out something is a string? 2008-02-06 22:00:21 +00:00
Marcus Boerger
812d203003 - Fix unicode
# I hate unicode, it is getting tooo complex
2008-02-06 21:53:17 +00:00