Req #51654 [NEW]: Add --ext command line option to specify filename extension

From: Date: Sat, 24 Apr 2010 15:55:29 +0000
Subject: Req #51654 [NEW]: Add --ext command line option to specify filename extension
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4225@lists.php.net to get a copy of this message
From: Operating system: Mac OS X 10.6.3 PHP version: 5.3.2 Package: Doc Build problem Bug Type: Feature/Change Request Bug description:Add --ext command line option to specify filename extension Description: ------------ Patch Narrative =============== This patch allows the user to pass a --ext option at the command line to specify an alternative file extension. This mimics the XSL param html.ext available when using xsltproc. The user can specify that no extension be used by passing with --ext=false, or the alternative extension to be used with --ext=".foo". (Note that the dot is part of the value.) Not passing --ext, or passing --ext=true, results in using the default extension. I have successfully built Chunked XHTML with this patch in place. Patch Summary ============= - Changed all variations of '.' . $this->ext to $this->ext. - Changed all variations of '.' . $this->getExt() to $this->getExt(). - Added --ext and -e as options, with requisite functions in BuildOptionsParser and array element in Config. - Changed all $this->setExt("ext") calls to use a ternary; it sets the alternative extension when --ext is specified, and sets the default package extension otherwise. -- Edit bug report at http://bugs.php.net/bug.php?id=51654&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51654&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51654&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51654&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51654&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51654&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51654&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51654&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51654&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51654&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51654&r=support Expected behavior: http://bugs.php.net/fix.php?id=51654&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51654&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51654&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51654&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51654&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51654&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51654&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51654&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51654&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51654&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51654&r=mysqlcfg

« previous php.doc.bugs (#4225) next »