Commit Graph

3693 Commits

Author SHA1 Message Date
f977f8a90b ChangeLog update 2004-04-24 00:34:14 +00:00
Andi Gutmans
399073f9d4 - Fixed bug #27923. foreach() without a key should not check if the key
- is a reference (Adam)
2004-04-23 21:53:46 +00:00
f52e75742b ChangeLog update 2004-04-22 00:35:20 +00:00
Andi Gutmans
206f0da25a - RC2-dev 2004-04-21 10:34:27 +00:00
Andi Gutmans
40c20d3d72 - Prepare for RC2RC2 (if everything is OK especially Zeev's interface
- patch I'll roll RC2 tomorrow).
2004-04-21 09:59:52 +00:00
Zeev Suraski
242aa98b0a Restore fatal error in case a method that's supposed to implement an
interface/abstract method, breaks its prototype
2004-04-21 08:44:37 +00:00
42f26b6fae ChangeLog update 2004-04-21 00:35:41 +00:00
Andi Gutmans
173782b73e - Fix bug #27283 - Exceptions where the last catch() statement was sometimes
- skipped.
2004-04-20 14:14:55 +00:00
e9c3ac04f5 ChangeLog update 2004-04-20 00:35:29 +00:00
Marcus Boerger
be85c9049b show ini entries and classes for extensions. 2004-04-19 18:02:49 +00:00
20d52aa8dc ChangeLog update 2004-04-18 00:34:17 +00:00
Marcus Boerger
d58fe0357d Retval may not be set when zend_execute() is overloaded 2004-04-17 14:02:40 +00:00
355678208d ChangeLog update 2004-04-16 00:36:43 +00:00
Marcus Boerger
a455d7846d Handle failure in get_current_data 2004-04-15 21:32:34 +00:00
c4435ad7b2 ChangeLog update 2004-04-15 00:35:44 +00:00
Andi Gutmans
4774563966 - Add comment 2004-04-14 17:12:04 +00:00
Andi Gutmans
245dd7367d - RC2-dev 2004-04-14 11:24:17 +00:00
Andi Gutmans
acc4cd17ce - RC2RC1 2004-04-14 11:03:47 +00:00
66f5637723 ChangeLog update 2004-04-14 00:35:36 +00:00
Marcus Boerger
087ed66b69 Classnames shall start with an uppercase character 2004-04-13 20:25:49 +00:00
Zeev Suraski
2310acb57a Fix debug_backtrace to show arguments again
We need to merge code from debug_backtrace & debug_print_backtrace at
some point!
2004-04-13 16:07:19 +00:00
Andi Gutmans
4f47f33402 - Fix API no of Engine 2. The first number is the engine version and the
- rest is the API_NO. This way engine2_api_no is always greater than
- engine1_api_no.
2004-04-13 15:27:36 +00:00
Andi Gutmans
979da66118 - Add hook for exception handler (Derick) 2004-04-13 15:19:21 +00:00
9d10977fd7 ChangeLog update 2004-04-13 00:34:35 +00:00
Marcus Boerger
33cdc9ed36 Fix order of macro parameter (synch with other macros) 2004-04-12 13:02:54 +00:00
Andi Gutmans
67502a2e7d - modifyable -> modifiable 2004-04-12 12:22:26 +00:00
f95488a3c9 ChangeLog update 2004-04-10 00:34:29 +00:00
Andi Gutmans
4a24cbe276 - Fix bug #26441 (When __set() returned a value it corrupted it) 2004-04-09 14:42:06 +00:00
ca8dc5aca3 ChangeLog update 2004-04-09 00:33:16 +00:00
Marcus Boerger
8ccfca0c41 Bugfix #27519 Reflection_Function constructor crashes with non-existant
function's name
2004-04-08 20:37:06 +00:00
456c023e83 ChangeLog update 2004-04-08 00:35:41 +00:00
Andi Gutmans
c534a9e782 - Hopefully fix the debug_backtrace() code. 2004-04-07 15:29:09 +00:00
Andi Gutmans
7264ffe50d - Fix crash bug in zend_debug_backtrace(). No idea how come this survived
- for so long....
2004-04-07 14:02:29 +00:00
1bee9e12fb ChangeLog update 2004-04-05 00:35:43 +00:00
Ilia Alshanetsky
bf997c3eb3 Removed unused variable. 2004-04-04 18:28:59 +00:00
1ca4aca8fb ChangeLog update 2004-04-04 01:32:18 +00:00
Andi Gutmans
8838b38fcb Patch by Timm Friebe:
It changes
set_exception_handler() to accept the pseudo-type "callable" (instead of
a string referring to a global function).


Examples:
  set_exception_handler('function_name');
  set_exception_handler(array('class_name', 'static_method'));
  set_exception_handler(array($instance, 'instance_method'));


This also makes set_exception_handler() more consistent with all the
other callback functionality, e.g. set_error_handler().
2004-04-03 21:50:12 +00:00
Andi Gutmans
911922432f - Nuke more old junk 2004-04-03 17:01:13 +00:00
Andi Gutmans
1c7cfe739d - Nuke code which hasn't been in use for ages. 2004-04-03 11:09:39 +00:00
9a6dad867d ChangeLog update 2004-04-02 01:32:15 +00:00
Ilia Alshanetsky
c85843aec1 MFB: Revert patch for bug #27782. 2004-04-01 22:07:42 +00:00
Ilia Alshanetsky
962c8cc9ef Fixed reversed condition for error reporting. 2004-04-01 22:05:35 +00:00
1d5a6d3f9f ChangeLog update 2004-04-01 01:32:08 +00:00
Dmitry Stogov
d00b6c7c99 Fixed BUG in zend_post_incdec_property 2004-03-31 15:16:00 +00:00
Andi Gutmans
1c5ea0d7df - Fix typo 2004-03-31 13:11:19 +00:00
5de30d1066 ChangeLog update 2004-03-31 01:32:01 +00:00
Ilia Alshanetsky
ec4655f864 Fixed bug #27782 (Wrong behaviour of next(), prev() and each()). 2004-03-30 19:08:43 +00:00
Marcus Boerger
b4bc994680 TSRM fix 2004-03-30 18:39:53 +00:00
Marcus Boerger
5230321731 - Fix Reflection class names
- Add ability to get the extension an internal class was defined in
# This is the patch Andi and me used to search for underscrores...
2004-03-30 18:36:53 +00:00
ddb1fdaaa9 ChangeLog update 2004-03-30 01:31:57 +00:00
Marcus Boerger
dddf796edf NAN==NAN doest work (Ard) 2004-03-29 23:08:36 +00:00
Marcus Boerger
afe794c0d6 Allow mixed case search for extensions 2004-03-29 18:48:59 +00:00
Sebastian Bergmann
c29e9277d0 -clonning+cloning 2004-03-29 15:20:50 +00:00
Dmitry Stogov
75d1e4ca7d Implicit clonning strict warning was added for ze1_compatibility_mode 2004-03-29 15:00:31 +00:00
31b042714e ChangeLog update 2004-03-29 01:32:05 +00:00
Ilia Alshanetsky
62c80d5e6e Fixed bug #27731 (error_reporting() inside @ block fails to set
error_reporting level).
2004-03-29 00:50:52 +00:00
Marcus Boerger
16a4376f53 Use lowercasing here 2004-03-28 23:56:18 +00:00
Marcus Boerger
1bf1b64c37 Initialize the complete struct 2004-03-28 21:09:37 +00:00
Stanislav Malyshev
1293330175 check writability on =& too 2004-03-28 16:37:57 +00:00
Stanislav Malyshev
9be3c9388b - call set handler if assigning to object having this handler
- cleanup: use macros to access object internal vars
2004-03-28 14:57:29 +00:00
Stanislav Malyshev
1cc4a69bbe preserve ZEND_API in definition 2004-03-28 14:32:32 +00:00
Stanislav Malyshev
d61d11381b declare as extern 2004-03-28 14:30:49 +00:00
Marcus Boerger
83675b6622 Fix memleak found by Timm 2004-03-28 13:55:06 +00:00
Stanislav Malyshev
9091bf8e5f centralize object-to-scalar conversion, make it work with get handler 2004-03-28 12:08:26 +00:00
Stanislav Malyshev
3b8b43a947 try get handler on printable conversion 2004-03-28 12:06:10 +00:00
Stanislav Malyshev
bcf30a04f5 some more clear comments 2004-03-28 12:05:36 +00:00
Stanislav Malyshev
c331afa267 Use macros for object parts access 2004-03-28 10:44:48 +00:00
Dmitry Stogov
09d1d232fc fix of fix related to __autoload. (ext/standard/tests/network/bug20134.phpt passes again) 2004-03-28 09:37:30 +00:00
3a836aafd9 ChangeLog update 2004-03-28 01:33:56 +00:00
Marcus Boerger
63338975d4 Even though it is uncommented it should be right 2004-03-27 14:06:28 +00:00
78900ab0f9 ChangeLog update 2004-03-27 01:32:30 +00:00
Marcus Boerger
aea24b2a79 Force destructors to have empty signatures 2004-03-26 20:05:35 +00:00
33b6d03bfe ChangeLog update 2004-03-26 01:34:48 +00:00
Andi Gutmans
43d04ee291 - Fix build (thanks to Timm) 2004-03-26 00:26:19 +00:00
Derick Rethans
b2ac395957 - Remove old and deprecated <?php_track_vars?> scanner token. 2004-03-25 21:11:57 +00:00
Andi Gutmans
e3eb8bdd78 - If __construct() is defined then it will always take precedence over
- old style constructors.
2004-03-25 18:00:50 +00:00
Stanislav Malyshev
7a98f60e1b no need to use result for RECV's - as in PHP4 2004-03-25 14:03:34 +00:00
Stanislav Malyshev
3c3dbc8873 Use get/set handlers for increment.decrement ops on objects 2004-03-25 13:03:04 +00:00
Andi Gutmans
d6d52f6f2e /* The compiler is not-reentrant. Make sure we __autoload() only during run-time
* (doesn't impact fuctionality of __autoload()
     */
