php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2846 PHP_VERSION and PHP_OS (and others ?) constants not initialized
Submitted: 1999-11-27 19:41 UTC Modified: 2000-01-07 06:18 UTC
From: valero at ird dot fr Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 3 OS: WINNT4.SP4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: valero at ird dot fr
New email:
PHP Version: OS:

 

 [1999-11-27 19:41 UTC] valero at ird dot fr
This script :
:<HTML> 
:<HEAD>
:<TITLE></TITLE>
:</HEAD>
:<BODY>
:<P>
:<SCRIPT LANGUAGE="php">
:	$normal_variable = 'normal_var';
:	define( 'NORMAL__CONSTANT', 'NORMAL_CONST' );
:
:	printf ( 'normal_variable = %s - ', $normal_variable ) ;
:	printf ( 'NORMAL_CONSTANT = %s - ',  NORMAL_CONSTANT );
:	printf ( 'PHP_VERSION     = %s - ',  PHP_VERSION     );
:	printf ( '__FILE__        = %s - ',  __FILE__        );
:	phpinfo();
:</SCRIPT>
:</P>
:</BODY>
:</HTML>


..produces the following output :

>normal_variable = normal_var - NORMAL_CONSTANT = NORMAL_CONSTANT - PHP_VERSION = PHP_VERSION - >__FILE__ = d:\tv\tagc\2.php3 - 
>
>                                                    PHP Version 4.0b3
>
>
>System: Windows NT 4.0 build 1381
>Build Date: Nov 18 1999 
>php.ini path: php.ini
>ZEND_DEBUG=0
>ZTS is defined
>This program makes use of the Zend scripting language engine:
>
>Zend Engine v0.90, Copyright (c) 1998, 1999 Andi Gutmans, Zeev Suraski

>etc.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-01-07 06:18 UTC] sas at cvs dot php dot net
Fixed in CVS. Thanks for your report.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 19:01:35 2025 UTC