summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tag 'php_4_3_0pre1'.php-4.3.0pre1SVN Migration2002-10-111-3055/+0
|
* MFZE1 zend_str_tolower issue.Ilia Alshanetsky2002-10-091-8/+8
|
* - Allow access to private/protected variables of $clone inside the __clone()Andi Gutmans2002-10-071-5/+37
| | | | | - method
* MFZE1Ilia Alshanetsky2002-09-261-8/+8
|
* - Fix leakAndi Gutmans2002-09-241-2/+2
|
* - Megapatch to try and support inheritance from sub-classes. Things mightAndi Gutmans2002-09-241-211/+116
| | | | | | - be *very* buggy now so don't get too upset if that happens. - I still need to improve some stuff but it's a good step (hopefully).
* whitespaceZeev Suraski2002-09-171-1/+0
|
* - Hopefully fix problem with __autoload not working well with inherited classes.Andi Gutmans2002-09-151-1/+9
| | | | | - There might still be some weird situations I haven't thought of.
* - WS - Always use "if (" and not "if("Andi Gutmans2002-09-151-5/+5
|
* quick-n-dirty inheritance support for __handlersStanislav Malyshev2002-09-051-0/+3
|
* Support for __get, __set and __call in classes.Stanislav Malyshev2002-09-041-4/+12
| | | | | | | This should work as follows: if class hasn't member with given name, __get/__set is called. If class has no method with given name, __call is called. __get/__set are not recursive, __call can be.
* MFZE1 (use token instead of global for opcode counting)Jason Greene2002-08-141-3/+2
|
* - Make new 'is' operator work with classes only and return false whenAndi Gutmans2002-08-081-10/+3
| | | | | - the object isn't of the said class or the value isn't an object.
* MFZE1 global declareJason Greene2002-07-301-1/+5
|
* Fix segfaultJason Greene2002-07-301-1/+1
|
* @- Adding 'is' operator that can be used to check the type of a variable,Andrei Zmievski2002-07-301-0/+22
| | | | | @ or its class. (Andrei)
* - Make sure classes are first looked for in the current scope.Andi Gutmans2002-07-271-1/+2
| | | | | | - Make sure that during inheritance the global scope is searched if the - current one doesn't work.
* - Fix bug reported by Sebastian where old constructors didn't work inAndi Gutmans2002-07-211-4/+15
| | | | | - nested classes.
* - Remove code which wasn't supposed to go into the patch.Andi Gutmans2002-07-171-3/+0
|
* - Rejuggle some code.Andi Gutmans2002-07-171-1/+4
|
* - Commit patch to support protected member variables (by Timm Friebe w/Andi Gutmans2002-07-151-24/+64
| | | | | | | | | - some fixes by me). - You can't access protected variables from outside the object. If you want - to see a protected member from your ancestors you need to declare the - member as protected in the class you want to use it in. You can't - redeclare a protected variable as private nor the other way around.
* - Nuke delete(). It was a big mistake to introduce it and I finallyAndi Gutmans2002-07-141-2/+1
| | | | | | | | - 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.
* - Fix bug when acccessing $this not in class scope.Andi Gutmans2002-07-011-8/+9
|
* - Revert previous fix.Andi Gutmans2002-06-291-3/+1
|
* - Change E_ERROR -> E_COMPILE_ERROR where needed.Andi Gutmans2002-06-291-13/+8
|
* - Fix for bug #17882. We complain if the same method is declared twice.Andi Gutmans2002-06-291-1/+3
|
* - Fix problem with constructor not being inherited and called correctly.Andi Gutmans2002-06-231-3/+12
|
* - Allow overloaded objects to receive the method name in its originalAndi Gutmans2002-06-051-2/+0
| | | | | - case.
* some type cleanup workHarald Radi2002-04-231-11/+11
|
* syncStanislav Malyshev2002-04-071-1/+1
|
* - revert patchDerick Rethans2002-03-291-3/+1
|
* - MFZE1Derick Rethans2002-03-251-1/+3
|
* - More fixes to check for member/function call legality.Andi Gutmans2002-03-181-1/+1
|
* - Start putting error handling where method calls are being used in aAndi Gutmans2002-03-171-4/+6
| | | | | - context where only writable variables should be used.
* - Fix issues with $this when using it by itself without indirection such asAndi Gutmans2002-03-151-9/+16
| | | | | - $this->foo.
* - Another couple of indirection fixes.Andi Gutmans2002-03-121-11/+9
| | | | | - Make class_entry->refcount be part of the structure and not allocated.
* - Fix bug introduced with latest class hash table change.Andi Gutmans2002-03-121-1/+1
|
* - make class tables contain class_entry *, not class_entryStanislav Malyshev2002-03-121-86/+98
| | | | | - fix isset($this)
* New stuff for objects API:Stanislav Malyshev2002-03-101-12/+113
| | | | | | - Better assignment handling - More flexible operations with zval-containing objects
* - Initial patch to support importing from class scopes (for Stig).Andi Gutmans2002-03-021-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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(); ?>
* - Remove use of C++ reserved words namespace/thisAndi Gutmans2002-03-011-14/+0
|
* - Fix bug in nested try/catch'sAndi Gutmans2002-03-011-0/+2
| | | | | - Infrastructure for implementing imports of methods.
* - Experimental support for private members.Andi Gutmans2002-02-211-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <? 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(); ?>
* Fix the bug where the declared properties without init values were notAndrei Zmievski2002-02-141-14/+18
| | | | | entered into the table.
* @ Allow a series of consecutive catch() statements (Andi, Zend Engine)Andi Gutmans2002-02-131-6/+7
| | | | | | | | | | | | | | | | | | | | <?php class MyException1 { } class MyException2 { } try { throw new MyException2(); } catch (MyException1 $m) { print "Caught MyException1"; } catch (MyException2 $m) { print "Caught MyException2"; }
* Mega-commit: Enter the new object modelStanislav Malyshev2002-02-071-3/+5
| | | | | | | 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.
* - Fix problem with the objects_destructor called during shutdown. It wasAndi Gutmans2002-02-041-10/+19
| | | | | | | | | - 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.
* - First destructor hell fix. There was a situation where an object'sAndi Gutmans2002-01-251-2/+2
| | | | | | | | | | - destructor could be run after its class was already dead. Right now - object destructors is the first thing whic happens during shutdown in - order to prevent this problem. It's very likely that destructors will - cause more grief and we'll have to outline exactly when you should use - them and what kind of logic you're allowed to do inside of them. - This bug was reported by sebastian.
* - Improve performance of functions that use $GLOBALS[]Andi Gutmans2002-01-201-12/+1
| | | | | - Please check this and make sure it doesn't break anything.
* - Change exception handling to use the Java-like catch(MyException $exception)Andi Gutmans2002-01-131-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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(); } ?>