2004-03-25 11:30:02 +00:00
Dmitry Stogov
2bbba73606 Using ALLOC_HASHTABLE/FREE_HASHTABLE instead of emalloc/free. 2004-03-25 08:14:33 +00:00
e973875d98 ChangeLog update 2004-03-25 01:35:42 +00:00
Dmitry Stogov
55cf45abf5 New autoload protection schema was implemented (Using HashTable instead of boolean flag) 2004-03-24 14:30:59 +00:00
Derick Rethans
9ff10d086a - Revert bogus commit 2004-03-24 14:28:41 +00:00
Derick Rethans
2face60bef - Fixed NEWS
#- Can we *please* keep this in order?
2004-03-24 13:31:20 +00:00
Dmitry Stogov
7baa132194 Fixed bug #27641 (Object cloning in ze1_compatibility_mode was reimplemented) 2004-03-24 13:16:07 +00:00
Dmitry Stogov
ec53815b0f Object cloning in ze1 compatibility mode (zend.ze1_compatibility_mode) was reimplemented (Dmitry, Andi) 2004-03-24 10:55:04 +00:00
4507e314af ChangeLog update 2004-03-23 01:32:21 +00:00
Andi Gutmans
34667c4b58 - Fix bug 2004-03-22 15:51:07 +00:00
Andi Gutmans
94dc9af5a0 - Remove whitespace 2004-03-22 11:16:24 +00:00
f34db1b437 ChangeLog update 2004-03-22 01:33:55 +00:00
Andi Gutmans
4ccca568bb - Improve consistency 2004-03-21 21:29:17 +00:00
Stanislav Malyshev
7cf92e79ed return zval *, to make it useful for read_property 2004-03-21 18:27:58 +00:00
Stanislav Malyshev
b372b86b89 update to new API 2004-03-21 18:21:46 +00:00
Stanislav Malyshev
bd9b600c3c API change for read_property:
instead of bool silent it now gets fetch type
This can be used for creating proxy objects for write contexts
2004-03-21 18:07:27 +00:00
Andi Gutmans
f0b5eeb17b - Nuke unused code 2004-03-21 17:48:51 +00:00
85009fd76f ChangeLog update 2004-03-19 01:32:25 +00:00
Andi Gutmans
814000305a - Back to RC2-dev 2004-03-18 15:27:28 +00:00
Zeev Suraski
aac5c1f6c5 Prepare to roll RC1 2004-03-18 14:12:27 +00:00
Zeev Suraski
b8275175ff Fix possible data corruption with __set() 2004-03-18 14:03:58 +00:00
Stanislav Malyshev
f52edc19a7 Improve error message - on E_STRICT, method is actually called,
so the error shouldn't say it cannot be called.
2004-03-18 13:28:05 +00:00
Andi Gutmans
ed6cbcb480 - Change redefinition of constructor from E_COMPILE_ERROR to E_STRICT. 2004-03-18 08:52:51 +00:00
Andi Gutmans
2004c25041 - Update Changes 2004-03-18 08:12:19 +00:00
9b614ccb5a ChangeLog update 2004-03-18 01:32:14 +00:00
Sascha Schumann
7aa832aba2 Readd x86 implementation 2004-03-17 22:23:15 +00:00
Andi Gutmans
cedd0296e0 - Improved patch for support multiplication on 64bit machines 2004-03-17 16:40:56 +00:00
Andi Gutmans
5569ad0626 - Fix tiny bug (one of the reasons we can't support __toString() for
- regular objects).
2004-03-17 16:18:24 +00:00
Andi Gutmans
09341786dc - Stop make_printable_zval() from calling __toString() 2004-03-17 15:49:34 +00:00
Andi Gutmans
ccb515afc7 - Fixed problem with __toString(). Due to the engine's architecture it is
- currently not possible to call __toString() anywhere besides print & eval.
- Follow up will be on internals@
2004-03-17 15:48:49 +00:00
Stanislav Malyshev
c18c5be1e0 fix typo 2004-03-17 11:10:37 +00:00
Andi Gutmans
29ee03aa55 - Apply Ard's patch to support multiplication & overflow on both 32bit
and 64bit machines
2004-03-17 09:25:52 +00:00
8aea19c345 ChangeLog update 2004-03-17 01:34:14 +00:00
Derick Rethans
6535933f7c - Replaced the exec_finished hook by the zend_post_deactive hook for
extensions. The new hook will be run after the symbol table and destructors
  are run. (Derick)
