Date: 08/20/01
- Next message: xsopas <email protected>: "[PHP-DEV] Bug #12851: PHP sobre WinME"
- Previous message: Caffeinate The World: "[PHP-DEV] pmap_page_protect: wired mapping for 677a000 not removed"
- Next in thread: ssb <email protected>: "[PHP-DEV] Bug #12850 Updated: May a feature to add?"
- Reply: ssb <email protected>: "[PHP-DEV] Bug #12850 Updated: May a feature to add?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: al <email protected>
Operating system: Red Hat
PHP version: 4.0.4pl1
PHP Bug Type: Class/Object related
Bug description: May a feature to add?
Hi,
here is a tricky thing using the parent:: keyword:
There seems to be no way to call a parent function out of a
parent function!
<?php
class test {
function test1(){
echo "parent:test1<br>";
}
function test2(){
echo "parent:test2<br>";
$this->test1();
}
}
class sub extends test {
function test1(){
echo "sub:test1<br>";
}
function test2(){
echo "sub:test2<br>";
parent::test2();
}
}
$a = new sub();
$a->test2();
?>
returns:
sub:test2
parent:test2
sub:test1
Greetings,
Alex
-- Edit bug report at: http://bugs.php.net/?id=12850&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: xsopas <email protected>: "[PHP-DEV] Bug #12851: PHP sobre WinME"
- Previous message: Caffeinate The World: "[PHP-DEV] pmap_page_protect: wired mapping for 677a000 not removed"
- Next in thread: ssb <email protected>: "[PHP-DEV] Bug #12850 Updated: May a feature to add?"
- Reply: ssb <email protected>: "[PHP-DEV] Bug #12850 Updated: May a feature to add?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

