Stanislav Malyshev
40becd37e5
fix for delete $this and unset $this
2002-03-14 16:00:48 +00:00
Stanislav Malyshev
3af5b15f30
Fix call_user_function
2002-03-14 12:18:01 +00:00
5aa7d604a4
ChangeLog update
2002-03-13 01:20:11 +00:00
Andi Gutmans
0ee65254ee
- Forgot to close comment.
2002-03-12 19:41:02 +00:00
Andi Gutmans
9760fdcb37
- Macro for duality between Engine 1 and 2
2002-03-12 19:36:24 +00:00
Andi Gutmans
fb6976e46d
- Another couple of indirection fixes.
...
- Make class_entry->refcount be part of the structure and not allocated.
2002-03-12 19:22:29 +00:00
Andi Gutmans
c8c629b3fc
- Fix bug introduced with latest class hash table change.
2002-03-12 18:53:27 +00:00
Stanislav Malyshev
b75ffba9bb
Fix standard object creation
2002-03-12 11:28:30 +00:00
Stanislav Malyshev
92dd5e611b
- make class tables contain class_entry *, not class_entry
...
- fix isset($this)
2002-03-12 10:08:47 +00:00
aef0ea1beb
ChangeLog update
2002-03-11 01:20:33 +00:00
Andi Gutmans
d77ff9607e
- Fix build in ZTS mode.
2002-03-10 21:02:00 +00:00
Stanislav Malyshev
04ed2b520f
New stuff for objects API:
...
- Better assignment handling
- More flexible operations with zval-containing objects
2002-03-10 13:42:37 +00:00
61eb6fb4b6
ChangeLog update
2002-03-10 01:19:17 +00:00
Andi Gutmans
1229705743
- Add the original example script to the CVS so that it's always available.
2002-03-09 16:25:51 +00:00
aae9a035c5
ChangeLog update
2002-03-09 01:19:56 +00:00
Sebastian Bergmann
2f010abe51
Add 'import const' example.
2002-03-08 11:36:56 +00:00
Andi Gutmans
90f6005f58
- Support importing constants. e.g.:
...
<?php
class MyOuterClass {
const Hello = "Hello, World\n";
}
import const Hello from MyOuterClass;
print Hello;
2002-03-08 10:58:24 +00:00
2139ba0922
ChangeLog update
2002-03-08 01:20:50 +00:00
Sebastian Bergmann
0e17eea049
Add another 'import' example and merge 'import' section into 'Namespaces' section.
2002-03-07 10:31:51 +00:00
01d0e7ec15
ChangeLog update
2002-03-07 01:21:51 +00:00
Andi Gutmans
83f102fd9f
- Add function * and class * functionality. Only constants are left.
...
<?php
class MyOuterClass {
class MyInnerClass {
function func1()
{
print "func1()\n";
}
function func2()
{
print "func2()\n";
}
}
}
import class * from MyOuterClass;
import function func2 from MyOuterClass::MyInnerClass;
MyInnerClass::func1();
func2();
2002-03-06 17:08:26 +00:00
a97fc9703c
ChangeLog update
2002-03-03 01:20:44 +00:00
Sebastian Bergmann
3930d70fba
Consistency.
2002-03-02 22:26:17 +00:00
Sebastian Bergmann
3b7435fc51
Add 'import statement' section.
2002-03-02 22:24:46 +00:00
Andi Gutmans
b90d80b588
- Initial patch to support importing from class scopes (for Stig).
...
- It isn't complete yet but I want to work on it from another machine. It
- shouldn't break anything else so just don't try and use it.
- The following is a teaser of something that already works:
<?php
class MyClass
{
function hello()
{
print "Hello, World\n";
}
class MyClass2
{
function hello()
{
print "Hello, World in MyClass2\n";
}
}
}
import function hello, class MyClass2 from MyClass;
MyClass2::hello();
hello();
?>
2002-03-02 20:38:52 +00:00
Derick Rethans
1f9464e345
- MFZE1
2002-03-02 13:48:13 +00:00
Derick Rethans
0c6be86747
- MFZE1
2002-03-02 13:26:37 +00:00
8ff2ad53f2
ChangeLog update
2002-03-02 01:20:39 +00:00
Andrei Zmievski
a8609b1ba7
MFZE1
2002-03-01 17:34:52 +00:00
Andrei Zmievski
2310414868
MFZE1
2002-03-01 17:26:31 +00:00
Andi Gutmans
90bd4539c7
- Remove use of C++ reserved words namespace/this
2002-03-01 14:27:26 +00:00
Andi Gutmans
d1eea3de9c
- Fix bug in nested try/catch's
...
- Infrastructure for implementing imports of methods.
2002-03-01 14:04:51 +00:00
Andi Gutmans
2505f6b400
- Fix crash reported by Sebastian when destructor function causes a fatal
...
- error. I hope this does it and we don't find any other problems.
2002-03-01 10:26:10 +00:00
71139b307d
ChangeLog update
2002-02-27 01:33:13 +00:00
Andi Gutmans
7df1601239
- MFZE1
2002-02-26 19:17:26 +00:00
8ca013f2ae
ChangeLog update
2002-02-22 01:29:52 +00:00
Sebastian Bergmann
6a59c7fcd3
Maintain ZEND_CHANGES to account for the addition of private member variables.
2002-02-21 13:10:31 +00:00
Andi Gutmans
00e90f2ff3
- Experimental support for private members.
...
<?
class MyClass {
private $Hello = "Hello, World!\n";
function printHello()
{
print $this->Hello;
}
}
class MyClass2 extends MyClass {
function printHello()
{
MyClass::printHello(); /* Should print */
print $this->Hello; /* Shouldn't print out anything */
}
}
$obj = new MyClass();
print $obj->Hello; /* Shouldn't print out anything */
$obj->printHello(); /* Should print */
$obj = new MyClass2();
print $obj->Hello; /* Shouldn't print out anything */
$obj->printHello();
?>
2002-02-21 11:50:44 +00:00
37a929e5dd
ChangeLog update
2002-02-15 01:22:47 +00:00
Stanislav Malyshev
cefbdccb98
Pass TSRM to create_object
2002-02-14 09:20:51 +00:00
Andrei Zmievski
68a82f14a2
Fix the bug where the declared properties without init values were not
...
entered into the table.
2002-02-14 04:01:53 +00:00
6578efea09
ChangeLog update
2002-02-14 01:20:35 +00:00
Andi Gutmans
21b04ff2a6
@ Allow a series of consecutive catch() statements (Andi, Zend Engine)
...
<?php
class MyException1 {
}
class MyException2 {
}
try {
throw new MyException2();
} catch (MyException1 $m) {
print "Caught MyException1";
} catch (MyException2 $m) {
print "Caught MyException2";
}
2002-02-13 19:26:07 +00:00
3b01fd8973
Adding automagically updated ChangeLog.
2002-02-12 17:28:41 +00:00
Sebastian Bergmann
1fd542fd38
Export lex_scan(). Both the PHPDoc and tokenizer extension need this. I hope this is okay with Z&A.
2002-02-10 12:54:02 +00:00
Andi Gutmans
b04238698f
- Remove object debug messages.
2002-02-08 00:22:37 +00:00
Stanislav Malyshev
6608f07322
Mega-commit: Enter the new object model
...
Note: only standard Zend objects are working now. This is definitely going to
break custom objects like COM, Java, etc. - this will be fixed later.
Also, this may break other things that access objects' internals directly.
2002-02-07 14:08:43 +00:00
Andi Gutmans
8535164f21
- This small patch should also take care of allowing unseting of $this->foo
...
- and static members. The unset() opcode was luckily already suitable for
- object overloading.
2002-02-04 20:44:24 +00:00
Andi Gutmans
e366f5dbd8
- Fix problem with the objects_destructor called during shutdown. It was
...
- freeing objects from id 0 instead of id 1. id 0 is not used.
- Change isset/empty opcodes to support static members and the new way of
- doing $this->foobar. Also the opcodes operate now on the hash table
- combined with the variable names so that they can be overloaded by the
- soon to be added overloading patch.
2002-02-04 19:29:56 +00:00
Adam Dickmeiss
4935636521
Zend config sets ZEND_EXTRA_LIBS. Bugs 14452, 14602, 14616, 14824
2002-02-03 20:42:10 +00:00