Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56966 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61798 invoked from network); 20 Dec 2011 16:38:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2011 16:38:29 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:59520] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/3A-16374-40AB0FE4 for ; Tue, 20 Dec 2011 11:38:29 -0500 Received: by eeke51 with SMTP id e51so5984242eek.29 for ; Tue, 20 Dec 2011 08:38:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=rQlccgRVwcYmcnQTiwg4oRjzegCJ238umt/0zFDXUcM=; b=tGoKmANp/k4oJjE4kVWtI2HjTesL2divKO/i46fV9T96Oh3QpM8mi4TW9ScgxFlszR lQsy9iy58WKE0qNOWNB6w5MQaXZHGaLnw3qH4x3Gv0Jf+FDMHFBq0RhsjPvcfsfhVVUe DvAvLjzyuzKDAO3CacotKnBA9Cz/cOSMtc53k= Received: by 10.14.47.141 with SMTP id t13mr1216549eeb.89.1324399106279; Tue, 20 Dec 2011 08:38:26 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.213.10.20 with HTTP; Tue, 20 Dec 2011 08:37:46 -0800 (PST) In-Reply-To: References: <4EEF9C79.4090104@gmail.com> Date: Tue, 20 Dec 2011 17:37:46 +0100 X-Google-Sender-Auth: R3jPUInqjmoZ6LHAstVzcbWoL0Q Message-ID: To: Qiang Guo Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=90e6ba6150e245487104b488b2e5 Subject: Re: [PHP-DEV] Constant arrays From: jpauli@php.net (jpauli) --90e6ba6150e245487104b488b2e5 Content-Type: text/plain; charset=ISO-8859-1 I guess constant array would mean that all the variables inside the array dimensions should not change. Just saying that, is a nonsense. If a constant could be an array, then that array could not contain variables, if not it wouldn't be constant any more as a change to one variable inside it would change its own meaning value. Julien.P On Tue, Dec 20, 2011 at 1:28 AM, Qiang Guo wrote: > > Yes, I am wondering too. For mechanism you can refer to the source code, > and can someone explain why we cannot have constant arrays ? > > Qiang > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --90e6ba6150e245487104b488b2e5--