2009/9/18 Ford, Mike <m.f...@leedsmet.ac.uk>:
>> -----Original Message-----
>> From: Richard Quadling [mailto:rquadl...@googlemail.com]
>> Sent: 18 September 2009 10:43
>
>>
>> Considering we have func_get_args(), maybe func_get_caller() would
>> be
>> a nice fit.
>>
>> I don't like the idea of a constant (CALLER) which changes value as
>> you move around the code. Quite obviously, it isn't constant!
>
> Well, that sounds like a pretty good definition of a "magic" constant, so 
> maybe __CALLER__ might be appropriate as well?
>
> Cheers!
>
> Mike
>  --
> Mike Ford,
> Electronic Information Developer, Libraries and Learning Innovation,
> Leeds Metropolitan University, C507, Civic Quarter Campus,
> Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom
> Email: m.f...@leedsmet.ac.uk
> Tel: +44 113 812 4730
>
>
>
>
>
> To view the terms under which this email is distributed, please go to 
> http://disclaimer.leedsmet.ac.uk/email.htm
>

Ah yes, those "magic" constants ... __CALLER__ would certainly be a good idea.

-- 
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to