php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #51654
Patch phd-ext-ternary.patch revision 2010-04-25 20:22 UTC by pmjones88 at gmail dot com
Patch phd-ext.patch revision 2010-04-24 15:56 UTC by pmjones88 at gmail dot com

Patch phd-ext-ternary.patch for Doc Build problem Bug #51654

Patch version 2010-04-25 20:22 UTC

Return to Bug #51654 | Download this patch
Patch Revisions:

Developer: pmjones88@gmail.com

Index: phpdotnet/phd/Package/IDE/Funclist.php
===================================================================
--- phpdotnet/phd/Package/IDE/Funclist.php	(revision 298555)
+++ phpdotnet/phd/Package/IDE/Funclist.php	(working copy)
@@ -17,7 +17,7 @@
 
     public function __construct() {
         $this->registerFormatName("IDE-Funclist");
-        $this->setExt(Config::ext() ?: ".txt");
+        $this->setExt(Config::ext() === null ? ".txt" : Config::ext());
     }
 
     public function createLink($for, &$desc = null, $type = Format::SDESC) {}
Index: phpdotnet/phd/Package/IDE/Functions.php
===================================================================
--- phpdotnet/phd/Package/IDE/Functions.php	(revision 298555)
+++ phpdotnet/phd/Package/IDE/Functions.php	(working copy)
@@ -75,7 +75,7 @@
 
     public function __construct() {
         $this->registerFormatName("IDE-Functions");
-        $this->setExt(Config::ext() ?: ".xml");
+        $this->setExt(Config::ext() === null ? ".xml" : Config::ext());
     }
 
     public function createLink($for, &$desc = null, $type = Format::SDESC) {}
Index: phpdotnet/phd/Package/PEAR/Web.php
===================================================================
--- phpdotnet/phd/Package/PEAR/Web.php	(revision 298555)
+++ phpdotnet/phd/Package/PEAR/Web.php	(working copy)
@@ -19,7 +19,7 @@
     {
         parent::__construct();
         $this->registerFormatName('PEAR-Web');
-        $this->setExt(Config::ext() ?: 'php');
+        $this->setExt(Config::ext() === null ? 'php' : Config::ext());
     }
 
     public function __destruct()
Index: phpdotnet/phd/Package/PEAR/BigXHTML.php
===================================================================
--- phpdotnet/phd/Package/PEAR/BigXHTML.php	(revision 298555)
+++ phpdotnet/phd/Package/PEAR/BigXHTML.php	(working copy)
@@ -7,7 +7,7 @@
         parent::__construct();
         $this->registerFormatName("PEAR-BigXHTML");
         $this->setTitle("PEAR Manual");
-        $this->setExt(Config::ext() ?: ".html");
+        $this->setExt(Config::ext() === null ? ".html" : Config::ext());
         $this->setChunked(false);
     }
 
Index: phpdotnet/phd/Package/PEAR/ChunkedXHTML.php
===================================================================
--- phpdotnet/phd/Package/PEAR/ChunkedXHTML.php	(revision 298555)
+++ phpdotnet/phd/Package/PEAR/ChunkedXHTML.php	(working copy)
@@ -7,7 +7,7 @@
         parent::__construct();        
         $this->registerFormatName("PEAR-Chunked-XHTML");
         $this->setTitle("PEAR Manual");
-        $this->setExt(Config::ext() ?: ".html");
+        $this->setExt(Config::ext() === null ? ".html" : Config::ext());
         $this->setChunked(true);
     }
 
Index: phpdotnet/phd/Package/PHP/KDevelop.php
===================================================================
--- phpdotnet/phd/Package/PHP/KDevelop.php	(revision 298555)
+++ phpdotnet/phd/Package/PHP/KDevelop.php	(working copy)
@@ -70,7 +70,7 @@
         parent::__construct();
         $this->registerFormatName("PHP-KDevelop");
         $this->setTitle("PHP Manual");
-        $this->setExt(Config::ext() ?: ".php");
+        $this->setExt(Config::ext() === null ? ".php" : Config::ext());
     }
 
     public function __destruct() {
Index: phpdotnet/phd/Package/PHP/Web.php
===================================================================
--- phpdotnet/phd/Package/PHP/Web.php	(revision 298555)
+++ phpdotnet/phd/Package/PHP/Web.php	(working copy)
@@ -8,7 +8,7 @@
         $this->registerFormatName("PHP-Web");
         $this->setTitle("PHP Manual");
         $this->setChunked(true);
-        $this->setExt(Config::ext() ?: ".php");
+        $this->setExt(Config::ext() === null ? ".php" : Config::ext());
     }
 
     public function close() {
Index: phpdotnet/phd/Package/PHP/ChunkedXHTML.php
===================================================================
--- phpdotnet/phd/Package/PHP/ChunkedXHTML.php	(revision 298555)
+++ phpdotnet/phd/Package/PHP/ChunkedXHTML.php	(working copy)
@@ -8,7 +8,7 @@
     public function __construct() {
         parent::__construct();
         $this->registerFormatName("PHP-Chunked-XHTML");
-        $this->setExt(Config::ext() ?: ".html");
+        $this->setExt(Config::ext() === null ? ".html" : Config::ext());
     }
 
     public function __destruct() {
Index: phpdotnet/phd/Package/PHP/Functions.php
===================================================================
--- phpdotnet/phd/Package/PHP/Functions.php	(revision 298555)
+++ phpdotnet/phd/Package/PHP/Functions.php	(working copy)
@@ -46,7 +46,7 @@
 
         $this->registerFormatName("PHP-Functions");
         $this->setTitle("PHP Manual");
-        $this->setExt(Config::ext() ?: ".3.gz");
+        $this->setExt(Config::ext() === null ? ".3.gz" : Config::ext());
         $this->setChunked(true); 
         $this->dchunk = array_merge(parent::getDefaultChunkInfo(), static::getDefaultChunkInfo());
     }
Index: phpdotnet/phd/Package/Generic/PDF.php
===================================================================
--- phpdotnet/phd/Package/Generic/PDF.php	(revision 298555)
+++ phpdotnet/phd/Package/Generic/PDF.php	(working copy)
@@ -298,7 +298,7 @@
 
     public function __construct() {
         parent::__construct();
-        $this->setExt(Config::ext() ?: ".pdf");
+        $this->setExt(Config::ext() === null ? ".pdf" : Config::ext());
         $this->pdfDoc = new PdfWriter(); 
     }
 
Index: phpdotnet/phd/Package/Generic/TocFeed.php
===================================================================
--- phpdotnet/phd/Package/Generic/TocFeed.php	(revision 298555)
+++ phpdotnet/phd/Package/Generic/TocFeed.php	(working copy)
@@ -138,7 +138,7 @@
         $this->registerFormatName($this->formatName);
         $this->setTitle('Index');
         $this->setChunked(true);
-        $this->setExt(Config::ext() ?: ".atom");
+        $this->setExt(Config::ext() === null ? ".atom" : Config::ext());
         $this->date = date('c');
         if ($this->feedBaseUri === null) {
             $this->feedBaseUri = $this->targetBaseUri;
Index: phpdotnet/phd/Package/Generic/XHTML.php
===================================================================
--- phpdotnet/phd/Package/Generic/XHTML.php	(revision 298555)
+++ phpdotnet/phd/Package/Generic/XHTML.php	(working copy)
@@ -448,7 +448,7 @@
     public function __construct() {
         parent::__construct();
         $this->registerPIHandlers($this->pihandlers);
-        $this->setExt(Config::ext() ?: ".html");
+        $this->setExt(Config::ext() === null ? ".html" : Config::ext());
     }
     
     public function getDefaultElementMap() {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC