Stanislav Malyshev
e645f20d07
Allow namespaces to have a number of parts. I.e., now you can do:
...
namespace foo {
function abc() {}
}
...
namespace foo {
functio def() {}
}
2003-02-20 19:01:53 +00:00
Zeev Suraski
955636af69
Avoid using a C++ reserved word
2003-02-18 17:18:28 +00:00
Wez Furlong
e52aac940f
Implement simple stream support in the ZE scanners.
2003-02-18 09:37:54 +00:00
Zeev Suraski
d22cc2f329
Improve handling of static member variables
2003-02-17 14:06:39 +00:00
Zeev Suraski
ac0f7d9ed0
Fix complex cases of self-assignments (bugs #21600 , #22231 )
2003-02-16 19:18:23 +00:00
Zeev Suraski
f079bb65ff
Make EG(This) and EG(scope) available to internal methods
2003-02-16 19:10:27 +00:00
Zeev Suraski
004947221e
Revert patches - they weren't ready yet!
2003-02-16 18:34:48 +00:00
Georg Richter
60d1b378ed
fixed compiler warning
2003-02-16 18:04:29 +00:00
Georg Richter
c08bfd2e3f
tested patch from Zeev (fixes oo-bug in ext/mysqli)
2003-02-16 17:47:23 +00:00
Sebastian Bergmann
6d300baf84
ZTS fixes
2003-02-16 11:34:49 +00:00
Stanislav Malyshev
a4c3b2ce80
Namespace patch. Big changes:
...
1. Nested classes are gone.
2. New syntax for namespaces:
namespace foo {
class X { ... }
function bar { ... }
var x = 1;
const ZZ = 2;
}
3. Namespaced symbol access: $x = new foo::X; - etc.
For now, namespaces are case insensitive, just like classes.
Also, there can be no global class and namespace with the same name
(to avoid ambiguities in :: resolution).
2003-02-16 11:12:43 +00:00
Zeev Suraski
778ce2495d
whitespace
2003-02-10 11:49:21 +00:00
Zeev Suraski
dbb73d8f1e
Add ability to reference self:: and parent:: in constant initializers
...
(bug #21849 )
2003-02-10 09:45:27 +00:00
Zeev Suraski
edc8e67e3b
Remove redundant code
2003-02-10 08:32:44 +00:00
Zeev Suraski
55a66b1cb2
Fix the array() problem (and probably some other problems too)
2003-02-09 17:30:50 +00:00
Zeev Suraski
f660d28143
- read_property cleanup
...
- Implement unset/isset/empty for PPP
2003-02-05 14:27:30 +00:00
Zeev Suraski
17439aa9c4
Rework static class properties - now supports access restrictions
2003-02-05 13:35:52 +00:00
Zeev Suraski
61bd944b32
Core rearrangements - move Zend Objects specific code to their
...
specific implementation file
2003-02-02 16:17:25 +00:00
foobar
333406bdc2
- Added some missing CVS $Id$ tags, headers and footers.
2003-02-01 01:49:15 +00:00
Zeev Suraski
4b97a8dffd
Code rearrangements
2003-01-29 15:02:57 +00:00
Zeev Suraski
8f52bf6835
Fix assignments to $this.
...
Fixes the 'make install' problem reported on php-dev
2003-01-29 08:55:12 +00:00
Zeev Suraski
6155a1fa24
Allow methods in parent classes to call protected methods in derived
...
classes
2003-01-28 09:44:18 +00:00
Stanislav Malyshev
3a4ace13b4
Replace MAKE_VAR opcode with special 'data' opcode
...
This opcode is not executeable but only holds data for opcodes
that need more than two arguments (presently only ASSIGN_OBJ and the ilk but
in the future also ASSIGN_DIM)
2003-01-27 15:13:01 +00:00
Zeev Suraski
76c93412d3
Let the scope propagate to internal functions
2003-01-23 16:40:30 +00:00
Ilia Alshanetsky
72cd67b3ca
Fixed bug #21814 (Allow booleans to be used as array keys).
2003-01-22 14:48:30 +00:00
Ilia Alshanetsky
12d2b01a25
Fixed bug #20933 (isset/empty didn't work when used on string offsets).
2003-01-16 00:44:17 +00:00
Andi Gutmans
c073b76aac
- Change "is" to "instanceof" as it explains better what the operator means.
...
- "is_a" was also appropriate but ugly.
2003-01-14 21:29:23 +00:00
Zeev Suraski
424e98f4e2
Implemented compatibility mode
...
To enable - zend2.implicit_clone = on in php.ini or using ini_set()
2003-01-12 12:39:06 +00:00
Andi Gutmans
76c663b321
- Fix typo and whitespace
2003-01-11 17:04:16 +00:00
Derick Rethans
2c44fab3a0
- Ported the zend_execute_internal hook to ZendEngine2.
2003-01-11 16:12:44 +00:00
Zeev Suraski
77208ec4d6
Fix incorrect linkage of access-levels, when using private methods
2003-01-02 13:58:08 +00:00
Sebastian Bergmann
2c5d4b8c23
Bump year.
2002-12-31 15:59:15 +00:00
Zeev Suraski
ce69b6f6ee
Support private/protected constructors
2002-12-07 21:37:09 +00:00
Zeev Suraski
c087d9e9e4
Fix error messages
2002-12-07 15:53:37 +00:00
Zeev Suraski
e062dffe6c
- Implement public/protected/private methods.
...
- Prevent instantiation of classes with abstract methods.
Based in part on Marcus's patch.
2002-12-06 17:09:44 +00:00
Andi Gutmans
671fff2fde
h WHitespace
2002-11-30 11:20:25 +00:00
Andi Gutmans
6aa90a75bd
- FN_IS_STATIC -> FN_STATIC
2002-11-24 20:32:49 +00:00
Andi Gutmans
e8214a3384
- Commit Marcus' cleanup of abstract and static inheritance and improve
...
- error messages
2002-11-23 20:44:12 +00:00
Sebastian Bergmann
ba1f645030
Show class name as well. Patch by Marcus Börger.
2002-11-22 06:19:04 +00:00
Sebastian Bergmann
da0e29e92f
Show the name of the abstract method in the error.
2002-11-21 14:20:25 +00:00
Andi Gutmans
227f7838d6
- Fix build (thanks Marcus)
...
- Implement abstract methods, syntax:
- abstract function foo($vars);
- I don't see any reason why modifiers such as static/public need to be
- used with abstract. PHP is weakly typed and there would be no meaning to
- this anyway. People who want a strictly typed compiled language are
- looking in the wrong place.
2002-11-20 18:00:23 +00:00
Zeev Suraski
4be862b02c
MFZE1 - error_reporting fix
2002-11-19 17:51:30 +00:00
Stanislav Malyshev
29695934ed
fix the leak
2002-11-17 17:57:57 +00:00
Stanislav Malyshev
3944ce41c3
semi-fix string offsets crash - now it doesn't crash, but still leaks
2002-11-13 15:13:24 +00:00
Sebastian Bergmann
155c453138
Fugbix typo.
2002-11-11 18:27:32 +00:00
Sebastian Bergmann
bab84eab34
Fix ZTS build.
2002-11-06 18:51:44 +00:00
Stanislav Malyshev
41bd9b3746
fix zend_assign_to_object_op
2002-11-06 15:11:45 +00:00
Andi Gutmans
c497868005
- Add support for static methods. Basically methods which are defined as
...
- static don't have $this. That's the whole difference.
2002-11-05 19:37:31 +00:00
Andi Gutmans
3c94041bed
- Fix unset($this->foo)
2002-11-01 07:59:42 +00:00
Andi Gutmans
023836ae25
- Also tune jmpz_ex
2002-10-24 18:24:55 +00:00