Bug #18343 Updated: [RH Bug 68798] php command shell -c option parser and doco inaccurate

From: Date: Mon, 15 Jul 2002 21:33:01 +0000
Subject: Bug #18343 Updated: [RH Bug 68798] php command shell -c option parser and doco inaccurate
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14242@lists.php.net to get a copy of this message
ID: 18343 Updated by: edink@php.net Reported By: herrold@owlriver.com -Status: Open +Status: Feedback Bug Type: PHP options/info functions Operating System: Red Hat Linux 7.3, and Rawhide PHP Version: 4.2.1 New Comment: No still not enough info. Are you talking about shebang line for your command line scripts? #!/usr/bin/php or command line like php -c ... Previous Comments: ------------------------------------------------------------------------ [2002-07-15 17:01:21] herrold@owlriver.com If you cannot be bothered to click a link to see the details behind the Executive Summary, and your 'sniper' function is so hot to close a bug, I guess I wonder if you really want to fix the bug, or close the bug report. Your close itself is Bogus -- the cited URL does NOT begin suggest that you are unwilling to read reports with detail, summarized here. Indeed one strength of a web tracker is the ability to see the error in context. --------------------------- Since you cannot be bothers, here it is in summary form: 1. The option description for the -c option at: http://www.php.net/manual/en/features.commandline.php suggest that the interperter permits a space between the -c and the arguemnt -- It does NOT and the presence of such a space causes subtle errors (vis., it does not stat the file, and skips the -c option calue directory or file). ---------- 2. A trim() in the option parser leg on the object for the -c path will solve the problem. ---------- 00 -- specific enough? -- Russ herrold ------------------------------------------------------------------------ [2002-07-15 03:53:09] sniper@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-07-14 21:07:34] herrold@owlriver.com I have 150 material lines of analysis of a doco bug in the php command shell option parser, and related doco at: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=68798 Executive Summary -- the PHP.NET web doco is inaccurate, and the option parser of the -c option needs to so a trim() on the option text before applying it. Failure to do so causes the load of the php.ini options to be skipped in the command line mode. This in turn causes subtle and hard to diagnose errors. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18343&edit=1

« previous php.bugs (#14242) next »