Commit Graph

4841 Commits

Author SHA1 Message Date
Marcus Boerger
b9211d24e7 - Any php object converts to boolean as true 2005-10-06 18:46:01 +00:00
Dmitry Stogov
f27aedcce2 Cleanup 2005-10-06 08:18:20 +00:00
93dcfb79de ChangeLog update 2005-10-06 05:34:43 +00:00
Marcus Boerger
7c083fcc07 - Have __toString() be called if available in all places an object is used
as a string.
#
# Note that "Object #<id>" is no longer afallback for debugging purpose use
# var_dump, which was made for debugging. If you used this to grab the id
# of an object you can never rely on this. For object storage look at SPL's
# ObjectStorage class.
#
# Note the signature change in the cast handler:
#
# int (*cast_t)(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC);
# int (*cast_t)(zval *readobj, zval *retval, int type TSRMLS_DC);
2005-10-05 19:02:27 +00:00
Marcus Boerger
12dbad3a5c - Fix warnings 2005-10-05 18:57:40 +00:00
61bf77f29c ChangeLog update 2005-10-04 05:38:47 +00:00
Marcus Boerger
6d703c5967 - In a conditional statement "a ? b ? c", a and b MUST have the same type
# We should make this an inline function to prevent unnecessary calls to
# get classentry or requir that class_entry must return a valid class_entry
# which we do iirc anyway.
2005-10-03 19:24:09 +00:00
Marcus Boerger
ebcafe58d3 - Fix ZTS Build 2005-10-03 19:13:13 +00:00
Marcus Boerger
4d09d0b819 - Allow uncached global functions too 2005-10-03 12:34:57 +00:00
Marcus Boerger
0d5550eb06 - Add propper casting 2005-10-03 12:14:47 +00:00
Marcus Boerger
59557385ac - Make reflection class pointers available for others 2005-10-03 10:04:33 +00:00
Dmitry Stogov
cdb1746ac3 Fixed bug #34678 (__call(), is_callable() and static methods) 2005-10-03 09:10:28 +00:00
Dmitry Stogov
eedbae57ae Fixed bug #34358 (Fatal error: Cannot re-assign $this) 2005-10-03 08:21:20 +00:00
c3948bf457 ChangeLog update 2005-10-03 05:36:27 +00:00
Andrei Zmievski
1454bdfea4 *** empty log message *** 2005-10-02 03:10:33 +00:00
21ac01fae2 ChangeLog update 2005-09-28 07:05:48 +00:00
Dmitry Stogov
a7c91fec3a Fixed bug #34617 (zend_deactivate: objects_store used after zend_objects_store_destroy is called) 2005-09-27 18:08:26 +00:00
Dmitry Stogov
f94344d7fd Changed __toString() behavior to call it in all necessary places 2005-09-27 07:59:18 +00:00
1ccdcabf65 ChangeLog update 2005-09-24 05:35:43 +00:00
Marcus Boerger
6265c1623f - Remove unused variable 2005-09-23 23:02:29 +00:00
Marcus Boerger
23d0387eae - WS 2005-09-23 22:55:10 +00:00
Marcus Boerger
4a430a093a - WS fix 2005-09-23 22:49:57 +00:00
Antony Dovgal
57c6acb932 fix test 2005-09-23 10:34:02 +00:00
Antony Dovgal
244563283a fix tests to work with HEAD and its new E_* values 2005-09-23 10:28:23 +00:00
Antony Dovgal
76d773ae1d remove double EXPECT tag 2005-09-23 09:39:59 +00:00
Antony Dovgal
520288bbe6 add new tests 2005-09-23 09:39:29 +00:00
Antony Dovgal
b97af6c1c0 MF5.1:
- store current value of error_reporting only if it's not stored yet
- reset old_error_reporting to NULL only it points to the tmp_var at current opline
2005-09-23 09:38:37 +00:00
Dmitry Stogov
14a0d82f42 MFH 2005-09-23 07:16:06 +00:00
3c581e752b ChangeLog update 2005-09-23 05:33:26 +00:00
Antony Dovgal
57e146e652 bump API number 2005-09-22 19:13:52 +00:00
Antony Dovgal
78fe744753 fix #33771 (error_reporting falls to 0 when @ was used inside try/catch block) 2005-09-22 19:03:04 +00:00
517a4152ce ChangeLog update 2005-09-22 05:45:59 +00:00
Marcus Boerger
d376c1e4a5 - Fix Bug #34243 ReflectionClass::getDocComment() returns no result 2005-09-21 09:56:35 +00:00
Derick Rethans
c3c9df5ed6 - Moved the FREE_OP to after the execution of the included file, or eval
statement so that it is safe to access this information in the overridden
  zend_execute() function, which is what Xdebug does.
