Re: [fw-general] Idea: Zend_Debug::dump $label default to __FILE__

2007-07-19 Thread Shekar C Reddy
A small correction: $backTrace = debug_backtrace(); $label = $backTrace[ 0 ][ 'file' ] . ' ( ' . $backTrace[ 0 ]['line'] . ' )'; HTH On 6/18/07, Shekar C Reddy <[EMAIL PROTECTED]> wrote: $backTrace = debug_backtrace(); $label = $backTrace[ 1 ][ 'file' ] . ' ( ' . $backTrace[ 1 ]['l

Re: [fw-general] Idea: Zend_Debug::dump $label default to __FILE__

2007-06-17 Thread Shekar C Reddy
$backTrace = debug_backtrace(); $label = $backTrace[ 1 ][ 'file' ] . ' ( ' . $backTrace[ 1 ]['line'] . ' )'; HTH On 6/12/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: -- Nick Lo <[EMAIL PROTECTED]> wrote (on Wednesday, 13 June 2007, 01:28 PM +1000): > One of the pains of using

Re: [fw-general] Idea: Zend_Debug::dump $label default to __FILE__

2007-06-17 Thread till
Hi, On 6/17/07, oetting <[EMAIL PROTECTED]> wrote: I think it is a good idea though. It would be possible to achieve this by popping somthing out of debug_backtrace() within the dump function. Or maybe it would be even better to implement a logger in the first case. ;-) It's a painful lesso

Re: [fw-general] Idea: Zend_Debug::dump $label default to __FILE__

2007-06-16 Thread oetting
I think it is a good idea though. It would be possible to achieve this by popping somthing out of debug_backtrace() within the dump function. Jacob Nick Lo-2 wrote: > > On 13/06/2007, at 1:43 PM, Matthew Weier O'Phinney wrote: > >> -- Nick Lo <[EMAIL PROTECTED]> wrote >> (on Wednesday, 13 Ju

Re: [fw-general] Idea: Zend_Debug::dump $label default to __FILE__

2007-06-12 Thread Nick Lo
On 13/06/2007, at 1:43 PM, Matthew Weier O'Phinney wrote: -- Nick Lo <[EMAIL PROTECTED]> wrote (on Wednesday, 13 June 2007, 01:28 PM +1000): One of the pains of using print_r() or var_dump() is the hunt to find the ones you forget to remove or edit out. With Zend_Debug::dump() the additional $l

Re: [fw-general] Idea: Zend_Debug::dump $label default to __FILE__

2007-06-12 Thread Matthew Weier O'Phinney
-- Nick Lo <[EMAIL PROTECTED]> wrote (on Wednesday, 13 June 2007, 01:28 PM +1000): > One of the pains of using print_r() or var_dump() is the hunt to find > the ones you forget to remove or edit out. With Zend_Debug::dump() > the additional $label parameter allows you to go... > > Zend_Debug($

[fw-general] Idea: Zend_Debug::dump $label default to __FILE__

2007-06-12 Thread Nick Lo
One of the pains of using print_r() or var_dump() is the hunt to find the ones you forget to remove or edit out. With Zend_Debug::dump() the additional $label parameter allows you to go... Zend_Debug($wotsit, __FILE__); ...but only if you specify it. I wondered since unless given a value $