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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
35 - 10 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 22:01:31 2024 UTC