Bug #61378 [PATCH]: php -H doesn't work

From: Date: Tue, 13 Mar 2012 19:45:21 +0000
Subject: Bug #61378 [PATCH]: php -H doesn't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-168415@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61378&edit=1 ID: 61378 Patch added by: vrana@php.net Reported by: vrana@php.net Summary: php -H doesn't work Status: Open Type: Bug Package: CGI/CLI related Operating System: Irrelevant PHP Version: 5.4.0 Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: hide-args.patch Revision: 1331667921 URL: https://bugs.php.net/patch-display.php?bug=61378&patch=hide-args.patch&revision=1331667921 Previous Comments: ------------------------------------------------------------------------ [2012-03-13 19:44:54] vrana@php.net Description: ------------ php -H or php --hide-args should hide passed arguments from the running script but it does nothing. I've tried it on Windows and Linux. I think that this feature can be safely removed because it doesn't work for ages (at least since PHP 5.2.10 but probably longer) and I see only a little value in it. It is also the only undocumented option at http://php.net/features.commandline.options Test script: --------------- php -H argv.php a b argv.php: <?php print_r($argv); ?> Expected result: ---------------- Array ( ) Actual result: -------------- Array ( [0] => argv.php [1] => a [2] => b ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61378&edit=1

« previous php.bugs (#168415) next »