#
5cb454a8 |
| 26-Dec-2001 |
Andi Gutmans |
- Fix scoping issue. The following works now: <? class MyClass { static $id = 0; function MyClass() {
- Fix scoping issue. The following works now: <? class MyClass { static $id = 0; function MyClass() { $this->id = self::$id++; } function _clone() { $this->name = $clone->name; $this->address = "New York"; $this->id = self::$id++; } } $obj = new MyClass(); $obj->name = "Hello"; $obj->address = "Tel-Aviv"; print $obj->id; print "\n"; $obj = $obj->_clone(); print $obj->id; print "\n"; print $obj->name; print "\n"; print $obj->address; print "\n";
show more ...
|
#
2ce4b476 |
| 26-Dec-2001 |
Andi Gutmans |
- Initial support for _clone()
|
Revision tags: php-4.1.1 |
|
#
ee44180f |
| 25-Dec-2001 |
Andi Gutmans |
- Fix a crash (not a thorough fix). - Commented old code
|
#
df38ce37 |
| 24-Dec-2001 |
Andi Gutmans |
- Fixed bug where global functions weren't called if they didn't exist - in the class scope
|
Revision tags: PRE_FUNC_RETURNS_OBJECT_PATCH |
|
#
f4b832d2 |
| 13-Dec-2001 |
Andi Gutmans |
- Fix crash bug in startup code. - Start work on being able to reference global and local scope
|
Revision tags: ChangeLog |
|
#
74efc41f |
| 12-Dec-2001 |
Andi Gutmans |
- Make classes have scope and function/constant lookups default to the class
|
#
4cb97fa3 |
| 11-Dec-2001 |
Andi Gutmans |
- Rename zend_class_entry.constants -> zend_class_entry.constants_table
|
#
1dcef1e4 |
| 11-Dec-2001 |
Andi Gutmans |
- Start making scope change correctly when calling namespace functions. - When inside a namespace fallback to global namespace when function - or constant is not found.
|
#
d863d52a |
| 11-Dec-2001 |
Sebastian Bergmann |
Update headers.
|
#
3bfee898 |
| 10-Dec-2001 |
Andi Gutmans |
- More namespaces work. - Nuke memory leak.
|
Revision tags: php-4.1.0 |
|
#
05570953 |
| 06-Dec-2001 |
Andi Gutmans |
- Support constants. The following works now: <? class foo { const GC = "foo constant\n"; } define("GC", "Global constant\n");
- Support constants. The following works now: <? class foo { const GC = "foo constant\n"; } define("GC", "Global constant\n"); namespace; print GC; namespace foo; print GC; namespace; print foo::GC; ?>
show more ...
|
#
42486196 |
| 06-Dec-2001 |
Andi Gutmans |
- Initial work on changing namespace scope. Only methods & variables - right now. <? $hey = "Global hey\n"; class foo { static $hey = "Namespa
- Initial work on changing namespace scope. Only methods & variables - right now. <? $hey = "Global hey\n"; class foo { static $hey = "Namespace hey\n"; function bar() { print "in foo::bar()\n"; } } function bar() { print "in bar()\n"; } bar(); namespace foo; bar(); namespace; bar(); namespace foo; $bar_indirect = "bar"; $bar_indirect(); namespace; print $hey; namespace foo; print $hey; $hey = "Namespace hey #2\n"; namespace; print $hey; $hey = "Global hey #2\n"; namespace foo; print $hey; ?>
show more ...
|
#
fe94f594 |
| 06-Dec-2001 |
Andi Gutmans |
- Nuke the namespace work I did. It'll be redone differently.
|
Revision tags: php-4.1.0RC5, php-4.1.0RC4 |
|
#
e858d278 |
| 30-Nov-2001 |
Andi Gutmans |
- Initial support for class constants. There are still a few semantic - issues which need to be looked into but basically it seems to work. - Example: <?php class foo
- Initial support for class constants. There are still a few semantic - issues which need to be looked into but basically it seems to work. - Example: <?php class foo { const hey = "hello"; } print foo::hey; ?>
show more ...
|
#
d2da63f6 |
| 25-Nov-2001 |
Andi Gutmans |
- Support static members. The following script works: <? class foo { class bar { function init_values()
- Support static members. The following script works: <? class foo { class bar { function init_values() { for ($i=1; $i<10; $i++) { foo::bar::$hello[$i] = $i*$i; } } function print_values() { for ($i=1; $i<10; $i++) { print foo::bar::$hello[$i] . "\n"; } } } } foo::bar::init_values(); foo::bar::print_values(); for ($i=1; $i<10; $i++) { print $hello[$i]?"Shouldn't be printed\n":""; } ?>
show more ...
|
#
559d611a |
| 24-Nov-2001 |
Andi Gutmans |
- MFZE1
|
Revision tags: php-4.1.0RC3, php-4.1.0RC2 |
|
#
a332f826 |
| 04-Nov-2001 |
Andi Gutmans |
- Support instantiation of nested class. The following script now should - work: -<?php - class foo - { - function bar() - { -
- Support instantiation of nested class. The following script now should - work: -<?php - class foo - { - function bar() - { - print "bar() in class bar\n"; - } - - class barbara - { - function bar() - { - print "bar() in class foo::barbara\n"; - } - } - } - - $obj = new foo(); - $obj->bar(); - - $obj = new foo::barbara(); - $obj->bar(); -
show more ...
|
#
b87194e0 |
| 03-Nov-2001 |
Andi Gutmans |
- Add constructor to the zend_class_entry instead of looking it up each - time by name. - This will allow the next patch of being able to instantiate nested - classes such as new foo::bar
- Add constructor to the zend_class_entry instead of looking it up each - time by name. - This will allow the next patch of being able to instantiate nested - classes such as new foo::bar::barbara();
show more ...
|
#
26578c38 |
| 29-Oct-2001 |
Andi Gutmans |
- Initial support for nested class definitions
|
#
8b53a129 |
| 27-Oct-2001 |
Zeev Suraski |
MFTGZE1
|
Revision tags: POST_PARAMETER_PARSING_API, PRE_PARAMETER_PARSING_API, php-4.1.0RC1, php4, php-4.0.7RC3 |
|
#
2eabb14d |
| 30-Sep-2001 |
Andi Gutmans |
- Merge the NAMESPACES_BRANCH. It wasn't a good idea to have a branch when - the whole CVS tree is work in progress
|
Revision tags: POST_SUBST_Z_MACROS, PRE_SUBST_Z_MACROS, php-4.0.7RC2 |
|
#
560606d2 |
| 30-Aug-2001 |
Andi Gutmans |
- Get rid of warning and C++ comments
|
#
29f5dbe1 |
| 30-Aug-2001 |
Andi Gutmans |
- Initial support for exceptions.
|
#
4684d5f4 |
| 30-Aug-2001 |
Zeev Suraski |
MFZE1
|
#
d87fa225 |
| 18-Aug-2001 |
Andi Gutmans |
- Merge Sterling's patches from ZE1
|