diff options
| author | Andi Gutmans <andi@php.net> | 2002-02-21 11:50:44 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2002-02-21 11:50:44 +0000 |
| commit | 00e90f2ff3053a0cca50514bd17a036af5b5dac5 (patch) | |
| tree | 46d7374f8d267b63e2dbc468e7aa81e29ddce957 /Zend/zend_object_handlers.c | |
| parent | 15daf9928819f213c331c8fd6fe4412be703b8bd (diff) | |
| download | php-git-00e90f2ff3053a0cca50514bd17a036af5b5dac5.tar.gz | |
- 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();
?>
Diffstat (limited to 'Zend/zend_object_handlers.c')
| -rw-r--r-- | Zend/zend_object_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 44d2526326..9db2cbce5a 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -5,7 +5,7 @@ #include "zend_objects.h" #include "zend_object_handlers.h" -#define DEBUG_OBJECT_HANDLERS 1 +#define DEBUG_OBJECT_HANDLERS 0 static HashTable *zend_std_get_properties(zval *object TSRMLS_DC) { |
