]> granicus.if.org Git - php/commit
- Initial patch to support importing from class scopes (for Stig).
authorAndi Gutmans <andi@php.net>
Sat, 2 Mar 2002 20:38:52 +0000 (20:38 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 2 Mar 2002 20:38:52 +0000 (20:38 +0000)
commitb90d80b58806083ded586da0745f02b38d301819
tree052b205bd3fb76749def1abdfd3094fd022279aa
parentbc7e0b55121755e35e1a659e1d82822e3b7fcde8
- 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();
?>
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_execute.c
Zend/zend_globals.h
Zend/zend_language_parser.y
Zend/zend_language_scanner.l