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
7f74901434
ChangeLog update
2004-03-09 01:34:32 +00:00
Marcus Boerger
6b0f57ee50
Rename hasMore() to valid() as discussed. (Part II)
2004-03-08 18:05:41 +00:00
Marcus Boerger
b6b7c9eb65
Rename hasMore() to valid() as discussed. (Part I)
2004-03-08 17:33:31 +00:00
Marcus Boerger
c3b06ea21e
Check count.
2004-03-08 16:52:59 +00:00
Marcus Boerger
5208baee49
Add another missing conversion
2004-03-08 00:19:43 +00:00
e37f4db03d
ChangeLog update
2004-03-06 01:32:09 +00:00
Andi Gutmans
2af86692ea
- Fix some small problems I introduce in last patch.
2004-03-05 17:18:34 +00:00
Andi Gutmans
74775aa41a
- Finally fix the following:
...
$xml_mem = simplexml_load_string('<bookbody><part><chapter><page>1</page></chapter></part></bookbody>');
/* The following works fine */
foreach ($xml_mem->part as $part) {
foreach($part->chapter->page as $page) {
print $page;
}
}
/* The following segfaults */
foreach ($xml_mem->part as $part) {
foreach($part->chapter as $chapter) { // Difference here from previous example
print $chapter;
}
}
2004-03-05 13:04:21 +00:00
c851067bf9
ChangeLog update
2004-03-05 01:31:59 +00:00
Moriyoshi Koizumi
c0aabb79b2
- Fix memleak when scanner is called from within tokenizer extension.
...
# (only happens with zend multibyte feature enabled)
2004-03-04 22:50:55 +00:00
Stanislav Malyshev
97e7ce733a
fix the fix
2004-03-04 13:11:03 +00:00
Stanislav Malyshev
99edaa3a4f
oops, fix cut&paste gone bad
2004-03-04 13:09:03 +00:00
Stanislav Malyshev
f9c65203d2
Fix object true value: if we are in compat mode and it's Zend object -
...
use PHP4 rules. Otherwise, object is always true.
2004-03-04 13:06:02 +00:00
Derick Rethans
39ac9579f7
- Fixed a 64bit issue (for zend_builtin_functions.c, module_number is an int).
...
- Change the MAX_LENGTH_OF_LONG constant to 20, as LONG_MAX is 20 characters.
(Patches by Ard Biesheuven)
2004-03-04 11:02:05 +00:00
Derick Rethans
f88b286888
- Added instance_of test (patch by Ard Biesheuvel)
2004-03-04 10:58:49 +00:00
Stanislav Malyshev
78a36b50a1
Disallow redefining ctors and cleanup
2004-03-04 10:02:59 +00:00
Stanislav Malyshev
9731d9f303
Handle out of memory/bad size situation gracefully, without getting into loop
2004-03-04 09:18:05 +00:00
62670bd1af
ChangeLog update
2004-03-04 01:36:39 +00:00
Andi Gutmans
1c180ba3e8
- Fix crash:
...
<?
class foo {
function __destruct() {
foreach ($this->x as $x);
}
}
new foo();
echo 'OK';
?>
2004-03-03 09:58:58 +00:00
ef39d84bbb
ChangeLog update
2004-03-03 01:33:18 +00:00
Marcus Boerger
8d45fece42
Fix zend_parse_method_parameters_ex() and make it consistant with
...
zend_parse_method_parameters().
# Obviously its only place of use is in pdo just right now.
2004-03-02 16:17:58 +00:00
Andi Gutmans
41b7211539
- Fix leaks (although there might be still a problem here).
2004-03-02 11:03:48 +00:00
Andi Gutmans
7c9694d26e
- Fix leak (Dmitry)
2004-03-02 10:13:43 +00:00
Andi Gutmans
576e16b03f
- Fix crash in:
...
<?php
class Foo {
public $attributes= array();
function export() {
foreach ($this->attributes as $name => $attr) {
}
}
}
$f= new Foo();
$f->export();
?>
2004-03-02 08:28:12 +00:00
Andi Gutmans
3333380bf0
- Improve fix for protecting destructor's from exceptions.
...
- I was killing the current exception completely which was wrong.
2004-03-02 08:13:15 +00:00
ee768a2fe6
ChangeLog update
2004-03-02 01:31:41 +00:00
Andi Gutmans
8912a50bf4
- Fix crash in destructors(). You can't throw an exception in destructors
...
as there is no guaranteed time when the destructor will be called.
2004-03-01 19:45:07 +00:00
Andi Gutmans
161ed69721
- Fix leak
2004-03-01 17:43:57 +00:00
Andi Gutmans
0f1382e126
- Fix crash in reflection API (pierre)
2004-03-01 15:19:38 +00:00
Andi Gutmans
7c72f6ff61
- Fix crash in exception handling (zend_exception_error(...) and
...
zend_eval_string_ex() were buggy (Dmitry, Andi)
2004-03-01 13:29:45 +00:00
Derick Rethans
afc35efcf6
- Typo fix (by Jan)
2004-03-01 12:25:03 +00:00
Derick Rethans
a84efbe923
- Fixed bug #27443 (defined() returns wrong type).
2004-03-01 08:07:25 +00:00
9cf988c201
ChangeLog update
2004-03-01 01:32:12 +00:00
Andi Gutmans
37ddf8e922
- Apply fixes by Timm.
2004-02-29 18:31:29 +00:00
Andi Gutmans
63e263f32a
- Change prototype isA check not to check the constructor.
...
- Only give an E_STRICT for non-isA compliant code as opposed to
E_COMPILE_ERROR.
2004-02-29 18:25:50 +00:00
Stanislav Malyshev
edb21137de
add ZEND_API there too for opcode handlers
2004-02-29 16:01:21 +00:00
Derick Rethans
ed242f7e9e
- Initialize memory to \0 so that we can reliable detect whether a specific
...
opcode element is in use.
#- Stas thinks it's OK ;-)
2004-02-29 16:00:50 +00:00
Stanislav Malyshev
deba01c64e
export opcode table
2004-02-29 15:04:22 +00:00
dc03dbc699
ChangeLog update
2004-02-28 01:32:09 +00:00
Marcus Boerger
7fdd68af8b
Add some comments
2004-02-27 18:20:53 +00:00
Marcus Boerger
f449c8fdf7
Fixes for abstract classes/methods
2004-02-27 09:14:55 +00:00
44f0fce255
ChangeLog update
2004-02-27 01:32:32 +00:00
Marcus Boerger
059c533b4a
Fix __METHOD__ (noticed by Davey Sahfik)
2004-02-26 19:59:49 +00:00
1085c6c7f1
ChangeLog update
2004-02-26 01:32:27 +00:00
Marcus Boerger
3e1f3b2124
Fix problem with Reflection_Property (patch from Timm slightly modified).
2004-02-26 01:06:18 +00:00
Marcus Boerger
ccef2cfb67
As Andi found out the dtor may increase the refcount.
2004-02-25 21:39:59 +00:00
foobar
b87a245207
ws + cs
2004-02-25 21:06:59 +00:00
Zeev Suraski
62e921f824
Fix leak in foreach ($o->mthd()->arr)
2004-02-25 17:23:50 +00:00
Zeev Suraski
7086634a0b
- Improve ARG_INFO() macros to support supplying required_num_args
...
- Initial fix for foreach($o->mthd()->arr) crash (now leaks)
2004-02-25 14:56:45 +00:00
Derick Rethans
9be67e5a42
- Use <span> instead of <font> in highlight_string(). (Patch by mg@iceni.pl)
2004-02-25 14:14:47 +00:00
foobar
c0885c93fe
Improve error messages
2004-02-25 13:11:00 +00:00
Zeev Suraski
eb6fd52e21
- Rename compatiblity mode to zend.ze2_compatibility_mode (it doesn't only affect auto-clone).
...
- Perform implementation checks even with simple inheritance (off when
compatibility mode is enabled).
- Restore default arguments in interfaces and handle it correctly.
- Move registration of internal classes later in the startup sequence
in order to have INI options available.
2004-02-25 10:57:10 +00:00
Derick Rethans
ca64573e1b
- Fixed bug #27391 (typo in Fatal Error message).
2004-02-25 10:43:36 +00:00
Zeev Suraski
36a751840d
- Abstract methods cannot have defaults for arguments
...
- Make function foo($a, $b=null) satisfy both foo($a) and foo($a, $b)
prototypes
2004-02-25 09:25:37 +00:00
Sebastian Bergmann
0cfb59fce4
Proto fixes.
2004-02-25 08:58:56 +00:00
Marcus Boerger
b0529e5485
Fix object destruction/free in shutdown
...
- set destructor_called even when no dtor is given
- use free_storage even when no dtor hat to be called
2004-02-25 08:16:54 +00:00
Marcus Boerger
98f725b0e0
Checking once for dtor is enough
2004-02-25 07:47:56 +00:00
da0c739eac
ChangeLog update
2004-02-25 01:32:26 +00:00
Marcus Boerger
ce8f77f7b1
Fix class flags when handling abstract methods
2004-02-24 23:39:12 +00:00
409c06738f
ChangeLog update
2004-02-24 01:32:27 +00:00
Andi Gutmans
4f05437e08
- Improve precendence:
...
<?php
$obj->foo = "Blah";
if (!$obj instanceof StdClass) {
print "No";
} else {
print "Yes";
}
2004-02-23 18:17:16 +00:00
Andi Gutmans
4a14e5c30d
- Decrease precedence of instanceof so that the following is true:
...
php -r 'var_export((object)1 instanceof stdClass);';
Patch by Jan Lehnardt
2004-02-23 08:40:39 +00:00
0d28e63189
ChangeLog update
2004-02-23 01:32:39 +00:00
Derick Rethans
e2c9926923
- Fixed bug #27354 (Modulus operator crashes PHP).
2004-02-22 20:02:26 +00:00
Marcus Boerger
1fbe07c9e0
Add some more obviously needed information
2004-02-22 18:50:47 +00:00
60812423da
ChangeLog update
2004-02-21 01:32:48 +00:00
Hartmut Holzgraefe
1727c6a2bb
more EXTERN_C wrapping of ZEND_API prototypes
2004-02-20 08:03:27 +00:00
foobar
acf7a5e262
ws fix
2004-02-20 06:59:37 +00:00
b21569dead
ChangeLog update
2004-02-19 01:32:24 +00:00
Hartmut Holzgraefe
3a3f95a399
wrap ZEND_API prototypes into BEGIN_EXTERN_C/END_EXTERN_C
...
for C++ extension support
2004-02-18 22:44:40 +00:00
Zeev Suraski
666b44c11e
Forward-port fixlet from PHP 4 (thanks to Michael Sisolak)
2004-02-18 08:53:56 +00:00
7cb2086ea1
ChangeLog update
2004-02-18 01:32:10 +00:00
foobar
2b8611ae3b
MFB: - Fix bug #26753 (zend_fetch_list_dtor_id() does not check NULL strings)
2004-02-17 22:04:05 +00:00
9551966c85
ChangeLog update
2004-02-17 01:32:28 +00:00
Derick Rethans
5dcf37b618
- Clearify clone behavior, fixed clone example (Patch by Jan Lehnardt)
2004-02-16 12:08:20 +00:00
Marcus Boerger
b0ef896f0e
Bugfix #27227 Mixed case class names causes Fatal Error in Constructor call
2004-02-16 00:34:23 +00:00
36315ded6b
ChangeLog update
2004-02-15 01:33:34 +00:00
Marcus Boerger
ce984d7667
dtor's may not be called from free_storage handlers
2004-02-14 13:33:36 +00:00
7e7630aeb0
ChangeLog update
2004-02-13 01:32:15 +00:00
Andi Gutmans
5cad7a2b4a
- Remove old code
2004-02-12 15:23:06 +00:00
Hartmut Holzgraefe
92f355d733
making sure that the provided examples actualy work (or at least do not
...
generate no parse errors) unless they are really expected to fail
2004-02-12 14:44:58 +00:00
Andi Gutmans
62b81df9b0
- This was too strict.
2004-02-12 14:31:13 +00:00
Zeev Suraski
e7e0f7d4b4
- Check return-by-reference bit when implementing interface prototypes
...
- Add infrastructure for built-in functions to hint whether they
return by reference or not. It is NOT currently used for anything,
except for interface prototypes (you can use it to request that the
function that implements your prototype returns by reference or
doesn't return by reference).
For downwards compatibility - by default, interface prototypes are
agnostic as to whether the function that implements them returns
by reference or not. Use ZEND_BEGIN_ARG_INFO_EX() with
ZEND_RETURN_VALUE/ZEND_RETURN_REFERENCE to change that.
- Fix ArrayAccess::getOffset() to conduct additional checks.
If your getOffset() should work with multidimensional arrays - it
must return by reference.
2004-02-12 13:49:55 +00:00
Andi Gutmans
7d3215d333
- Add comments to read/write property/dimension for extension authors
2004-02-12 12:22:45 +00:00
Zeev Suraski
30171a7590
zend_default_classes.h -> zend_exceptions.h
2004-02-12 10:43:27 +00:00
Andi Gutmans
61a049ba3b
- Add zend_exceptions.c
2004-02-12 10:39:12 +00:00
Zeev Suraski
00ed3bad29
Centralize exceptions code in zend_exceptions.[ch].
...
Remove zend_default_classes.h (use zend_exceptions.h instead)
NOTE: This currently breaks the build, fixes to php-src and pecl coming
soon
2004-02-12 10:38:14 +00:00
Andi Gutmans
e189d89672
- Use zend_throw_exception_object() in throw_handler to make sure it
...
- does all the checks
2004-02-12 10:28:33 +00:00
Zeev Suraski
d9630a595b
Exceptions updates:
...
- Enforce exceptions to be derived from class Exception. This allows
users to perform catch-all. It's not yet complete, so don't get
comfortable with it just yet :) Updates are coming soon.
- Implement zend_throw_exception() using zend_throw_exception_ex()
2004-02-12 10:24:40 +00:00
Andi Gutmans
559b14611d
- Add API function to throw exception by using an object
2004-02-12 09:50:08 +00:00
35e8577db4
ChangeLog update
2004-02-12 01:36:26 +00:00
Marcus Boerger
2a8426a664
Must be initialized in ZTS mode
2004-02-11 22:58:03 +00:00
Marcus Boerger
39894ea7c1
Update
2004-02-11 22:42:53 +00:00
Marcus Boerger
4256448a5f
Update
2004-02-11 22:38:05 +00:00
Marcus Boerger
c6cbafa273
Fix: <interface> [extends <interface> [, <ineterface>]* ]
2004-02-11 22:13:39 +00:00
Zeev Suraski
d91fc5fa3c
Fix leaks in assignments to overloaded objects
2004-02-11 19:12:16 +00:00
Zeev Suraski
3d4c7922e1
Fix leak with overloaded objects, when they're used just "for the hell
...
of it" :)
2004-02-11 16:28:46 +00:00
Zeev Suraski
aac72ce090
Fixed a bug the caused overloaded array indices to be converted to strings
2004-02-11 15:56:13 +00:00
Zeev Suraski
30f1be78c2
Turn off bogus warnings with overloaded dimensions and += (and friends)
2004-02-11 15:50:23 +00:00
Zeev Suraski
cc8c9ef2ec
Improve the implementation of unset() on array dimensions to be more
...
consistent with that of regular variables and string offsets
2004-02-11 13:58:29 +00:00
Zeev Suraski
75390796be
Fix bug #25038
2004-02-11 13:01:39 +00:00
Zeev Suraski
fde9bac476
Fix crash (patch by Rob Richards)
2004-02-11 12:35:24 +00:00
Zeev Suraski
6b6fe2f76e
Fix exceptions thrown without a stack frame
...
Always enable set_exception_handler()
2004-02-11 12:31:18 +00:00
Zeev Suraski
3d622f99c1
Change FETCH_RESOURCE to return false on error instead of null, for
...
consistency with other error situations
2004-02-11 11:52:33 +00:00
Zeev Suraski
c01c44c2e2
Fix bug #26802 (the right aspects of it found by Marcus, anyway :)
2004-02-11 10:51:05 +00:00
Zeev Suraski
0f3106ad17
Fix and clarify the test case
2004-02-11 10:48:20 +00:00
Zeev Suraski
73a6bcf5cf
Complete the fix for handling of exceptions happening during the
...
argument passing phase of function calls (fixes bug #26866 )
2004-02-11 09:42:58 +00:00
Zeev Suraski
4b632eba46
whitespace
2004-02-11 09:42:10 +00:00
8d102800b3
ChangeLog update
2004-02-11 01:32:14 +00:00
Zeev Suraski
816d15252b
Ignore the memleak in this test
2004-02-10 22:13:07 +00:00
Zeev Suraski
79a58abbbf
Fix bug #26698 (exceptions handled properly during argument passing to functions)
2004-02-10 17:01:55 +00:00
Zeev Suraski
b6e14b44b4
Fix bug #27186
2004-02-10 16:08:01 +00:00
Zeev Suraski
da36a7c249
Fix bug #26869
2004-02-10 15:30:32 +00:00
Zeev Suraski
57aaad0dec
Fix refcounting of ++/+= overloading (fix leak in __get()/__set()
...
based classes)
2004-02-10 14:52:14 +00:00
Andi Gutmans
91ee6c0ceb
- Nuke more unused code
2004-02-10 11:44:17 +00:00
Zeev Suraski
de583b2f91
Fix handling in assignment using multidimensional array syntax to string
...
offset ($s = "FUBAR"; $s[0][0] = 1;)
2004-02-10 11:39:52 +00:00
Andi Gutmans
70c418d064
- We will go with PHP 4 behavior. With the new object model assigning by
...
reference has lost a lot of its importance.
2004-02-10 11:20:52 +00:00
Andi Gutmans
041b5dc2f7
- Remove junk
2004-02-10 10:44:09 +00:00
Zeev Suraski
d082fb03ee
Fix exception handling in opcodes spanned across multiple oplines (fixes the crash in __set())
2004-02-10 10:07:46 +00:00
Zeev Suraski
439396188c
- Fix pre/post increment for overloaded objects
...
- Fix binary-assign-op for overloaded objects
NOTE: This requires the implementation of the 'get' callback!
2004-02-10 09:29:42 +00:00
Moriyoshi Koizumi
e88babe8ac
- Correcting test.
...
# still segfaults though.
2004-02-10 09:15:01 +00:00
9d21d82024
ChangeLog update
2004-02-09 01:32:12 +00:00
Zeev Suraski
473927ece8
Fix write-mode of overloaded objects when using array dimensions
2004-02-08 17:23:20 +00:00
Andi Gutmans
8a129bfc47
- Check if free_storage exists
2004-02-08 17:08:11 +00:00
f6b9419d2c
ChangeLog update
2004-02-06 01:32:19 +00:00
Sebastian Bergmann
0e3ce62c7b
Committing for Jan.
2004-02-05 10:41:55 +00:00
Ilia Alshanetsky
157a4e289a
Fixed bug #27145 (Unmangle private/protected property names before printing
...
then inside error messages).
2004-02-05 02:16:08 +00:00
e92f95346b
ChangeLog update
2004-02-05 01:32:18 +00:00
Zeev Suraski
e28ab687d2
Fix exceptions happening inside internal functions called through
...
zend_user_function()
2004-02-04 23:48:39 +00:00
Zeev Suraski
14ac17fa95
Remove double initialization
2004-02-04 23:28:40 +00:00
Marcus Boerger
7fa5cdcb72
Add new prototype
2004-02-04 22:22:30 +00:00
Marcus Boerger
63c964c40f
Fix reflection
2004-02-04 22:19:00 +00:00
Marcus Boerger
dd58eb3f6d
Fix warnings
2004-02-04 21:04:12 +00:00
Zeev Suraski
d3c9467432
Fixlet
2004-02-04 18:24:44 +00:00
Zeev Suraski
bab3acc37b
Fix handling of $this in some cases
2004-02-04 17:57:48 +00:00
Zeev Suraski
52b5f3fea1
Handle additional cases
2004-02-04 17:10:44 +00:00
Zeev Suraski
c5d842279c
Reinstate early-binding for classes.
...
Note that this is available for downwards compatibility only - and it doesn't
work if you use new features (namely, interfaces). Generally, people should
declare their classes before using them, but we just didn't want hell to break
loose (c)
2004-02-04 16:30:15 +00:00
Zeev Suraski
723641590a
Optimize
2004-02-04 15:51:07 +00:00
Zeev Suraski
3df50001e1
- Improve $this assignment detection and generalize some code in zend_compile.c
2004-02-04 14:25:25 +00:00
Zeev Suraski
e1fc3963ee
-Error out when trying to re-assign $this
2004-02-04 13:56:41 +00:00
Zeev Suraski
5c3e03a2ff
The valid bit was necessary after all - restored
2004-02-04 12:30:48 +00:00
Zeev Suraski
6584dca194
Fixlets
2004-02-04 12:17:57 +00:00
Zeev Suraski
3ac58bffcf
- Small fixes
2004-02-04 11:56:07 +00:00
Zeev Suraski
27f54a4c13
- Improve wording
2004-02-04 11:47:54 +00:00
Zeev Suraski
f5f7d569a0
Change destructor implementation (details will follow on internals@)
2004-02-04 09:56:20 +00:00
c4ec00a46d
ChangeLog update
2004-02-04 01:32:17 +00:00
Marcus Boerger
dfad2955ee
Update tests
2004-02-03 22:07:29 +00:00
Marcus Boerger
363c587871
Nuke unused variable
2004-02-03 21:15:08 +00:00
Marcus Boerger
60a4a48e4e
Fix Warning
2004-02-03 21:13:04 +00:00
Sebastian Bergmann
e2e5c69f47
clone/__clone() related changes.
2004-02-03 16:56:37 +00:00
Zeev Suraski
e4db2fb890
Remove unused variable
2004-02-03 15:51:09 +00:00
Zeev Suraski
3be75ceda2
Remove more garbage - valid bit was not really necessary
2004-02-03 15:49:15 +00:00
Zeev Suraski
c5a7b668cd
- Clean garbage (delete was nuked a long time ago)
2004-02-03 15:37:37 +00:00
Ilia Alshanetsky
871d8bdb57
More unneeded code removed.
2004-02-03 14:33:32 +00:00
Zeev Suraski
60bb89c505
Abort on parse error in an include file (patch by Ilia)
2004-02-03 14:32:02 +00:00
Zeev Suraski
e1bf9cc4c2
Remove redundant code
2004-02-03 14:31:07 +00:00
Zeev Suraski
8013d5fa39
Fix try/catch block logic
2004-02-03 13:42:41 +00:00
Zeev Suraski
848d4aed8a
Perform a bitwise copy of the object even when __clone() is defined.
...
__clone() is back to not requiring any arguments, as $that is no longer
needed ($this already contains a copy of the original object, by the time
we __clone() is executed).
Calling the parent clone is done using parent::__clone()
2004-02-03 12:36:13 +00:00
Zeev Suraski
9e60cb553f
Rewrote exception support. Fixes a few limitations and bugs in the old
...
implementation, and allows exceptions to 'fire' much earlier than before.
Instructions on how to use the new mechanism will follow on internals@
shortly...
Note - this (most probably) breaks the current implementation of
set_exception_handler()
2004-02-03 12:17:09 +00:00
538d5199ea
ChangeLog update
2004-02-03 01:32:21 +00:00
Zeev Suraski
8e30d96ad8
Redesign the clone() feature to fix some fundamental flaws in the previous
...
implementation.
Using clone directly is now done using
$replica = clone $src;
Clone methods must now be declared as follows:
function __clone($that)
{
}
Clone methods in derived classes can call the __clone method of their parent
classes using parent::__clone($that)
2004-02-02 12:28:19 +00:00
343d4314b4
ChangeLog update
2004-02-01 01:32:26 +00:00
Marcus Boerger
46be4c2626
Throw an exception in case a reflection object cannot be found and do not
...
override the exception from constructors in static method calls.
2004-01-31 12:20:20 +00:00
5eb038002e
ChangeLog update
2004-01-31 01:31:58 +00:00
Ilia Alshanetsky
b4e882d013
Apply the same parse error handling to (include|require)_once as the one for
...
their non-once counterparts.
2004-01-30 02:22:17 +00:00
580c439c6e
ChangeLog update
2004-01-29 01:32:20 +00:00
Zeev Suraski
d45541b4fb
Tweak checks to detect some additional cases.
...
Reorder checks to make more sense.
2004-01-28 22:27:39 +00:00
Zeev Suraski
be7d41b905
- Error message fix
...
- Prevent inheritance of the same constant from two interfaces
2004-01-28 11:53:52 +00:00
Zeev Suraski
a7ff369cac
Fixlets
2004-01-28 10:52:27 +00:00
Zeev Suraski
2adaa11f2f
Prevent classes from implementing interfaces that have the same function
2004-01-28 10:25:45 +00:00
Zeev Suraski
ae0e9e62dd
Whitespace
2004-01-28 10:24:57 +00:00
Zeev Suraski
673e6e23e7
Code relayout
2004-01-28 09:13:41 +00:00
Zeev Suraski
c15d4ddb2b
Forward-port fix for timeouts under Windows
2004-01-28 09:07:02 +00:00
69038b6d18
ChangeLog update
2004-01-27 01:32:27 +00:00
Marcus Boerger
6186617571
- Export struct zend_user_iterator
...
- Ad 'it' to function prefix to prevent naming clashes
- Export zend_user_it_free_current
2004-01-26 22:33:52 +00:00
48a98f78ee
ChangeLog update
2004-01-26 01:33:25 +00:00
Ilia Alshanetsky
0cb89236a3
Fixed bug #26814 (On parse error include included file, terminate
...
execution script).
2004-01-25 23:54:12 +00:00
Marcus Boerger
6e2cf148a4
Respect proeprty visibility in foreach
2004-01-25 13:32:02 +00:00
Marcus Boerger
db86475367
Update test
2004-01-25 13:19:16 +00:00
733e2dae08
ChangeLog update
2004-01-25 01:32:26 +00:00
Marcus Boerger
3ca44539a1
Switch from ZEND_ACC_DYNAMIC to ZEND_ACC_ALLOW_STATIC and disallow calling
...
internal non-static methods statically.
# As discussed with Zeev:
# - For BC standard userspace methods allow this with an E_STRICT message.
# - If you want to implement an internal method taht can be called both
# statically and non-statically then use flag ZEND_ACC_ALLOW_STATIC.
# - Magic user space methods __*() cannot and __construct, __destruct,
# __clone can never be called statically.
2004-01-24 16:59:24 +00:00
Sebastian Bergmann
1e902b696d
Change message as proposed by Jon.
2004-01-24 04:59:47 +00:00
6b7e6992a2
ChangeLog update
2004-01-24 01:32:18 +00:00
Marcus Boerger
6020ffd007
Simplify detection of methods that must be called dynamic (with object)
2004-01-23 22:04:42 +00:00
Marcus Boerger
79e7145cc7
Disallow calling __clone/__construct/__destruct static
...
Send an E_STRICT when calling a non static method static
2004-01-23 20:58:23 +00:00
Marcus Boerger
7c2e02d380
Disallow static declaration of clone
2004-01-23 20:52:39 +00:00
foobar
6a1d0114a7
Silence some compile warnings
2004-01-23 03:28:59 +00:00
ddfe5648fe
ChangeLog update
2004-01-23 01:32:09 +00:00
Marcus Boerger
c4c6d5213a
Fix internal access to exception properties
2004-01-22 19:53:09 +00:00
495860928a
ChangeLog update
2004-01-20 01:32:06 +00:00
Andi Gutmans
21f09643ec
- Hopefully fix bug #26696 .
...
- Please let me know if hell-breaks loose
2004-01-19 12:22:02 +00:00
8ee117f877
ChangeLog update
2004-01-19 01:32:11 +00:00
Marcus Boerger
805dfab890
Add zend_get_module_started() to quickly check whether a module is present
...
and its MINIT function has been called.
2004-01-19 00:39:29 +00:00
Marcus Boerger
3df0288490
Improove debug capabilities
2004-01-18 23:47:10 +00:00
Marcus Boerger
0a210d7976
Fix some casing issues
2004-01-18 10:45:36 +00:00
2d5b7f7c27
ChangeLog update
2004-01-18 01:35:28 +00:00
Marcus Boerger
64c7645009
#where has my bracket been gone?
2004-01-17 16:50:54 +00:00
Marcus Boerger
3edabd01bb
Fix inheritance rule for interface Traversable
2004-01-17 16:38:25 +00:00
foobar
f4983c0d3f
- Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5
2004-01-17 13:00:38 +00:00
92f9989ad8
ChangeLog update
2004-01-17 01:32:11 +00:00
Ilia Alshanetsky
0a8a950fcf
Expose zend_std_call_user_call(), needed for implementation of things like
...
__call handlers.
2004-01-17 00:39:28 +00:00
foobar
796938ec7f
Nuke compile warning by using the LANG_SCNG macro instead
2004-01-17 00:26:12 +00:00
foobar
b6b3443d0a
- Fixed bug #26640 (__autoload() not invoked by Reflection classes)
...
# Also removed double call of reflection_register_implement() on
# reflection_extension_ptr.
# Fixed also case-insensitive lookup of property names,
# now Reflection_Property('Classname', 'FooBar'); works too.
2004-01-16 21:11:58 +00:00
c1ac285760
ChangeLog update
2004-01-16 01:32:07 +00:00
Zeev Suraski
32007b19d8
Nice patch Christian, but it wasn't at all enabled? :)
...
Fix bug #26883
2004-01-15 16:47:32 +00:00
97a741e578
ChangeLog update
2004-01-15 01:32:13 +00:00
Zeev Suraski
59d168eda7
Don't allow interfaces to implement anything
2004-01-14 14:00:11 +00:00
Andi Gutmans
0458bf10e4
- Remove bogus macros
2004-01-14 08:50:17 +00:00
bc9cbe2715
ChangeLog update
2004-01-14 01:32:09 +00:00
Wez Furlong
d4deb460bd
Don't treat strings containing : as potential constant names in
...
the .ini parser.
This fixes Bug #26893
2004-01-13 17:00:10 +00:00
24f5ca6ab5
ChangeLog update
2004-01-13 01:32:17 +00:00
Andi Gutmans
92eb129bd9
- Return the PHP 4 behavior of not allowing class declerations within
...
- class declerations. This happened when declaring a class within a
- method.
class A {
function foo() {
class B {
}
}
}
2004-01-12 07:15:55 +00:00
ac8b58603b
ChangeLog update
2004-01-12 01:31:59 +00:00
Marcus Boerger
61fc2a9209
Add missing macro
...
# by popular demand, more and more exts need this
2004-01-12 00:19:40 +00:00
Wez Furlong
910e20064a
TSRMLS fix
2004-01-11 21:39:40 +00:00
Andi Gutmans
ac5d5c7f35
- Re-allow conditional class declerations. Needless to say that I also
...
- think it's not great coding.. Use polymorphism instead :)
2004-01-11 19:37:15 +00:00
Andi Gutmans
e69f4f6f25
- This should fix the problem of conditional function decleration on the
...
- same line of code not to work. You should re-evaluate your coding style
- if you really code this way :)
2004-01-11 19:27:13 +00:00
a4872e0c31
ChangeLog update
2004-01-11 01:32:20 +00:00
Zeev Suraski
f5e9ca64b1
Remove conflict
2004-01-10 12:48:04 +00:00
Zeev Suraski
a72c1ab93b
Added error mask to set_error_handler()
...
Patch by Christian Schneider <cschneid@cschneid.com>
2004-01-10 11:43:42 +00:00
b04960746d
ChangeLog update
2004-01-10 01:33:36 +00:00
Wez Furlong
57e2ef89e4
support for building asm in the unix buildsys.
...
Also, when ZEND_ACCONFIG_H_NO_C_PROTOS is defined,
omit the C prototypes from the configuration header
so that it can be included into asm files.
2004-01-09 23:37:29 +00:00
Marcus Boerger
686281d087
this one is declined
2004-01-09 18:55:49 +00:00
Wez Furlong
e3baf1a07d
must be extern to avoid problems with some compilers
2004-01-09 18:09:51 +00:00
Stanislav Malyshev
b9052251e7
fix expect
2004-01-09 14:32:32 +00:00
Stanislav Malyshev
c4b6a637e5
Bug #25816 - disallow arrays in class constants
2004-01-09 14:02:33 +00:00
Stanislav Malyshev
209497cfdf
add test
2004-01-09 13:55:02 +00:00
Stanislav Malyshev
e321eba06b
Fix Bug #26077 - memory leak when new() result is not assigned
...
and no constructor defined
2004-01-09 13:52:19 +00:00
47c81de40f
ChangeLog update
2004-01-09 01:32:33 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
6b87194bd9
- - A belated happy holidays (by two years)
2004-01-08 08:23:23 +00:00
cfca1234a4
ChangeLog update
2004-01-08 01:31:55 +00:00
0204ac5a27
ChangeLog update
2004-01-07 01:32:03 +00:00
Marcus Boerger
1d2b4bcc48
Reimplement part of Bug #24608 that was reverted too
2004-01-07 00:24:58 +00:00
Marcus Boerger
82f0c9e7aa
Revert patch that allowed to call sttaic methods via $method()
2004-01-07 00:02:04 +00:00
Ilia Alshanetsky
68a096f84e
Check if realloc() succeeds or not. (Noticed by Andrey)
2004-01-06 22:44:40 +00:00
6b27ed4d8d
ChangeLog update
2004-01-06 01:31:55 +00:00
Marcus Boerger
6118a91849
Update
2004-01-06 00:51:43 +00:00
Marcus Boerger
18ea05b746
Fixed bug #26802
2004-01-05 22:45:11 +00:00
Marcus Boerger
f16aed2d7a
Fix test
2004-01-05 22:40:24 +00:00
Marcus Boerger
780b420797
Add new test
2004-01-05 22:17:14 +00:00
Marcus Boerger
b5e5c845bf
Update test
2004-01-05 14:01:09 +00:00
Stanislav Malyshev
bced21b357
Fix bug #26543 - check parent:: and self:: in class names
2004-01-05 12:10:35 +00:00
Stanislav Malyshev
1e11e7401c
Bug #24608 - fix interaction between __accessors and get_property_ptr
2004-01-05 11:45:46 +00:00
69b6c15158
ChangeLog update
2004-01-04 01:32:43 +00:00
Derick Rethans
6923a16c26
- Fixed var_export() to show public, protected and private modifiers properly.
...
- Exported (un)mangle_property_name.
2004-01-03 13:51:02 +00:00
f37c9932ba
ChangeLog update
2004-01-03 01:32:06 +00:00
Andrei Zmievski
85f62caad2
Do not show exception message if it's empty.
...
# Is there a way to preserve the case of the exception class here?
2004-01-02 19:27:02 +00:00
06a60f2949
ChangeLog update
2004-01-01 01:32:07 +00:00
Andrei Zmievski
87c2ba22f1
Make default message look better.
2003-12-31 19:44:41 +00:00
cd9342fb84
ChangeLog update
2003-12-31 01:33:06 +00:00
Andi Gutmans
fc835b4a46
- Fix typos
2003-12-30 13:28:31 +00:00
Marcus Boerger
5e9279bb44
Update
2003-12-30 13:14:14 +00:00
b8f3838753
ChangeLog update
2003-12-30 01:31:58 +00:00
Ilia Alshanetsky
f0fa1781ee
Added test case for bug #26696 .
2003-12-30 00:23:28 +00:00
Marcus Boerger
046859493e
Fix (string) conversion
2003-12-29 22:01:47 +00:00
Marcus Boerger
c0b8e35997
Add missing notice
2003-12-29 21:58:03 +00:00
Marcus Boerger
03e039b19d
Fix __autoload() with derived classes
2003-12-29 12:35:44 +00:00
049fda207d
ChangeLog update
2003-12-29 01:32:05 +00:00
Marcus Boerger
2a6ec5ccb4
WS
2003-12-28 16:20:06 +00:00
Marcus Boerger
15964bb35d
Fix order of class_entry member initialization (needed for example for DOM)
...
# You need to completley rebuild PHP after this patch.
2003-12-28 15:18:05 +00:00
af3e587d1e
ChangeLog update
2003-12-28 01:31:59 +00:00
Marcus Boerger
885eafac61
Fixed bug #26065 (Crash when nesting classes)
2003-12-27 22:59:49 +00:00
Marcus Boerger
c49b657084
Add new test
2003-12-27 20:45:36 +00:00
Marcus Boerger
e20f534ee5
Simplify
2003-12-27 20:33:14 +00:00
Marcus Boerger
db36fd0200
Fix __tostring() and concatenation
2003-12-27 20:16:49 +00:00
20a59f9759
ChangeLog update
2003-12-26 01:31:54 +00:00
Marcus Boerger
1dec2d85d6
Fix warning
2003-12-25 20:08:22 +00:00
Marcus Boerger
d28d247c4a
Fix warning
2003-12-25 19:59:38 +00:00
Ilia Alshanetsky
0688205940
Fixed Bug #26703 (Certain characters inside strings incorrectly treated as
...
keywords). Original patch by vrana@php.net .
2003-12-25 18:57:26 +00:00
6d50eca0db
ChangeLog update
2003-12-24 01:31:55 +00:00
Marcus Boerger
c6cb00fe59
Fixed bug #26697 (calling class_exists on a nonexistent class in __autoload
...
results in segfault).
2003-12-23 10:45:10 +00:00
3fc3d625e5
ChangeLog update
2003-12-23 01:31:50 +00:00
Marcus Boerger
717604ea70
Add more tests
2003-12-22 22:53:48 +00:00
Marcus Boerger
26a0abbd0c
Fix tests now that class names are shown in correct casing
2003-12-22 22:50:02 +00:00
Marcus Boerger
50888a100c
Preserve class name casing.
2003-12-22 22:34:28 +00:00
Marcus Boerger
b58d371927
Fixed bug #26695 (Reflection API does not recognize mixed-case class hints)
...
# The exception part
2003-12-22 20:03:01 +00:00
Marcus Boerger
06788f0438
Fixed bug #26675 (Segfault on ArrayAccess use)
...
Update NEWS
2003-12-22 16:27:14 +00:00
Wez Furlong
273c19334b
export these symbols for use by SPL as a shared extension
2003-12-22 13:09:15 +00:00
d8f6bb7efa
ChangeLog update
2003-12-20 01:31:55 +00:00
Andi Gutmans
535653ee8e
- Nuke another rule (thanks to Jan for noticing this)
2003-12-19 14:39:17 +00:00
Dmitry Stogov
02a9316731
Bug #25547 (error_handler and array index with function call) was fixed
...
tests/lang/bug25547.phpt
2003-12-19 14:08:22 +00:00
Andi Gutmans
f9f19c99b3
- Nuke unused code
2003-12-19 13:35:42 +00:00
Dmitry Stogov
5adf502a69
Error reporting on unset string offset was added (Bug #24773 Zend/tests/bug24773.phpt)
2003-12-19 11:26:52 +00:00
Dmitry Stogov
25a811da65
Assign_op operators (+=) were fixed for elements of overloaded objects
2003-12-19 11:22:13 +00:00
fbebdb4685
ChangeLog update
2003-12-19 01:31:43 +00:00
Andi Gutmans
38beff5c92
- Nuke C++ comment
2003-12-18 23:30:22 +00:00
Andi Gutmans
3546d86052
- Revert patch 1.566
2003-12-18 23:28:15 +00:00
Marcus Boerger
49efcd4f27
Fixed bug #24837 Incorrect behaviour of PPP using foreach.
2003-12-18 20:07:30 +00:00
893fa6c137
ChangeLog update
2003-12-18 01:32:36 +00:00
Zeev Suraski
24298e523f
This part of the if was necessary after all.
...
Refix bug #22510
2003-12-17 17:06:34 +00:00
Dmitry Stogov
ae4a09b239
*** empty log message ***
2003-12-17 15:08:13 +00:00
Dmitry Stogov
3c4cfd3ec8
Dynamic function call from object's property was fixed
...
(See "tests/lang/bug24926.phpt" and "tests/lang/bug25652.phpt")
2003-12-17 14:45:59 +00:00
Dmitry Stogov
20f73cd267
Access to globals/autoglobals from class __destructor was fixed.
...
(see "tests/lang/bug24908.phpt" and "tests/classes/destructor_and_globals.phpt")
2003-12-17 14:25:12 +00:00
00c012804e
ChangeLog update
2003-12-17 01:31:48 +00:00
Sebastian Bergmann
9c909f41fd
Sync: Export externally used functions.
2003-12-16 11:44:19 +00:00
Stanislav Malyshev
6d5eb809be
export class initialization function
2003-12-16 10:51:51 +00:00
Stanislav Malyshev
052032f5ec
export externally used functions
2003-12-16 10:51:21 +00:00
Stanislav Malyshev
d22fcfbc03
export function
2003-12-16 10:50:52 +00:00
39d19a5b0f
ChangeLog update
2003-12-16 01:31:45 +00:00
Marcus Boerger
d4f64f88ba
Reenable __tostring() magic for print,echo,concatenation,function naming...
...
but not for other internal things.
# As discussed with Andi
2003-12-15 16:59:21 +00:00
foobar
a1a69ae16b
ws + cs (no c++ comments in c code)
2003-12-15 13:20:53 +00:00
Dmitry Stogov
ceb7c536d5
Bug #24773 was fixed (Zend/tests/bug24773.phpt)
...
Assign_op operators (+=) were fixed for elements of overloaded objects
Memory leaks during accessing ptoperies/elements of overloaded objects were fixed
2003-12-15 07:22:09 +00:00
Dmitry Stogov
2d9281352b
Memory corruptions were fixed in zend_str_tolower_copy()
2003-12-15 07:17:27 +00:00
fa4726e3b3
ChangeLog update
2003-12-15 01:31:56 +00:00
Zeev Suraski
3a42babad6
Fix behavior of return-by-reference functions. Remove erroneous warnings,
...
add E_STRICT warnings in case you return something by reference that you're
not supposed to (anything that's not a variable, or a return-value of a
function that returned by reference).
2003-12-14 16:09:07 +00:00
Zeev Suraski
e94e3e1775
Some cleanup
2003-12-14 12:32:02 +00:00
4c8eb214fd
ChangeLog update
2003-12-14 01:31:56 +00:00
Moriyoshi Koizumi
033bc12d86
Fixes for POSIX compliancy.
2003-12-13 19:28:30 +00:00
f076fea779
ChangeLog update
2003-12-13 04:08:11 +00:00
Marcus Boerger
a251361849
Free is needed in non ZTS too
2003-12-12 11:14:44 +00:00
Marcus Boerger
8fb5ea3081
Fix memleaks in ZTS mode
2003-12-12 10:50:23 +00:00
Marcus Boerger
a54c7dcb20
Fix memleaks
2003-12-12 08:25:58 +00:00
fb7f1aa71e
ChangeLog update
2003-12-12 01:31:49 +00:00
Ilia Alshanetsky
7f9d1a1f6b
Do not copy extra byte.
2003-12-12 00:16:58 +00:00
Ilia Alshanetsky
e2012609d6
Fixed extra byte allocation for TRUE/FALSE/ZEND_THREAD_SAFE/NULL constants.
2003-12-11 23:50:13 +00:00
Marcus Boerger
39544e1c7f
Bugfix: #26591 [NEW]: "__autoload threw an exception" during an uncaught
...
Exception
2003-12-11 18:18:52 +00:00
Andi Gutmans
5ba810ee46
- Refix bug #24773
2003-12-11 10:21:16 +00:00
Marcus Boerger
904373a830
Handle getter failure and allow to bypass thrown exceptions.
2003-12-11 09:56:06 +00:00