NYCPHP Meetup

[nycphp-talk] PHP 4 Constructor Weirdness

Cliff Hirsch cliff at pinestream.com
Mon Jan 8 13:35:13 EST 2007


echos -- blech

single-step through your code using a debugger

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Jay Sheth
Sent: Monday, January 08, 2007 1:27 PM
To: NYPHP Talk
Subject: [nycphp-talk] PHP 4 Constructor Weirdness

Hi Chris and Scott,
thanks for the quick replies. You're both right. I should've tested it
with an echo inside of def().
I'd simplified this as a test case from a larger problem I'd seen, and
*assumed* I'd found the right answer. So much for making untested
assumptions, as Chris said ;-)

Regards,
- Jay

Chris wrote:
>False assumptions form the basis of many programming errors. I'd
suggest
>that you first verify your assumptions. Are you sure the def() method
>being called? If it is, that's insane, but I bet it's not. :-)
_______________________________________________
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




More information about the talk mailing list