2004-03-16 22:27:26 +00:00
Derick Rethans
f59ac64430 - Bump API number so that it actually differs from PHP 4. This is needed
because we don't want PHP 4 and PHP 5 extensions to be in the same directory
  when doing "make install" for shared, or phpize'd extensions.
2004-03-16 21:32:40 +00:00
Marcus Boerger
cbaa43ff12 Fix SEGV in certain conditions while calling static methods 2004-03-16 21:29:22 +00:00
Zeev Suraski
e2a5ebf597 Add ability to disable JIT for a particular auto global 2004-03-16 19:46:04 +00:00
Marcus Boerger
6e8c176a9d TSRM fix 2004-03-16 18:04:25 +00:00
Sascha Schumann
b74128db59 Enable ptr format check for GCC 3.1 and higher 2004-03-16 17:35:57 +00:00
Ilia Alshanetsky
365f0120fe Do not allow 3.0.4 for __attribute__. 2004-03-16 16:42:12 +00:00
Ilia Alshanetsky
fa5f52718a Fixed bug #27600 (GCC 3.0.4 does not like __attribute__ directive) 2004-03-16 16:36:54 +00:00
Andi Gutmans
6a31fb9bb0 - Fix problem when using old-style constructors it wasn't being inherited
correctly.
2004-03-16 15:22:44 +00:00
Derick Rethans
b0dbd2abcc - Spaces to tabs 2004-03-16 14:59:06 +00:00
Andi Gutmans
833b97d4c2 - If the called method is static then don't define $this 2004-03-16 14:49:52 +00:00
Andi Gutmans
0041aff953 - Error out if get_method() isn't defined.
- Use calling scope of internal function callee when calling a method
  using static syntax (array("A", "func"));
