[PHP-DEV] Bug #692: Cannot define constants on command line From: venaas <email protected>
Date: 08/25/98

From: venaas <email protected>
Operating system: Linux/Solaris
PHP version: 3.0.3
PHP Bug Type: Other
Bug description:
Since php-3.0RC5 it has not been possible to define
constants on the command line. I have the following
script:

[venaas <email protected> /tmp]$ cat phptest
#!/tmp/php -q
<?
        echo $a.":";
?>
[venaas <email protected> /tmp]$

With php-3.0RC5 I get

[venaas <email protected> /tmp]$ ./phptest a=5
:[venaas <email protected> /tmp]$

With RC4 I get

[venaas <email protected> /tmp]$ ./phptest a=5
5:[venaas <email protected> /tmp]$

This was on a Linux box, but the same happens on
Solaris. Both were compiled with

./configure --with-config-file-path=no --enable-debug=no --bindir=/tmp

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>