RE: [PHP] Unexpected behaviuor with __CLASS__

2004-06-17 Thread Rick Fletcher
> on RedHat with PHP 4.3.6 the following code produces 'test' - > I'm expecting > 'test2': > > class test { > function printClass() { > echo __CLASS__; > } > } > > class test2 extends test { > } > > test2::printClass(); > > > I would like to get/echo the name of the class call

Re: [PHP] Unexpected behaviuor with __CLASS__

2004-06-16 Thread Torsten Roehr
"Robin Vickery" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 16 Jun 2004 11:49:31 +0200, Torsten Roehr <[EMAIL PROTECTED]> wrote: > > > > Hi list, > > > > on RedHat with PHP 4.3.6 the following code produces 'test' - I'm expecting > > 'test2': > > > > class test { > > f

Re: [PHP] Unexpected behaviuor with __CLASS__

2004-06-16 Thread Robin Vickery
On Wed, 16 Jun 2004 11:49:31 +0200, Torsten Roehr <[EMAIL PROTECTED]> wrote: > > Hi list, > > on RedHat with PHP 4.3.6 the following code produces 'test' - I'm expecting > 'test2': > > class test { > function printClass() { > echo __CLASS__; > } > } > > class test2 extends test

[PHP] Unexpected behaviuor with __CLASS__

2004-06-16 Thread Torsten Roehr
Hi list, on RedHat with PHP 4.3.6 the following code produces 'test' - I'm expecting 'test2': class test { function printClass() { echo __CLASS__; } } class test2 extends test { } test2::printClass(); I would like to get/echo the name of the class calling the method - in my ca