2004-03-16 14:39:07 +00:00
Marcus Boerger
09e76476ef Improve error message 2004-03-16 10:14:57 +00:00
3b2f56275a ChangeLog update 2004-03-16 01:32:56 +00:00
Andi Gutmans
dae7093d93 - Restore E_NOTICE for longs and doubles. 2004-03-15 16:55:20 +00:00
foobar
97f81830b8 - Fixed bug #24582 (extensions can not be loaded dynamically in Solaris/iPlanet) 2004-03-15 16:06:29 +00:00
Andi Gutmans
14d711b9bb - Nuke E_NOTICE. This caused a notice when doing if ($obj == NULL) 2004-03-15 14:15:47 +00:00
7c0a993cc3 ChangeLog update 2004-03-15 01:33:46 +00:00
Marcus Boerger
4efbb35067 Make object parameter optional 2004-03-14 22:40:25 +00:00
Ilia Alshanetsky
4c283fff27 Fixed bug #27590 (crash during shutdown when freeing persistent resources
in ZTS mode).
2004-03-14 20:11:13 +00:00
Andi Gutmans
1aedb9615a - Fix windows build 2004-03-14 18:00:40 +00:00
Andi Gutmans
37d713ea49 - Fix for bug #27504 2004-03-14 17:52:58 +00:00
Andi Gutmans
47cb3323a8 - Fixing bug #27123 2004-03-14 17:16:31 +00:00
Andi Gutmans
f11c819ddb - Improve compatibility mode and compare objects according to property
- comparison (sucky but this is how PHP 4 behaved).
2004-03-14 15:56:03 +00:00
Andi Gutmans
7901a2218c - Fix flow of logic 2004-03-14 15:50:51 +00:00
Andi Gutmans
515e28ed5b - Support old style of converting objects to long/double/bool.
- This is only enabled in compatibility mode, else it calls cast_object()
- and if that is not available we return 1 (true) so that the following
- code would work:
if ($obj) {
}
2004-03-14 15:45:09 +00:00
Marcus Boerger
2917102e3f Fix: Add return type void 2004-03-14 15:27:56 +00:00
Andi Gutmans
88de69b97c - Support Cast operator in convert_to_* so that we support internal
- extensions such as SimpleXML. This is for Sterling.
2004-03-14 13:52:36 +00:00
Andi Gutmans
4f897b2f3c - Fix memory leak in the following code (Dmitry):
<?php
$a = array();
$a .= "x";
?>
2004-03-14 13:14:48 +00:00
Andi Gutmans
52cd980702 - Initial commit which allows comparing overloaded objects with native
- types (only for internal classes and not for user-land classes).
2004-03-14 12:44:28 +00:00
3b9cbffeec ChangeLog update 2004-03-12 01:34:03 +00:00
Andi Gutmans
a87cc63aaa - Real fix for bug #27535 (Dmitry) 2004-03-11 13:40:19 +00:00
Andi Gutmans
aa472500e1 - Attempt to fix bug #27535 2004-03-11 13:27:18 +00:00
25adeaf77c ChangeLog update 2004-03-10 01:32:01 +00:00
Marcus Boerger
6a8a25567f Rename hasMore() to valid() as discussed. (Part VI) 2004-03-09 16:53:12 +00:00
Marcus Boerger
50ee116f08 Clearify the different method/class flags (as discussed with Andi). 2004-03-09 16:38:37 +00:00
Marcus Boerger
494d8207fe No longer needed 2004-03-09 15:53:42 +00:00
Andi Gutmans
f30b51f5b9 - Fix crash:
<?php
class ResourceFormat
{
     const IMG           = 1;
}

class Image
{
     const RESOURCE_FORMAT   = ResourceFormat::IMG;
}

print_r(constant('Image::RESOURCE_FORMAT'));
?>
2004-03-09 15:37:18 +00:00
Andi Gutmans
0fc9d5861d - Nuke unused code. 2004-03-09 15:27:39 +00:00