2005-09-21 08:12:34 +00:00
51953f7bd1 ChangeLog update 2005-09-21 05:35:49 +00:00
ebc7bb3a00 ChangeLog update 2005-09-20 05:45:47 +00:00
Marcus Boerger
2c6cf58a96 - Add eytension consts to extension output (Johannes)
- Fix WS in output
2005-09-19 20:29:33 +00:00
Dmitry Stogov
b3ec0a78c9 MFH (removed unnecesary call to zval_ptr_dtor) 2005-09-19 17:50:11 +00:00
Dmitry Stogov
a106b48982 Fixed access to memory that is already freed (in case of __call() method) 2005-09-19 16:28:43 +00:00
Dmitry Stogov
9f9043864c Fixed parameter passing incompatibilities.
Now it is possible to call array_pop(explode("&","1&2&3")) again.
2005-09-19 16:01:56 +00:00
Dmitry Stogov
4d8290d000 Unicode support 2005-09-19 07:23:47 +00:00
baf70abbf9 ChangeLog update 2005-09-19 05:45:53 +00:00
720fbd9a5f ChangeLog update 2005-09-17 05:42:43 +00:00
Antony Dovgal
1b1c0e3c78 check class_entry of this_ptr in Reflection API, so we won't get an alien this_ptr
when called statically in a function that is called statically too (without being
declared as static)
2005-09-16 20:20:46 +00:00
Dmitry Stogov
213a1768a2 Fixed tests 2005-09-16 15:24:50 +00:00
Dmitry Stogov
a5c84dde62 MFH 2005-09-16 15:24:09 +00:00
Dmitry Stogov
af3476a982 Fixed bug #34518 (Unset doesn't separate container in CV) 2005-09-16 14:40:49 +00:00
Dmitry Stogov
3c76f253e8 MFH (overriding of protected static property) 2005-09-16 13:42:31 +00:00
0993ab6ad9 ChangeLog update 2005-09-16 05:40:54 +00:00
Derick Rethans
0f391bb0b3 - Add E_RECOVERABLE.
#- Thought I did this before already actually...
2005-09-15 16:19:48 +00:00
foobar
1a1f97ee7e MFB 2005-09-15 13:20:24 +00:00
8d78d4cf18 ChangeLog update 2005-09-15 05:48:00 +00:00
Marcus Boerger
acae6a3810 - Improve error message 2005-09-14 18:21:11 +00:00
foobar
45e1606796 Silence some crap if bison does not exist 2005-09-14 15:52:49 +00:00
eb0fb96526 ChangeLog update 2005-09-14 05:40:11 +00:00
Andrei Zmievski
387e353009 Fix for Unicode access. 2005-09-13 21:04:07 +00:00
67739f4a64 ChangeLog update 2005-09-13 05:42:49 +00:00
Sara Golemon
87bcf776f7 Plug leak of 1/2 bytes when converting from string/unicode 2005-09-12 17:42:43 +00:00
Dmitry Stogov
0a54602089 Fixed bug #34199 (if($obj)/if(!$obj) inconsistency) 2005-09-12 11:48:28 +00:00
Derick Rethans
161777af26 - Reimplement SORT_LOCALE_STRING with ICU locales. 2005-09-12 09:53:23 +00:00
6bb7ca6c56 ChangeLog update 2005-09-10 05:40:02 +00:00
Dmitry Stogov
3c2e00f903 Fixed huge memory leaks in ZTS mode 2005-09-09 08:19:56 +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
a7357c5910 ChangeLog update 2005-09-09 05:35:59 +00:00
Dmitry Stogov
0638374ec9 Avoid unnecessary copying/freeing 2005-09-08 16:15:16 +00:00
Dmitry Stogov
49c3b14f53 Unicode support for PHP constants 2005-09-08 11:10:34 +00:00
Dmitry Stogov
a082983adb catch operator shouldn't call __autoload () too 2005-09-08 10:32:28 +00:00
1365bee427 ChangeLog update 2005-09-03 05:39:11 +00:00
foobar
3cfa505102 MFB: - Fixed bug #34307. We were not calling on_modify handler to set the default
value in case setting the one from .ini file failed. (Andrei)
2005-09-02 21:08:11 +00:00
Dmitry Stogov
59d2e3f3aa Fixed bug #34260 (Segfault with callbacks (array_map) + overloading) 2005-09-02 07:46:30 +00:00
df01d7678a ChangeLog update 2005-09-02 05:33:21 +00:00
Dmitry Stogov
bd307bc0bd Fixed bug #34137 (assigning array element by reference causes binary mess) 2005-09-01 13:21:04 +00:00
Dmitry Stogov
f61b9bac52 Fixed bug #34310 (foreach($arr as $c->d => $x) crashes) 2005-09-01 10:55:05 +00:00
Dmitry Stogov
7b7551085b Support for class constants and static members for internal classes 2005-09-01 10:05:01 +00:00
525374ba69 ChangeLog update 2005-09-01 05:40:39 +00:00
foobar
847e50e560 Added test for bug #34310 2005-08-31 09:16:50 +00:00
4ae827de7f ChangeLog update 2005-08-31 05:40:14 +00:00
Marcus Boerger
0165ab6251 - Adds module registering a function to struct zend_internal_function.
(Johannes)
# This information is by reflection API and error messages.
2005-08-30 18:27:17 +00:00
Marcus Boerger
650c3d2094 - Fix const speling (correct in branshes where did it vanish here) 2005-08-30 07:27:06 +00:00
Dmitry Stogov
93c08f1c8b Fixed possible memory leak 2005-08-30 07:19:59 +00:00
Dmitry Stogov
c75b5a798f Fixed unicode support bug 2005-08-30 07:19:05 +00:00
e5ec8d0c74 ChangeLog update 2005-08-30 05:42:02 +00:00
Marcus Boerger
51e3db28ea - Fix #34299: ReflectionClass::isInstantiable() returns true for abstract classes 2005-08-29 22:11:53 +00:00
300cb0ff89 ChangeLog update 2005-08-26 05:36:54 +00:00
Dmitry Stogov
fc03492c0b Fixed memory leaks 2005-08-25 13:53:38 +00:00
Dmitry Stogov
b01df7d793 Fixed access to uninitialized variables 2005-08-25 07:56:15 +00:00
e992d178bc ChangeLog update 2005-08-25 05:43:45 +00:00
Andrei Zmievski
d0d6a1f16f - Require declare(encoding=...) to come before any opcodes. Read source
comments for more info.
- Op arrays now know which script encoding they were compiled from.
- Use this information to intelligently convert inline HTML blocks to
  the output encoding. Currently it opens and closes a new converter for
  each block, but we can optimize it.
