Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21579 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31174 invoked by uid 1010); 19 Jan 2006 16:48:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31159 invoked from network); 19 Jan 2006 16:48:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2006 16:48:30 -0000 X-Host-Fingerprint: 213.136.52.68 mailgate-out2.mysql.com Linux 2.5 (sometimes 2.4) (4) Received: from ([213.136.52.68:36534] helo=mailgate.mysql.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 89/59-17857-CD2CFC34 for ; Thu, 19 Jan 2006 11:48:28 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.mysql.com (8.13.4/8.13.4) with ESMTP id k0JGmNaL002840; Thu, 19 Jan 2006 17:48:23 +0100 Received: from mail.mysql.com ([10.222.1.99]) by localhost (mailgate.mysql.com [10.222.1.98]) (amavisd-new, port 10026) with LMTP id 01803-03; Thu, 19 Jan 2006 17:48:23 +0100 (CET) Received: from [10.100.72.16] (10-100-72-16.mysql.internal [10.100.72.16]) by mail.mysql.com (8.13.3/8.13.3) with ESMTP id k0JGmGF7017749; Thu, 19 Jan 2006 17:48:17 +0100 Message-ID: <43CFC2CB.6020104@php.net> Date: Thu, 19 Jan 2006 17:48:11 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051219 SeaMonkey/1.0b MIME-Version: 1.0 To: Marco Kaiser CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mailgate.mysql.com Subject: Re: [PHP-DEV] 23 nothing is so as it seems, but why From: hartmut@php.net (Hartmut Holzgraefe) Marco Kaiser wrote: > Today during a session i had a strange "magic" feature found in php. > > $a = 10; > echo ++$a + $a++; > ?> there is a very simple rule that PHP inherited from C: never use pre- and postfix increment operators in the same expression as the results are undefined -- Hartmut Holzgraefe, Senior Support Engineer . MySQL AB, www.mysql.com