Commit Graph

3223 Commits

Author SHA1 Message Date
a36a6a4b6e ChangeLog update 2003-12-11 01:36:11 +00:00
Marcus Boerger
310d6c567a Do not double copy the string 2003-12-10 10:24:35 +00:00
1ecf87238f ChangeLog update 2003-12-10 01:32:01 +00:00
foobar
a08c1e4dce - Brought ext/bcmath to the new millennium
# consistency..
2003-12-09 23:59:33 +00:00
Andi Gutmans
d0d7badfb9 - Fix overallocation (thanks to Ilia) 2003-12-09 08:56:04 +00:00
fd6270d515 ChangeLog update 2003-12-09 01:34:47 +00:00
Derick Rethans
03f8baa87e - Make it compile again 2003-12-08 13:26:03 +00:00
9ad6aaea63 ChangeLog update 2003-12-08 01:30:07 +00:00
Stanislav Malyshev
dc6a849a2f Apply Andrey Hristov's patch adding get_declared_interfaces() 2003-12-07 18:54:31 +00:00
e7bad9e272 ChangeLog update 2003-12-07 01:32:57 +00:00
Marcus Boerger
8a8deee8a0 This test is against interfaces not abstract classes. 2003-12-06 19:02:12 +00:00
Marcus Boerger
30af3ba523 Show the exception message again after __toString() magic has been dropped. 2003-12-06 18:12:26 +00:00
6ae1f19387 ChangeLog update 2003-12-06 01:31:45 +00:00
Andi Gutmans
f4d6a5c7cf - Remove two unneeded convert_to_string() (found by Marcus)
- Change illegal use of string offset to E_ERROR
2003-12-05 16:28:54 +00:00
Ilia Alshanetsky
aa1b20614b Fixed crash demonstrated with ext/dom/tests/dom003.phpt test case. 2003-12-05 01:44:45 +00:00
036e8dea10 ChangeLog update 2003-12-05 01:31:47 +00:00
Moriyoshi Koizumi
4a38020ddd Revert crap. 2003-12-04 17:38:21 +00:00
Moriyoshi Koizumi
bcbc036ac1 Raise error in case dereference is performed on a scalar value. 2003-12-04 13:38:30 +00:00
ab5066008f ChangeLog update 2003-12-04 01:31:59 +00:00
Ilia Alshanetsky
54a73a6c06 Test case for bug #24773. 2003-12-03 23:00:30 +00:00
Moriyoshi Koizumi
5fe26e76eb This kind of error should be caught. (suggested by Andi, thanks) 2003-12-03 22:08:58 +00:00
Moriyoshi Koizumi
7ac854e710 Fix bug #24773 (unset()ing string offsets crashes PHP) 2003-12-03 19:10:38 +00:00
Derick Rethans
611219208c - Remove newline from error message 2003-12-03 15:01:04 +00:00
4dce55f28b ChangeLog update 2003-12-03 01:32:23 +00:00
Marcus Boerger
ff57d33fe2 Remove automatic call to __toString() since it is supposed to cause too
much trouble. See discussion on the mailing list.
2003-12-02 22:08:51 +00:00
Andi Gutmans
23b231d0eb - Revert the revert of these patches. This overloading can only be used
- by C extensions such as SimpleXML and *NOT* PHP code. Reasons given
- on the mailing list and problem with reentrancy inside the opcodes.
2003-12-02 21:09:24 +00:00
Andi Gutmans
d7f839cce7 - Fix for bug #26182 2003-12-02 12:06:03 +00:00
Andi Gutmans
393376d936 - Don't include E_STRICT in E_ALL. 2003-12-02 09:14:18 +00:00
Marcus Boerger
32927a9ffb Free the zval container only if it should be freed and was not copied. 2003-12-02 07:09:46 +00:00
2d3800bdd7 ChangeLog update 2003-12-02 01:31:57 +00:00
Andi Gutmans
98e1a3dbcb - Change to E_STRICT so as not to break existing scripts.
- Thanks Edin
2003-12-01 12:35:46 +00:00
Andi Gutmans
709060e161 - Nuke property_exists(). We need to fix isset() and this is already
- supported in reflection API. In any case, it's best not to add new
- functions in the general namespace except for keeping engine consistency
(which would have been true in this case)
2003-12-01 11:53:42 +00:00
Andi Gutmans
ee64b61e94 - Revert auto-conversion in parameter API 2003-12-01 11:50:57 +00:00
Andi Gutmans
a411d608fa - Don't automatically call __toString() in convert_to_string_ex().
- use __toString() in your code.
- Keep the auto-case in make_printable_zval.
2003-12-01 11:47:52 +00:00
42f04fbd43 ChangeLog update 2003-12-01 01:31:51 +00:00
Marcus Boerger
0091b5ca1d Check return value of exception::__tostring() 2003-11-30 13:53:19 +00:00
Marcus Boerger
e0946d9609 Fix test 2003-11-30 13:18:56 +00:00
6dd2f536a4 ChangeLog update 2003-11-30 01:31:13 +00:00
Marcus Boerger
056c654f4f Fix memleak 2003-11-29 19:26:41 +00:00
Ilia Alshanetsky
99dec6927c Fixed bug #26463 (Incorrect handling of semicolons after heredoc) 2003-11-29 19:05:14 +00:00
Marcus Boerger
6344f662a5 This takes the address of a zval ptr 2003-11-29 18:23:35 +00:00
Marcus Boerger
c7d27ad938 Add macros to return values of other zvals.
This is needed because one cannot use REPLACE_ZVAL_VALUE with return_value.
2003-11-29 18:15:11 +00:00
Ilia Alshanetsky
cf196ac625 Restore original patch for bug #26281.
# Andi if you have a time & interest please see if perhaps a better
# solution can be implemented. Thanks.
2003-11-29 17:33:25 +00:00
Marcus Boerger
af5489d91b Revert accidential commit until decision 2003-11-29 17:05:17 +00:00
Marcus Boerger
9ffd44e94a Make exception code more robust:
- Fix error in calculation of trace-string length
- Allow to overload __strostring() and make it work for uncaught exceptions
- Show exception thrown while displaying exceptions
2003-11-29 17:03:45 +00:00
55775e5273 ChangeLog update 2003-11-29 01:32:19 +00:00
Ilia Alshanetsky
7203684680 Add removed lcname, it is still needed. 2003-11-28 14:42:25 +00:00
9870f005e1 ChangeLog update 2003-11-28 01:31:59 +00:00
Marcus Boerger
1586f714fe Convert objects to string if string is required by newer parameter parsing
since we do this for older parameter parsing does so too.
2003-11-27 19:24:38 +00:00
Marcus Boerger
87577dd881 The macro REPLACE_ZVAL_VALUE cannot be used since we only have zval *
writeobj. to allow it the api needs to be changed to zval **writeobj.
2003-11-27 19:08:28 +00:00
Marcus Boerger
3be27ecc78 Add a support function to check for property existance which is different
from checking a property from being empty/set.
Update test #26182.
2003-11-27 17:06:26 +00:00
47bbc0de9f ChangeLog update 2003-11-25 01:31:49 +00:00
Marcus Boerger
4dba05d9cc Add new interface ArrayAccess to use objects as Arrays 2003-11-24 20:57:54 +00:00
Andi Gutmans
bc4d0082d6 - Fix newly introduced bug which stopped class constants from working.
- Thanks to Jan Lehnardt for reporting it.
2003-11-24 20:47:53 +00:00
Sebastian Bergmann
e712007972 No longer needed. 2003-11-24 18:31:47 +00:00
Andi Gutmans
d344648b07 - Fix __autoload() to preserve class case.
- Heads up, this patch might break stuff so please let me know if you
- bump into any problems.
2003-11-24 18:13:29 +00:00
0c5c01ad9d ChangeLog update 2003-11-24 01:32:05 +00:00
Andi Gutmans
ceaddf238b - Allocation optimizations by Timm Friebe 2003-11-23 12:55:22 +00:00
4508d7dcce ChangeLog update 2003-11-22 01:31:47 +00:00
Ilia Alshanetsky
44a03df926 Cleaner patch for bug #26281. 2003-11-21 04:45:43 +00:00
eda457fe19 ChangeLog update 2003-11-20 01:32:12 +00:00
55b83c36e3 ChangeLog update 2003-11-19 01:36:15 +00:00
Ilia Alshanetsky
fdd902f0dd Possible fix for bug #26281 & test case. 2003-11-19 00:41:14 +00:00
Marcus Boerger
c21d597426 Add method alias macro 2003-11-18 19:18:54 +00:00
Andi Gutmans
c0df450203 - Add E_STRICT, to be used to warn purists (like Jani :) 2003-11-18 09:25:04 +00:00
Marcus Boerger
1eaf126a7a Backpatch the correct opcode for list(), property overloading needs more
opcodes (Bugfix #26257).
2003-11-18 07:19:55 +00:00
875695f680 ChangeLog update 2003-11-18 01:34:41 +00:00
Marcus Boerger
c978cc2ae8 Use correct order 2003-11-18 00:18:48 +00:00
Marcus Boerger
b29834a5be Use correct macro/function 2003-11-18 00:01:34 +00:00
Marcus Boerger
39df192788 Correct destruction 2003-11-17 00:36:41 +00:00
4d16f8f4bc ChangeLog update 2003-11-14 01:31:43 +00:00
Moriyoshi Koizumi
138b1c7be3 Bugfix #26156 (REPLACE_ZVAL_VALUE works on uninit stack-based zvals) 2003-11-13 20:53:55 +00:00
Marcus Boerger
58246412a7 IteratorAggregate::getIterator() cannot return anythingy else than objects 2003-11-13 08:23:49 +00:00
Andi Gutmans
db2a1f4590 - Make sure internal clasess are malloced 2003-11-13 06:40:34 +00:00
66f5f3371f ChangeLog update 2003-11-11 01:31:39 +00:00
Marcus Boerger
bdc339d30d Don't use zend_class_entry indirection 2003-11-10 22:06:26 +00:00
Marcus Boerger
7cc93e121b Bugfix #26010 (Bug on get_object_vars() function) 2003-11-10 21:03:04 +00:00
Marcus Boerger
e7365f316c Correct default handlers 2003-11-10 20:44:50 +00:00
Marcus Boerger
ea3eec9133 Need to update iterators handler table too. 2003-11-10 18:05:02 +00:00
Marcus Boerger
48d249de46 Fix those warnings 2003-11-10 16:23:12 +00:00
Marcus Boerger
296529b886 Split isset/isempty for object property and object dimension hooking. 2003-11-10 16:14:44 +00:00
Marcus Boerger
da6d68d919 Little iterator improvement: ability to store index in iterator 2003-11-10 16:13:38 +00:00
44dc9eb3e4 ChangeLog update 2003-11-09 01:32:00 +00:00
Marcus Boerger
e72339284f Add method reflection_class::implementsInterface()
Allow string & reflection_class in isSubclassOf()
2003-11-08 21:41:42 +00:00
Marcus Boerger
ab6b1adf0b Fix reflection_class::isSubclassOf() 2003-11-08 21:02:21 +00:00
Marcus Boerger
316854323d Handle exceptions in casting more gracefully.
This fixes bug #26166
2003-11-08 14:06:08 +00:00
a245f3b7a2 ChangeLog update 2003-11-08 01:32:13 +00:00
Marcus Boerger
f3d385a587 Make __autoload() faster 2003-11-07 11:47:50 +00:00
Marcus Boerger
5112a4ae24 Update Iterators: Call next at the correct point in time. 2003-11-07 10:47:47 +00:00
Marcus Boerger
77923b0eb1 Add missing initialization. 2003-11-07 10:22:16 +00:00
Marcus Boerger
1e44370536 Make these class entries available for inheriting classes 2003-11-07 09:33:06 +00:00
23d16aa99b ChangeLog update 2003-11-07 01:32:20 +00:00
Ilia Alshanetsky
c258f9c8a2 Fixed bug #26148 (Print the notice before modifying variable on type
mismatch).

