php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23569 Can't create object 1st & define class later in same file
Submitted: 2003-05-09 16:36 UTC Modified: 2003-06-01 13:16 UTC
From: php at electricsurfer dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5CVS-2003-05-09 (dev) OS: WIN XP PRO
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at electricsurfer dot com
New email:
PHP Version: OS:

 

 [2003-05-09 16:36 UTC] php at electricsurfer dot com
Can't create object 1st & define class later in same file
This worked in php4

Downloaded: php5-win32-200305061830.zip
Using as Apache Module

<?
$object = new myclass();
class myclass{}
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-01 13:16 UTC] helly@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

See #22503
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Aug 11 11:00:02 2025 UTC