Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7277 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74598 invoked by uid 1010); 22 Jan 2004 16:58:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74540 invoked from network); 22 Jan 2004 16:58:16 -0000 Received: from unknown (HELO sapo.pt) (212.55.154.24) by pb1.pair.com with SMTP; 22 Jan 2004 16:58:16 -0000 Received: (qmail 3164 invoked by uid 0); 22 Jan 2004 16:03:35 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.153) by relay4 with SMTP; 22 Jan 2004 16:03:35 -0000 Received: (qmail 25151 invoked by uid 0); 22 Jan 2004 16:03:20 -0000 Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.154.88]) (envelope-sender ) by mta3 (qmail-ldap-1.03) with SMTP for ; 22 Jan 2004 16:03:20 -0000 Message-ID: <00de01c3e101$88f72120$0100a8c0@pc07653> To: Date: Thu, 22 Jan 2004 16:05:20 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: php 5 bug? From: nlopess@php.net ("Nuno Lopes") Hello, I don't know if this is a bug or a feature, but... The code below works with PHP 4, but gives an error in PHP 5. Nuno -------------------------------- func(); class test { function func() { echo 'test'; } } ?> ------------------- PHP 4: test ------------------- PHP 5: Fatal error: Class 'test' not found in C:\...\bug.php on line 2