2005-08-24 20:42:09 +00:00
Dmitry Stogov
5820ee959e Fixed return-by-reference from internal functions 2005-08-24 10:41:51 +00:00
85989c29be ChangeLog update 2005-08-24 05:33:46 +00:00
Andrei Zmievski
ec65bc1039 Implement Unicode support for strncasecmp(). 2005-08-23 22:05:22 +00:00
Andrei Zmievski
291c282cce Damn. 2005-08-23 21:08:35 +00:00
Andrei Zmievski
e3ec5efc5e - Rewrite zend_u_binary_strncmp() to work on codepoint level. Calling
u_strCompare() doesn't help because it assumes that the input lengths
  specify the number of UChar's.
- Change zend_u_binary_strcmp() to use u_strCompare() (and it's fine to
  use it here, since we work with whole strings here).
2005-08-23 20:11:59 +00:00
Andrei Zmievski
df3a14953e This was so embarassingly silly. 2005-08-23 16:37:24 +00:00
Dmitry Stogov
8f6f97a77d Unicode support 2005-08-23 12:53:31 +00:00
Dmitry Stogov
f4b8f4e958 Unicode support cleanup 2005-08-23 09:33:46 +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
a02b4ebd63 ChangeLog update 2005-08-23 05:45:43 +00:00
Andrei Zmievski
26d10c5c76 Unicode support for strcasecmp(). 2005-08-22 22:17:19 +00:00
Andrei Zmievski
ce0001996b We should use u_memcpy() whenever possible, to simplify code. 2005-08-22 17:48:17 +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
Dmitry Stogov
6fad26469c Fixed memory leak 2005-08-22 06:56:26 +00:00
056084632b ChangeLog update 2005-08-20 05:39:48 +00:00
Andrei Zmievski
87f0bee331 Unicode support for strcmp()/strncmp(). 2005-08-19 23:15:36 +00:00
Andrei Zmievski
da4721427a *** empty log message *** 2005-08-19 22:33:39 +00:00
Dmitry Stogov
90393d675f Unicode support 2005-08-19 13:20:16 +00:00
Dmitry Stogov
0475054c7c Unicode support 2005-08-19 11:56:03 +00:00
Dmitry Stogov
b0e24970bb Unicode support cleanup 2005-08-19 10:54:26 +00:00
Dmitry Stogov
d90d6c5d2b nstanceof operator shouldn't call __autoload() 2005-08-19 08:11:16 +00:00
dec714885d ChangeLog update 2005-08-19 05:37:01 +00:00
Andrei Zmievski
fe71ae29d9 - Implement zend_codepoint_to_uchar().
- Rename and fix zend_get_unified_string_type() so that it does not
  allow mixing of binary and Unicode types.
