Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28248 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74595 invoked by uid 1010); 5 Mar 2007 21:34:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74576 invoked from network); 5 Mar 2007 21:34:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2007 21:34:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=brianm@dealnews.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=brianm@dealnews.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain dealnews.com designates 129.41.69.185 as permitted sender) X-PHP-List-Original-Sender: brianm@dealnews.com X-Host-Fingerprint: 129.41.69.185 smtp.dealnews.com Linux 2.5 (sometimes 2.4) (4) Received: from [129.41.69.185] ([129.41.69.185:35428] helo=smtp.dealnews.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/92-16561-7FC8CE54 for ; Mon, 05 Mar 2007 16:34:47 -0500 Received: (qmail 5111 invoked from network); 5 Mar 2007 16:34:45 -0500 Received: from unknown (HELO mail.dealnews.com) (10.1.1.7) by -H with (DHE-RSA-AES256-SHA encrypted) SMTP; 5 Mar 2007 16:34:45 -0500 Received: (qmail 18986 invoked from network); 5 Mar 2007 16:34:44 -0500 Received: from unknown (HELO ?10.1.6.4?) (brianm@71.31.236.178) by -H with ESMTPA; 5 Mar 2007 16:34:44 -0500 Message-ID: <45EC8CE9.8020807@dealnews.com> Date: Mon, 05 Mar 2007 15:34:33 -0600 User-Agent: Thunderbird 2.0b2 (Macintosh/20070116) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: The way the engine works? From: brianm@dealnews.com (Brian Moon) Ok, I am no C coder and I don't claim to be very smart about low level parts of PHP. But, IMO, this is bug. http://bugs.php.net/bug.php?id=36924 I have created a test script that shows the insanity of this bug: Now, you turn that into a script that is going to loop millions of times, building strings to build data and run for hours. The next thing you know, your cron job is using 450MB of memory and you try to figure out what YOU did wrong. Hours later you find this little jewel waiting for you and realize you did not do anything wrong. You just used the language. Everyone ignored my last email about memory waste and large arrays. I can only assume that you will ignore this one too. I am starting to see why Stefan became so bitter. I have always tried to squash the "myth" that putting variables inside strings in PHP was bad, but now, I think I will flip on that. I tested as far back as PHP 4.3.9 and as new as 5.2.1. -- Brian Moon ------------- http://dealnews.com/ It's good to be cheap =)