Re: [nyphp-talk] Turning on all warnings, error reporting, collecting debugging info ...

2008-08-18 Thread Daniel Convissor
Hi Michael: On Sun, Aug 17, 2008 at 04:55:12PM -0400, Michael B Allen wrote: > Currently I'm using the following: > error_reporting(E_ALL|E_STRICT); > at the top of my bootstrap. You should take a look at your php.ini file. It's cleaner to handle stuff like that in there. Check error_reporti

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-18 Thread Daniel Convissor
Hey Michael: On Sun, Aug 17, 2008 at 04:49:02PM -0400, Michael B Allen wrote: > > Is it ok to access non-existent array elements? It depends on how you define okay. :) You can do it. It will work reliably, but it produces notices (if you have errors displayed or logged). So, it's a bad prac

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-18 Thread Daniel Convissor
On Mon, Aug 18, 2008 at 01:09:18PM -0400, Kenneth Downs wrote: > David Mintz wrote: > >On Mon, Aug 18, 2008 at 8:51 AM, Kenneth Downs <[EMAIL PROTECTED] > >> wrote: > > > >function a(&$array, $key,$default='') { > > > >Does using an array reference &$array buy you any

Re: [nyphp-talk] Javascript Forum

2008-08-18 Thread Susan Shemin
www.javascript.com ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php

multilayered debugging (was Re: [nyphp-talk] FirePHP)

2008-08-18 Thread Marc Antony Vose
Just reading email now, five days later, and it kind of raises an interesting point for me. I don't really have much substantive to to address your questions; I had never heard of FirePHP until I saw it just now. However, it could be really beneficial for debugging situations like on a rid

[nyphp-talk] Javascript Forum

2008-08-18 Thread (Margaret) Michele Waldman
I've got a javascript - trigger execution - problem. Does anyone know of a good forum for javascript? Margaret Michele ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online h

Re: [nyphp-talk] Turning on all warnings, error reporting, collecting debugging info ...

2008-08-18 Thread David Krings
Ben Sgro wrote: I can't comment on vi + xdebug (im an emacs guys) but w/komodo & xdebug - what is so "impressive" is the ability for me to step through my code. Seems we are plugging our favourtite debuggers, but this and all the other pros mentioned in the original email also apply to DBG. I

Re: [nyphp-talk] Turning on all warnings, error reporting, collecting debugging info ...

2008-08-18 Thread Ben Sgro
I can't comment on vi + xdebug (im an emacs guys) but w/komodo & xdebug - what is so "impressive" is the ability for me to step through my code. Say I have a class that does a few SOAP requests - My client hits my service and all they get back is a 500. Great. How would I go about debugging th

Re: [nyphp-talk] Turning on all warnings, error reporting, collecting debugging info ...

2008-08-18 Thread Edward Potter
http://www.firephp.org/ :-) that should do it for you. On Sun, Aug 17, 2008 at 4:55 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: > Currently I'm using the following: > > error_reporting(E_ALL|E_STRICT); > > at the top of my bootstrap. > > Is there anything else I can do to increase warnings a

Re: [nyphp-talk] Turning on all warnings, error reporting, collecting debugging info ...

2008-08-18 Thread bzcoder
Michael B Allen wrote: I use vim with all the bells and whistles turned off so it doesn't sound like xdebug is going to do much for me. Vim + xdebug http://2bits.com/articles/using-vim-and-xdebug-dbgp-for-debugging-drupal-or-any-php-application.html

Re: [nyphp-talk] Turning on all warnings, error reporting, collecting debugging info ...

2008-08-18 Thread Michael B Allen
On Mon, Aug 18, 2008 at 10:40 AM, Mitch Pirtle <[EMAIL PROTECTED]> wrote: > On Sun, Aug 17, 2008 at 4:55 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: >> >> I think I had xdebug enabled on my old machine but I did not notice >> much of a difference aside from the appearance of stack traces. > > Xd

Re: [nyphp-talk] Turning on all warnings, error reporting, collecting debugging info ...

2008-08-18 Thread David Krings
Ben Sgro wrote: Right on - I use komodo IDE w/xdebug - I couldn't work without it. Especially developing "enterprise" level web applications. - Ben Same applies to the dbg debugger from NuSphere. Although not open-source it available for free use and many IDEs support it and some support bot

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-18 Thread Kenneth Downs
David Mintz wrote: On Mon, Aug 18, 2008 at 8:51 AM, Kenneth Downs <[EMAIL PROTECTED] > wrote: function a(&$array, $key,$default='') { if (isset($array[$key])) return $array[$key]; else return $default; } This allows you to code up simpler unc

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-18 Thread David Mintz
On Mon, Aug 18, 2008 at 8:51 AM, Kenneth Downs <[EMAIL PROTECTED]> wrote: > > function a(&$array, $key,$default='') { > if (isset($array[$key])) return $array[$key]; > else return $default; > } > > This allows you to code up simpler unconditional routines with code like: > > $value = a($myArray,

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-18 Thread Kenneth Downs
Michael B Allen wrote: On Mon, Aug 18, 2008 at 8:51 AM, Kenneth Downs <[EMAIL PROTECTED]> wrote: Michael B Allen wrote: I seem to recall getting a warning trying to access array elements that did not exist but I can't seem to trigger that issue right now. The following code: 'b');

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-18 Thread Michael B Allen
On Mon, Aug 18, 2008 at 8:51 AM, Kenneth Downs <[EMAIL PROTECTED]> wrote: > Michael B Allen wrote: >> >> I seem to recall getting a warning trying to access array elements >> that did not exist but I can't seem to trigger that issue right now. >> >> The following code: >> >> > $a = array('a' => '

Re: [nyphp-talk] Turning on all warnings, error reporting, collecting debugging info ...

2008-08-18 Thread Ben Sgro
Right on - I use komodo IDE w/xdebug - I couldn't work without it. Especially developing "enterprise" level web applications. - Ben Mitch Pirtle wrote: On Sun, Aug 17, 2008 at 4:55 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: I think I had xdebug enabled on my old machine but I did not n

Re: [nyphp-talk] Turning on all warnings, error reporting, collecting debugging info ...

2008-08-18 Thread Mitch Pirtle
On Sun, Aug 17, 2008 at 4:55 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: > > I think I had xdebug enabled on my old machine but I did not notice > much of a difference aside from the appearance of stack traces. Xdebug really shines when you are using an IDE that is trapping those errors like ec

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-18 Thread Artur Marnik
Hi Mike, and what is "quaternary predicate" ? I tried to google but couldn't find it the only thing I found was: "The &%Class of &%Predicates that require four arguments" but no examples Artur PS. This is my first post on this list - Welcome everybody :) Michael B Allen wrote: On Sun, Aug

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-18 Thread Kenneth Downs
Michael B Allen wrote: I seem to recall getting a warning trying to access array elements that did not exist but I can't seem to trigger that issue right now. The following code: 'b'); $result = $a['c']; var_dump($result); yields the following: $ php -f t.php Michael, I found the

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-18 Thread tedd
At 3:10 PM -0700 8/17/08, Kristina Anderson wrote: I've seen similar syntax before, in some code Tedd & I were working with a couple of months back...and just want to make sure I fully understand what is actually happening with it. -- Kristina: The Ternary Operator is the "?" -- it is simply s