You are here: Re: [PHP] Re: Get name of extending class with static method call « PHP « IT news, forums, messages
Re: [PHP] Re: Get name of extending class with static method call

Posted by Jochem Maas on 09/30/11 11:05

darn, send button again!! (sent too early)

Jochem Maas wrote:
> Jason Barnett wrote:
>
>>>
>>
>> Indeed! I was actually quite surprised that this wasn't the way
>> __CLASS__ resolved... I had to code it to believe it (and I didn't
>> even do that until after you told us __CLASS__ didn't work!)
>>
>>>
>>> I would like to thank all of those that cared about my problem and
>>> tried to
>>> find a solution by providing a wide variety of ideas. Thank you very
>>> much!!!
>>>
>>>
>>> Do you think it would be wise to ask for help on php-dev?
>>
>>
>
> I'll put money on that they say "won't do it" and then tell you to read
> the archives of php-internals as to why.
>
> I originally hit this problem when I started to write a PHP5 based
> framework at the end of 2003. during the time since then I have
> watched/read quite a few threads on this subject.

my solution used call_user_func_array(), its relatively slow and a
****ing nightmare in terms of complexity.

>
> I strongly suggest you brew a big pot of coffee and sit down for a few
> (lots??) hours to read thru what has been discussed on php-internals,
> you might start with:

http://www.zend.com/lists/php-dev/200307/msg00242.html

basically, AFAIKR, the final answer was something along the lines of -
'your misusing the static class concept' (don't hold me to that tho!)

>
>>
>> Perhaps the way to go about this would be to make a "feature request"
>> on bugs.php.net? It does seem like something that should be a part of
>> the language.
>>
>>
>
>

 

Navigation:

[Reply to this 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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация