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:
[EMAIL PROTECTED]
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
<[EMAIL PROTECTED]>; Wed, 24 Jan 2001 14:17:27 -0800
(PST)(envelope-from
[EMAIL PROTECTED])
Received: (qmail 9228 invoked by uid 1013); 24 Jan 2001 22:14:24 -0000
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 9222 invoked from network); 24 Jan 2001 22:14:24 -0000
Sender: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 24 Jan 2001 14:16:41 -0800
From: Steven Deaton <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]