php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #72095
Patch phpdoc-glob_brace_alpine-linux.patch revision 2016-04-24 13:45 UTC by rogeriopradoj at gmail dot com

Patch phpdoc-glob_brace_alpine-linux.patch for Doc Build problem Bug #72095

Patch version 2016-04-24 13:45 UTC

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

Developer: rogeriopradoj@gmail.com

Index: configure.php
===================================================================
--- configure.php	(revision 339078)
+++ configure.php	(working copy)
@@ -570,7 +570,7 @@
         }
         $globdir .= "/*/*/versions.xml";
     }
-    foreach(glob($globdir, GLOB_BRACE) as $file) {
+    foreach(glob($globdir, defined('GLOB_BRACE') ? GLOB_BRACE : 0) as $file) {
         if($tmp->load($file)) {
             foreach($tmp->getElementsByTagName("function") as $function) {
                 $function = $dom->importNode($function, true);
Index: scripts/check-references.php
===================================================================
--- scripts/check-references.php	(revision 339078)
+++ scripts/check-references.php	(working copy)
@@ -400,7 +400,7 @@
 $counts = array("refs" => 0, "types" => 0, "arg_counts" => 0, "return" => 0);
 $extension_dir = (isset($extension) ? basename($extension) : "*");
 $reference_path = "$phpdoc_dir/reference/" . (isset($extension_mapping[$extension_dir]) ? $extension_mapping[$extension_dir] : $extension_dir);
-foreach (array_merge(glob("$reference_path/*/*.xml", GLOB_BRACE), glob("$reference_path/*/*/*.xml", GLOB_BRACE)) as $filename) {
+foreach (array_merge(glob("$reference_path/*/*.xml", defined('GLOB_BRACE') ? GLOB_BRACE : 0), glob("$reference_path/*/*/*.xml", defined('GLOB_BRACE') ? GLOB_BRACE : 0)) as $filename) {
 	if (preg_match('~^(.*(?:(\\w+)</classname></ooclass>\\s*)?<methodsynopsis>(.*))<methodname>([^<]+)<(.*)</methodsynopsis>~sU', file_get_contents($filename), $matches)) {
 		$lineno = substr_count($matches[1], "\n") + 1;
 		$return_type = $matches[3];
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC