Commit Graph

488 Commits

Author SHA1 Message Date
Sara Golemon
06bad726a2 Wrong function name in error message 2007-07-13 23:51:51 +00:00
Dmitry Stogov
1f413bbc37 Namespaces 2007-07-12 09:23:48 +00:00
Dmitry Stogov
34383f0bd0 Made uniform error reporting for unicode/non-unicode modes 2007-07-11 12:57:36 +00:00
Antony Dovgal
d547768308 fix folding and ws 2007-07-10 14:42:43 +00:00
Antony Dovgal
232eebb8f7 fix indentation and make Andrey happy =) 2007-07-06 12:17:51 +00:00
Antony Dovgal
eab558a79e fix #41517 (different behaviour of floatval() in Unicode mode) 2007-05-28 20:26:52 +00:00
Marcus Boerger
dc41d46e5b - Extensions are indexed lowercased and not case aware 2007-05-16 18:56:38 +00:00
Antony Dovgal
fcc82f1834 allow passing Unicode strings when a boolean is expected 2007-05-14 12:47:23 +00:00
Dmitry Stogov
9b6f46a86c Fixed wrong deallocation 2007-05-04 16:51:18 +00:00
Antony Dovgal
fe6fd4ed38 fix disabled classes 2007-05-04 12:17:30 +00:00
Johannes Schlüter
b9c840c58d - Fix "f" modifier for zend_parse_parameters_ex in case of a __call call
(fixes Zend/tests/bug19859.phpt and Zend/tests/bug34260.phpt)
2007-04-30 19:51:20 +00:00
Johannes Schlüter
3a89cfae67 - Fix zend_parse_parameters_ex() for format specifiers like "+f", like multiple
values followed by forced parameters. Fixes tests like
  ext/standard/tests/array/007.phpt and others
2007-04-16 18:50:05 +00:00
Dmitry Stogov
2908322c14 WIN64 support 2007-04-16 09:43:53 +00:00
Marcus Boerger
10f0e0a5fa - Fix potential issue with 'f'-parameter parsing
- Complete zend_fcall_info_*() API
2007-02-08 14:33:16 +00:00
Marcus Boerger
70777b7df6 - More ZEND_API's 2007-02-08 12:29:57 +00:00
Andrei Zmievski
135c947f8d - Add ^ specifier that returns original string type before conversion.
- Add ZVAL_ENC_STRING[L] macro that allows returning either a binary
  string or an encoded strings as Unicode based on type, instead of
  UG(unicode)
2007-02-02 21:49:38 +00:00
Antony Dovgal
92bf7d9872 -exactly 1 arguments
+exactly 1 argument
2007-02-02 12:51:37 +00:00
Sara Golemon
7dcebde684 Add add_property_zstr(l)(_ex)() 2007-01-07 06:16:57 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
722ad46c38 fix leak in zend_disable_class() 2006-12-20 23:00:54 +00:00
Andrei Zmievski
de0f972b2b Check for conversion failure in "s&" and return appropriately. 2006-12-20 20:43:52 +00:00
Marcus Boerger
da3d27dc4e - Implement parameter parsing 'x' 2006-12-19 22:21:18 +00:00
Dmitry Stogov
bea2519575 Fixed buffer overflow. (Rob) 2006-12-01 14:57:44 +00:00
Antony Dovgal
0e647693df fix leak in zend_register_functions()
this is very odd, but Zend MM said nothing about it..
2006-11-20 22:08:27 +00:00
Dmitry Stogov
57d22421db Unicode support.
Now the real UG(unicode) value is available during MINIT calls.
2006-11-17 10:48:53 +00:00
Andrei Zmievski
75c272440e Turn doc comments into zstr strings with corresponding adjustments. 2006-10-27 21:22:05 +00:00
Andrei Zmievski
1e1f3efb02 Fix thread safety. 2006-10-17 22:15:19 +00:00
Andrei Zmievski
2602e49e65 Implement add_utf8_property_* API. 2006-10-17 17:56:42 +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
97d0372249 Extend zend_fcall_info_args functions. (Patch from Mike Wallner) 2006-10-11 18:37:31 +00:00
Andrei Zmievski
d86524570f Hash functions for UTF-8 keys. 2006-10-07 17:34:19 +00:00
Dmitry Stogov
e8ddcf1077 Speedup array/HashTable copying. (Matt W) 2006-10-03 11:10:54 +00:00
Sara Golemon
3b24a795a6 Add missing function protos 2006-09-21 23:58:06 +00:00
Andrei Zmievski
7ff8b9b090 Bug fixes for substr_replace(). 2006-09-20 20:30:19 +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
Dmitry Stogov
70ad4607d7 ZTS fix 2006-09-19 07:39:25 +00:00
Andrei Zmievski
81b83f327b More work on Unicode support in PCRE. When UG(unicode) is on, all
strings passed to PCRE have to be IS_UNICODE or IS_STRING in UTF-8
encoding. Failure to do so will result in unpredictable results.
2006-09-18 17:59:10 +00:00
Dmitry Stogov
9b222e6f07 fix 2006-09-11 17:18:47 +00:00
Andrei Zmievski
21bc25e025 Add a couple more UTF-8 functions. 2006-09-11 16:32:02 +00:00
Andrei Zmievski
11ca9006a2 Add APIs for UTF-8 strings (common with XML, PCRE, etc) 2006-08-28 17:14:49 +00:00
Andrei Zmievski
2701f53af6 add_next_index_zstr[l]() 2006-08-14 21:05:22 +00:00
Andrei Zmievski
180e98f5cb Typo. 2006-08-14 20:45:32 +00:00
Andrei Zmievski
ea7ab72fe7 Set T_arg_type to default string type if we were not able to determine
it from the args.
2006-08-14 20:40:26 +00:00
Andrei Zmievski
a90da20623 Make params API sound less like Raymond Babbitt. 2006-08-09 17:37:29 +00:00
Andrei Zmievski
9320e167f2 Adjust zend_get_unified_string_type() to give correct types. 2006-08-08 17:36:55 +00:00
Andrei Zmievski
dda059708f Add add_assoc_zstr_ex() and related. 2006-08-04 21:05:59 +00:00
Andrei Zmievski
aa398bf8ce One fewer walks needed. 2006-08-04 18:02:20 +00:00
Andrei Zmievski
2bfe0a8cbd Scan through all the modifiers at once, setting flags. 2006-08-04 17:02:17 +00:00
Andrei Zmievski
fd39d28d17 Fix '&' handling. (patch by Rob R) 2006-08-04 16:58:29 +00:00
Andrei Zmievski
433c40c3d2 Add '&' modifier (for 's' type) that will apply the specified converter
during conversion of Unicode strings.
2006-08-02 17:36:28 +00:00
Derick Rethans
0d1957e7dc - MFB: Fixed typo 2006-07-25 06:50:26 +00:00
foobar
bca80ac698 - Fixed bug #38183 (disable_classes=Foobar causes disabled class to be called Foo) 2006-07-22 15:39:22 +00:00
Dmitry Stogov
881258ad6e Fixed wrong "type" argument to read_property() handler 2006-07-21 08:39:43 +00:00
Marcus Boerger
8619c361cc - Add new unicode functions: add_u_assoc_*[_ex]() which allow to add values
using a unicode key.
2006-07-20 21:16:08 +00:00
Andrei Zmievski
0e05886a2e Fix usage of 'return_null' option in parameter parsing. 2006-07-19 18:21:04 +00:00
Andrei Zmievski
80839710f1 Make 't' and 'T' use zstr for storage type. 2006-07-19 17:51:49 +00:00
Andrei Zmievski
f45c16cb3c Add '+' varargs specifier that requires at least one arg. 2006-07-19 17:38:47 +00:00
Andrei Zmievski
4bf31abbf4 Initialize some vars. 2006-07-19 01:51:20 +00:00
Andrei Zmievski
bbd3cd2743 Implement varargs parameter parsing. See README for examples. 2006-07-18 22:07:20 +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
Andrei Zmievski
fdf280b41b - Upgrade usort() to support Unicode (including valid Unicode callbacks).
- Make usort() use 'f' specifier for function call info/cache.
2006-07-17 20:52:12 +00:00
Andrei Zmievski
2fbc36496f - Let the caller output a warning instead of having
zend_get_unified_string_type() do it.
- Mark a few more functions are Unicode compatible.
2006-07-13 21:27:48 +00:00
Antony Dovgal
1fb6a441d7 fix argument parsing utilities
test before commit?
2006-07-12 10:13:13 +00:00
Sara Golemon
f541962338 Fix typo/Syntax error 2006-07-12 04:20:02 +00:00
Andrei Zmievski
a1fcfe3693 Remove unused 'y' specifier. 2006-07-11 22:53:10 +00:00
Andrei Zmievski
b41169d4e7 Rename to a more explanatory macro. 2006-07-11 16:59:42 +00:00
Andrei Zmievski
637f602822 Optimize zero-arg case for parameter parsing. No more need for manual
checks.
2006-07-10 23:06:33 +00:00
Antony Dovgal
59e16e52de init variables 2006-06-20 13:28:02 +00:00
Dmitry Stogov
2cbde06400 Added automatic module globals management. 2006-06-13 13:11:42 +00:00
Marcus Boerger
f2a8d8cb83 - Fix issue with interfaces being inherited multiple times 2006-06-07 09:20:02 +00:00
Marcus Boerger
45c1713762 - Fix function flag check 2006-06-04 10:23:25 +00:00
Marcus Boerger
5925a26275 - Take care of refcounting in zend_fcall_info_*() functions
- Add docu
# I know it is unpopular to add docu here but i think we should add more
2006-05-27 19:40:06 +00:00
Marcus Boerger
f93bf1007a - WS 2006-05-27 19:04:16 +00:00
Marcus Boerger
9265545992 - Fix bug #37212 (Access to protected property of common base class)
By adding "zend_class_entry *ce" to struct zend_property_info;
# Besides closing the bug this patch allows to optimize a bunch of
# property handling optimizations. I need to find out what all can be
# optimized. All other tests relevant to class handling still PASS.
2006-05-27 02:12:43 +00:00
Sara Golemon
a228b7f675 Fix ZTS build, call with TSRMLS_CC not DC 2006-05-26 04:22:46 +00:00
Marcus Boerger
9114bc25c3 - Ease writing functions that deal with php function 'pointers' 2006-05-25 22:20:13 +00:00
Antony Dovgal
34126e4a64 MFB: fix error messages when converting objects to other types 2006-05-25 10:34:01 +00:00
Marcus Boerger
30bc5adf3b - Handle NULL in C argument parsing correct 2006-05-23 22:21:52 +00:00
Marcus Boerger
223dce98a5 - Improve error messages (missing unicode todo) 2006-05-21 12:39:03 +00:00
Marcus Boerger
601523f22d - Support __tostring() in argument parsing 2006-05-13 10:18:12 +00:00
Sara Golemon
c581700782 Fix ZTS build 2006-04-18 18:57:13 +00:00
Antony Dovgal
a264a5aca3 binary strings exist only in unicode mode 2006-04-18 17:10:30 +00:00
Andrei Zmievski
29552a6472 Some functions may want to accept only Unicode or binary strings,
without having auto-conversion from the other string type. Add 'U' and
'S' specifiers for this. Also, remove traces of 'native' strings.
2006-03-27 02:52:06 +00:00
Marcus Boerger
123df34265 - Initialize callable_name if requested 2006-03-23 13:09:28 +00:00
Dmitry Stogov
53e1f2adfb Optimization of module unloading (temporary modules can be only in the end) 2006-03-17 08:34:34 +00:00
Dmitry Stogov
7c0e534157 Dropped zend.ze1_compatibility_mode 2006-03-16 10:33:23 +00:00
Marcus Boerger
fd2b76d505 - Add missing function for completeness 2006-03-05 16:09:45 +00:00
Marcus Boerger
03be54de37 - Make unicode handling portable (noted by andrei)
# Actually we should provide much more such unicode strings that we often
# use like 'parent', 'self' and so on.
2006-03-03 23:20:29 +00:00
Marcus Boerger
5d77a462f6 - As expected (but told otherwise) unicode strings indeed need to be
terminated by two \0.
2006-03-03 22:37:47 +00:00
Marcus Boerger
a3741cf6bc - Constants need to be updated too (when updating class constants) 2006-03-01 16:15:15 +00:00
Dmitry Stogov
e3b7f3fd0d Unicode support: MS Visual C compatibility 2006-02-26 11:57:14 +00:00
Marcus Boerger
8a4c8e8d47 - Add macros to mark functions/alias functions as deprecated
(mentioned by Sara and obviously neccessary)
- Fix function/method flag error detection logic
2006-02-24 13:29:54 +00:00
Dmitry Stogov
0342d9f519 Unicode support 2006-02-22 12:02:44 +00:00
Dmitry Stogov
19ebeed0d8 Unicode support: fixed call_user_func(array($this, "self::foo"))
Made check for "self/parent" before calling __autoload()
2006-02-22 08:54:02 +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
2e5d0a3a9d WS 2006-02-21 08:00:39 +00:00
Dmitry Stogov
b424a32610 Preparation for portable string API (use macroses to access zval). 2006-02-20 19:03:43 +00:00
Marcus Boerger
ffd43034b0 - Interfaces may have static methods to enforce their existance in
implementing classes
2006-02-19 11:55:11 +00:00
Marcus Boerger
89f57ea951 - Static functions cannot be abstract 2006-02-19 11:42:30 +00:00
Marcus Boerger
5a4cfaf96a - Fix method flag handling 2006-02-19 10:39:48 +00:00