Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97817 invoked by uid 1010); 18 Jan 2007 14:06:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 97802 invoked from network); 18 Jan 2007 14:06:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jan 2007 14:06:14 -0000 Authentication-Results: pb1.pair.com header.from=diogin@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=diogin@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.246.251 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: diogin@gmail.com X-Host-Fingerprint: 72.14.246.251 ag-out-0708.google.com Received: from [72.14.246.251] ([72.14.246.251:55337] helo=ag-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/B2-16601-5DE7FA54 for ; Thu, 18 Jan 2007 09:06:14 -0500 Received: by ag-out-0708.google.com with SMTP id 31so195038agc for ; Thu, 18 Jan 2007 06:06:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Rb7ZkJrS0aSVj4ILHaksmBvJ+VzM4WXeYVb6egNyxJP9UsHC5ahTDAP9ct2nFtP9kDUGA6mW+/oxk2+1fy97owkufCY/RwtVVwZ70E/LZDsQFsWSHmZDsh0l8cM2JjkJRtABy7mSgQnXlXIZEL6FkJf6CfumyNJ00AWkxNNLBCg= Received: by 10.90.87.5 with SMTP id k5mr1242482agb.1169129171301; Thu, 18 Jan 2007 06:06:11 -0800 (PST) Received: by 10.90.95.10 with HTTP; Thu, 18 Jan 2007 06:06:11 -0800 (PST) Message-ID: Date: Thu, 18 Jan 2007 22:06:11 +0800 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_131000_2872102.1169129171132" Subject: Problems on PHP5 object instantiation From: diogin@gmail.com ("Jingcheng Zhang") ------=_Part_131000_2872102.1169129171132 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm now trying OOP in PHP5, and enjoy it very much. However, as we know PHP5 does not allow compile-time instantiation, so when I try this script: it ends up with a parse error, while in Java it works naturally. I wonder whether there are some difficulties on implementing this feature, or, is it just not the natural way? Thanks :) -- Best regards, Jingcheng Zhang Room 304, Dormitory 26 of Yuquan Campus, Zhejiang University P.R.China ------=_Part_131000_2872102.1169129171132--