# This only crashes in ZE1, however logic dictates that it may also crash
# in ZE2 because variable does not have a correct type.

Patch by: morten-bugs dot php dot net at afdelingp dot dk
2003-11-06 20:33:47 +00:00
c3b9e5811c ChangeLog update 2003-11-05 01:32:23 +00:00
Marcus Boerger
f9d13098e7 Prevent some SEGV's when Exceptions are thorown inside iterators. 2003-11-04 22:07:59 +00:00
Marcus Boerger
e912635f82 Removedouble efree call 2003-11-04 22:01:37 +00:00
Moriyoshi Koizumi
68bab385cb __tostring() handler should be binary-safe 2003-11-04 17:34:56 +00:00
Moriyoshi Koizumi
aef5f793b8 Fix one more test 2003-11-04 17:14:07 +00:00
Stanislav Malyshev
e69aaa8b05 add zend_iterators.c zend_interfaces.c to make 2003-11-04 15:27:08 +00:00
05dfdf1961 ChangeLog update 2003-11-01 01:31:52 +00:00
Moriyoshi Koizumi
2f27fe3574 Add test case for bug #26010 2003-10-31 17:12:16 +00:00
4adbd1dbf6 ChangeLog update 2003-10-31 01:32:21 +00:00
Stanislav Malyshev
44c3f0066b make CATCH opcode use "class" T like other opcodes do - via IS_CONST 2003-10-30 11:11:48 +00:00
Andi Gutmans
0b3fe78906 - Beta 2 2003-10-30 10:07:26 +00:00
3a65317f79 ChangeLog update 2003-10-30 01:33:04 +00:00
Moriyoshi Koizumi
973f606067 Use pretty macro instead. 2003-10-29 17:45:56 +00:00
e05a4acc8f ChangeLog update 2003-10-29 01:32:08 +00:00
Andi Gutmans
530789987f - Head up! I'm reverting the patch which allows for expressions in constant
- declerations. Allowing the access of other constants in this code is
- flawed. We are reverting back to PHP 4's static scalars.
- Don't worry if you get the following msg when compiling:
- "zend_language_parser.y contains 3 useless nonterminals and 22 useless rules"
- I didn't nuke the code in case we have some brilliant ideas after beta 2
2003-10-28 23:44:23 +00:00
Marcus Boerger
851a02e87f Give some freedon to c iterators but not in userspace. 2003-10-28 18:46:37 +00:00
Shane Caraveo
4bde74c3be fix crash in do_implement_interface when compiling
pear/PHPUnit/Framework/TestCase.php line 63
while only interface_gets_implemented is the issue in this instance, both
these vars were unitialized, causing potential other issues
2003-10-28 05:24:46 +00:00
38f336d464 ChangeLog update 2003-10-26 00:32:26 +00:00
Marcus Boerger
26bfe3f83a Add zend_make_callable() which allows to make zval's callable zval's.
At the moment this function only converts strings of the form class::method
to an array(class,method).
2003-10-25 22:58:06 +00:00
Marcus Boerger
da8ce17f7a This forces a better error message for non working clone calls. 2003-10-25 19:28:31 +00:00
Marcus Boerger
cad49f1fb0 And use things to throw an exception here 2003-10-25 19:13:06 +00:00
Marcus Boerger
4625529abe You shall not clone Exception instances 2003-10-25 19:07:09 +00:00
Marcus Boerger
fe3db4c7e9 You shall not clone reflection_xx instances 2003-10-25 19:06:35 +00:00
Marcus Boerger
6c05957aa2 Update 2003-10-25 15:11:49 +00:00
Marcus Boerger
52d2f8f579 Update 2003-10-25 14:54:10 +00:00
Sebastian Bergmann
e1fd9aed8f Fugbix typo. 2003-10-25 09:20:47 +00:00
Sebastian Bergmann
8bb30308f8 s/Throwable/Printable: Exception has become an internal class since I initially documented interfaces. 2003-10-25 09:18:23 +00:00
a82b296aa7 ChangeLog update 2003-10-25 00:32:55 +00:00
Andi Gutmans
23c00b0d5d - Fix typo 2003-10-24 22:13:00 +00:00
Marcus Boerger
b28db6a2d3 Revert accidental commit 2003-10-24 18:42:00 +00:00
Marcus Boerger
071eaf8576 Zend/ZEND_CHANGES 2003-10-24 18:24:28 +00:00
c32c3264ae ChangeLog update 2003-10-24 00:34:04 +00:00
Sebastian Bergmann
60f7896634 Add zend_interfaces.{c|h}. 2003-10-23 04:41:09 +00:00
a6210d2d75 ChangeLog update 2003-10-23 00:33:10 +00:00
Ilia Alshanetsky
5dac0007f3 Fixed bug #25922 (Crash in error handler when 5th argument is modified). 2003-10-22 23:42:55 +00:00
Marcus Boerger
8abb3bd448 Impement userspace iterator interfaces and tests. See tests for details
on the names.
2003-10-22 20:04:48 +00:00
Marcus Boerger
3c62b3b5ac Expand Interface C API.
In short: zend_class_entry->interface_gets_implemented()  allows to modify
the class entry of a class when an interface gets implemented.
2003-10-22 19:59:58 +00:00
Marcus Boerger
0bb59f337b The string conversion method should be named __toString() 2003-10-22 19:00:42 +00:00
5148ffdf90 ChangeLog update 2003-10-22 00:32:20 +00:00
Marcus Boerger
91099f3f4f Make this clear 2003-10-21 06:41:26 +00:00
06370c9132 ChangeLog update 2003-10-21 00:33:44 +00:00
Andi Gutmans
28957fd536 - Add comment from Timm 2003-10-20 22:02:10 +00:00
Marcus Boerger
c92b0202c7 Update 2003-10-20 10:26:03 +00:00
Marcus Boerger
445aa744e7 Update 2003-10-20 10:06:31 +00:00
634d8aa5ed ChangeLog update 2003-10-20 00:34:48 +00:00
Andi Gutmans
df033b58a0 - Nuke const in function parameters. I just can't remember why this exists
- and it seems no one else remembers either. It has no semantic meaning.
2003-10-19 08:38:48 +00:00
d9a61412c1 ChangeLog update 2003-10-19 00:32:44 +00:00
Marcus Boerger
b0b82541e8 Fix class/iterator relationship & handling 2003-10-18 18:43:31 +00:00
Marcus Boerger
15bfbc7619 Fallback to old behavior until we have a default iterator that respects
visibility we do the array trick.
2003-10-18 18:20:42 +00:00
Marcus Boerger
ac262baf19 Change order: Optional rewind() to end of structure 2003-10-18 14:56:47 +00:00
ba21b244b5 ChangeLog update 2003-10-18 00:32:33 +00:00
Marcus Boerger
65657103ad WS 2003-10-17 18:47:49 +00:00
Marcus Boerger
641a55a4dd Show if a class/object is iterateable 2003-10-17 17:51:01 +00:00
Marcus Boerger
25aa8b715e Added c-api for iterators
# After 4 Month work and endless discussions...
2003-10-17 17:19:44 +00:00
Marcus Boerger
43a948379a Fix showing final/abstract for classes 2003-10-17 08:15:48 +00:00
Ilia Alshanetsky
a2e95e4b91 Fixed formatting issue. 2003-10-17 02:47:44 +00:00
Ilia Alshanetsky
c66bcc7b74 Fixed if() condition. 2003-10-17 02:29:06 +00:00