PHP 4.0 Bug #2846: PHP_VERSION and PHP_OS (and others ?) constants not initialized

From: Date: Sat, 27 Nov 1999 18:41:02 +0000
Subject: PHP 4.0 Bug #2846: PHP_VERSION and PHP_OS (and others ?) constants not initialized
Groups: php.dev 
Request: Send a blank email to php-dev+get-13187@lists.php.net to get a copy of this message
From: valero@ird.fr Operating system: WINNT4.SP4 PHP version: 4.0 Beta 3 PHP Bug Type: Scripting Engine problem Bug description: PHP_VERSION and PHP_OS (and others ?) constants not initialized 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.

« previous php.dev (#13187) next »