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

2005-01-12 Thread Morten Rønseth
Jochem Maas wrote: Mehdi Achour wrote: Because it's a change, that should be reverted, or documented. don't top post - its bad form and many people ignore topposts. Mehdi is right to say that debug_backtrace() has changed - but so has the whole engine - I don't think that function was ever meant

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

2005-01-12 Thread Morten Rønseth
Jochem Maas wrote: Morten Rønseth wrote: 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. as a side note - using a function

Re: [PHP] Checking if

2005-01-12 Thread Morten Rønseth
Bruno B B Magalhães wrote: Richard, my solution right know is: if(substr($url,-1) != '/') { $url = $url.'/'; } Simple and fast... :) $url = preg_replace ("|^(.*)/?$|", "\\1/", $url); Regards, Bruno B B Magalhaes On Jan 12, 2005, at 3:37 PM, Richard Lynch wrote: Bruno B B Magalhães wrote: how

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

2005-01-12 Thread Morten Rønseth
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 tha

[PHP] Inheritance & overriding methods

2002-04-11 Thread Morten Rønseth
Hi, The subject says it all, really, I need to be able to override a superclass method AND also call the super's method in a way so that IN the super's method "$this" will refer to the original object, as follows: doit (); print (get_class ($this)); } } $b = new B (); $b->doit ();

[PHP] Tracing

2001-01-26 Thread Morten Rønseth
Hi, Is there any way to do a stack crawl/trace when an error occurs? Today, I only get the line in the script in which the error occured, but I have to put on my Sherlock habit in order to find the actual sequence of avents that led up to the error Cheers, -Morten