| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
@ or its class. (Andrei)
|
|
|
|
|
|
|
|
| |
- global function information because it wasn't available. We have to do
- an additional assignment per-function call so that it'll be available.
- Also don't define the global scope as function name _main_ but leave it
- empty so that frameworks like Pear can decide what they want to do.
|
|
|
|
|
|
|
|
| |
- understand why Java didn't do so.
- If you still want to control destruction of your object then either make
- sure you kill all references or create a destruction method which you
- call yourself.
|
| |
|
|
|
|
|
| |
- Thanks to Timm Friebe for diving into this one.
|
| |
|
|
|
|
|
|
| |
- Reapply a tiny optimization to the allocator so that in non-debug mode
- we clean memory without detecting leaks.
|
|
|
|
|
|
|
| |
- certain values by reference.
- We still need to find a solution for cases when this shouldn't be allowed
- as it might cause leaks.
|
| |
|
|
|
|
|
|
| |
- Start centralizing main class lookups. This will help implement
- __autload()
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- case.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
There are still a few problems such as includes and calling other functions
from internal functions which aren't seen (will have to think if and how to
fix this).
Also the main scripts filename isn't available. Need to think about that.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- correctly to the scope of the functions class.
<?php
function Hello()
{
print "Wrong one\n";
}
class MyClass {
static $hello = "Hello, World\n";
function Hello()
{
print self::$hello;
}
function Trampoline()
{
Hello();
}
}
import function Trampoline from MyClass;
Trampoline();
?>
|
|
|
|
|
| |
- $this->foo.
|
| |
|
| |
|
|
|
|
|
| |
- fix isset($this)
|
| |
|
|
|
|
|
|
| |
- Better assignment handling
- More flexible operations with zval-containing objects
|
|
|
|
|
|
|
|
|
|
|
|
| |
<?php
class MyOuterClass {
const Hello = "Hello, World\n";
}
import const Hello from MyOuterClass;
print Hello;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
<?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();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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();
?>
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
- and static members. The unset() opcode was luckily already suitable for
- object overloading.
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
|
| |
- Please check this and make sure it doesn't break anything.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- semantics. Example:
<?php
class MyException {
function __construct($exception)
{
$this->exception = $exception;
}
function Display()
{
print "MyException: $this->exception\n";
}
}
class MyExceptionFoo extends MyException {
function __construct($exception)
{
$this->exception = $exception;
}
function Display()
{
print "MyException: $this->exception\n";
}
}
try {
throw new MyExceptionFoo("Hello");
} catch (MyException $exception) {
$exception->Display();
}
?>
|
| |
|
| |
|
|
|
|
|
| |
- Fix a bug which I introduced a couple of months ago
|
|
|
|
|
| |
- lookups.
|
| |
|
|
|
|
|
|
| |
- Significantly improve performance of function calls by moving lowercasing
- the function name to compile-time when possible.
|
|
|
|
|
| |
- opcodes.
|
|
|
|
|
| |
exposing zend_zval_type_name().
|
|
|
|
|
| |
- Fix two compile warnings
|
| |
|