Reply to Re: [PHP] Re: Get name of extending class with static method call

Your name:

Reply:


Posted by Torsten Roehr on 09/25/52 11:05

"Morten Rψnseth" <morten.ronseth@webfx.no> wrote in message
news:20050112134715.69463.qmail@pb1.pair.com...
> Hi,
>
> I just tried the example code at
> http://www.zend.com/lists/php-dev/200307/msg00244.html using PHP 5.0.3
>
> The backtrace doesn't see class b at all, all references to it have
> vanished into thin air.
>
> I spent days trying to solve this on my own until I happened upon this
> thread - it appears that there is no clean way of retrieving the name of
> the calling class, in a classmethod defined in the superclass. I do not
> want to overload the sperclass' method.
>
> I do not accept that this is misusing the static concept - without it,
> PHP 5 seems rather lame. How does one go about making a feature request?
> There has to be a way to get this implemented into PHP 5...
>
> Cheers,
> -Morten

Hi guys,

I guess it's time to risk asking on php-dev ;) I will try my luck. Let's see
what the gurus say!

Regards, Torsten

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация