|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesphd-ext-ternary.patch (last revision 2010-04-25 20:22 UTC by pmjones88 at gmail dot com)phd-ext.patch (last revision 2010-04-24 15:56 UTC by pmjones88 at gmail dot com) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-25 16:09 UTC] bjori@php.net
[2010-04-25 16:10 UTC] bjori@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: bjori
[2010-04-25 16:10 UTC] bjori@php.net
[2010-04-25 22:21 UTC] pmjones88 at gmail dot com
[2010-04-25 23:08 UTC] bjori@php.net
[2010-04-25 23:12 UTC] pmjones88 at gmail dot com
[2010-04-25 23:16 UTC] bjori@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 21:00:01 2025 UTC |
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.