[nycphp-talk] PHP 4 Constructor Weirdness

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

echos -- blech

single-step through your code using a debugger

-----Original Message-----
From: talk-bounces at [mailto:talk-bounces at]
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 ;-)

- Jay

Chris wrote:
>False assumptions form the basis of many programming errors. I'd
>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

NYPHPCon 2006 Presentations Online

Show Your Participation in New York PHP

More information about the talk mailing list