2005-08-18 22:33:23 +00:00
Dmitry Stogov
8a749ee333 Suppoer for unicode exception messages 2005-08-18 15:42:46 +00:00
Dmitry Stogov
74dafa95d1 Unicode support for extract() 2005-08-18 15:14:08 +00:00
Antony Dovgal
e27521e578 fix memleak 2005-08-18 15:13:15 +00:00
Ilia Alshanetsky
6ebfbd15d5 Fixed bug #34156 (memory usage remains elevated after memory limit is reached) 2005-08-18 15:02:10 +00:00
foobar
45ed0b936b - Removed EOL from error message 2005-08-18 12:34:13 +00:00
Dmitry Stogov
0f026c9fb7 Unicode support 2005-08-18 10:18:40 +00:00
Dmitry Stogov
1865a48752 *** empty log message *** 2005-08-18 07:34:49 +00:00
Dmitry Stogov
09a3c92df7 We don't need EMPY_STRING here. This function is execuited in non-unicode context only. 2005-08-18 06:33:44 +00:00
3d75fd980a ChangeLog update 2005-08-18 05:51:13 +00:00
Marcus Boerger
26d72ec348 - Fix TSRM 2005-08-17 20:02:45 +00:00
Andrei Zmievski
042bb6a306 Disallow mixing binary and Unicode types when T specifiers are used. 2005-08-17 18:15:18 +00:00
Andrei Zmievski
3d8b32a0e3 - Introduce 'y' specifier for functions expecting binary data.
- convert_to_binary() now uses convert_to_string() in non-Unicode mode.
2005-08-17 17:30:02 +00:00
Dmitry Stogov
8c33fcf7ce Unicode mode doesn't allow non-unicode properties 2005-08-17 17:07:52 +00:00
Andrei Zmievski
eee20001fd Bump up Zend version to 3.0.0
# I think the changes made due to Unicode support justify it.
2005-08-17 16:43:11 +00:00
Dmitry Stogov
48def9a6ad Unicode support 2005-08-17 13:10:04 +00:00
Dmitry Stogov
f4ea6b0656 Fixed bug #32981 (ReflectionMethod::getStaticVariables() causes apache2.0.54 seg fault) 2005-08-17 11:57:10 +00:00
Dmitry Stogov
9854402cb7 Unicode support 2005-08-17 10:24:38 +00:00
edb7d19f58 ChangeLog update 2005-08-17 05:32:47 +00:00
Andrei Zmievski
9bd026e6b4 Fix it here too 2005-08-16 18:21:04 +00:00
Andrei Zmievski
250726f95b Z_UNI* are the right macros to use. 2005-08-16 18:10:40 +00:00
Dmitry Stogov
903406ef8f Unicode support 2005-08-16 14:33:02 +00:00
Dmitry Stogov
8063984f4b Fixed memory leak 2005-08-16 10:49:38 +00:00
c746cfb753 ChangeLog update 2005-08-16 05:37:39 +00:00
Dmitry Stogov
82a504721e Unicode support 2005-08-15 16:13:02 +00:00
Dmitry Stogov
e47587e189 Fixed several unicode related bugs 2005-08-15 14:39:18 +00:00
Dmitry Stogov
08fe0d1da3 Test engine is improved to support unicode mode 2005-08-15 14:37:55 +00:00
Dmitry Stogov
fceb6086b2 Fixed another print_r() bug 2005-08-15 07:12:52 +00:00
Dmitry Stogov
feff569e96 Fixed print_r() in unicode mode. 2005-08-15 06:34:20 +00:00
de360b9d6d ChangeLog update 2005-08-15 05:41:46 +00:00
Marcus Boerger
bc4202473e - Simplify and make work in all modes 2005-08-14 21:26:01 +00:00
Marcus Boerger
444befd82b - Treat class_name in the exact same manner as prop_name before 2005-08-14 15:19:45 +00:00
6373103906 ChangeLog update 2005-08-14 05:35:00 +00:00
87ed16b368 ChangeLog update 2005-08-13 05:32:26 +00:00
Marcus Boerger
7c14b0169a - Unicode
# We probably might want to move spprintf.c/h into Zend now
2005-08-13 01:31:14 +00:00
Marcus Boerger
fe273229b7 - This might already be defined 2005-08-13 00:37:08 +00:00
Antony Dovgal
29573483de initialize key type when adding next index 2005-08-12 22:53:13 +00:00
Antony Dovgal
9ab69a286b fix typo noticed by Nuno 2005-08-12 19:02:22 +00:00
Andrei Zmievski
3abcd65161 *** empty log message *** 2005-08-12 17:29:21 +00:00