[Fwd: [PHP] Function / syntax varying from version to version?] -- CORRECTION

From: Date: Wed, 24 Jan 2001 22:20:39 +0000
Subject: [Fwd: [PHP] Function / syntax varying from version to version?] -- CORRECTION
Groups: php.general 
Request: Send a blank email to php-general+get-36502@lists.php.net to get a copy of this message
What I meant to say, was that the top snippet works in php 3.0.16 but does not work in php 4.0.3pl1 yet the bottom corrected snippet works fine. Question being... why the changes, and does anyone have any clues about this occuring? Sorry about that. :) -------- Original Message -------- Return-Path: php-general-return-36499-deaton=apollointeractive.com@lists.php.net Received: from toye.php.net (va.php.net [198.186.203.51])by dns.apolloi.com (8.9.3/8.9.3) with SMTP id OAA01626for <deaton@apollointeractive.com>; Wed, 24 Jan 2001 14:17:27 -0800 (PST)(envelope-from php-general-return-36499-deaton=apollointeractive.com@lists.php.net) Received: (qmail 9228 invoked by uid 1013); 24 Jan 2001 22:14:24 -0000 Mailing-List: contact php-general-help@lists.php.net; run by ezmlm Precedence: bulk list-help: <mailto:php-general-help@lists.php.net> list-unsubscribe: <mailto:php-general-unsubscribe@lists.php.net> list-post: <mailto:php-general@lists.php.net> Delivered-To: mailing list php-general@lists.php.net Received: (qmail 9222 invoked from network); 24 Jan 2001 22:14:24 -0000 Sender: root@dns.apolloi.com Message-ID: <3A6F5449.B6717BF7@apollointeractive.com> Date: Wed, 24 Jan 2001 14:16:41 -0800 From: Steven Deaton <deaton@apollointeractive.com> Organization: Apollo Interactive X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17-21mdksecure i686) X-Accept-Language: en MIME-Version: 1.0 To: php-general@lists.php.net Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [PHP] Function / syntax varying from version to version? X-Mozilla-Status: 8001 X-Mozilla-Status2: 00000000 X-UIDL: 1b26bb69bf17e49175b00f4e54bd6e53 Using the following snippet of code..... -------------------------------------- <?php class User { var $login = $REMOTE_USER; var $retval; -------------------------------------- works perfectly fine in PHP 3.0.16...yet.. this: -------------------------------------- <?php define("RUSER", $REMOTE_USER); class User { var $login = RUSER; # var $login = $REMOTE_USER; var $retval; -------------------------------------- does not work with PHP 4.0.3pl1. Any ideas anyone? Any help would be greatly appreciated. Thanks in advance... ---Steven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#36502) next »