Doc #63069 [Fbk->NoF]: GLOB_NOCHECK Results
| From: | php-bugs at lists dot php dot net | Date: | Mon, 18 Feb 2013 00:35:39 +0000 |
| Subject: | Doc #63069 [Fbk->NoF]: GLOB_NOCHECK Results | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9550@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63069&edit=1
ID: 63069
Updated by: php-bugs@lists.php.net
Reported by: bhsmither at gmail dot com
Summary: GLOB_NOCHECK Results
-Status: Feedback
+Status: No Feedback
Type: Documentation Problem
Package: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2012-09-13 02:46:18] googleguy@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
I can not reproduce your problem.
<?php
$language='L:\WebServer\htdocs\language\es-ES';
$qqq=glob(' with '.$language.'{-custom,-normal}.xml', GLOB_BRACE |
GLOB_NOCHECK);
print_r($qqq);
?>
This returns:
Array
(
[0] => with L:\WebServer\htdocs\language\es-ES{-custom,-normal}.xml
)
For me, which is the expected output according to the documentation. Can you
please provide the output you get and include which version of PHP you're using
and on what Operating System Software.
Thanks.
------------------------------------------------------------------------
[2012-09-12 05:34:08] bhsmither at gmail dot com
Description:
------------
glob() function
http://us3.php.net/manual/en/function.glob.php
Documentation says:
"GLOB_NOCHECK - Return the search pattern if no files matching it were found."
Tests indicate that the search pattern is not returned 'verbatim', but rather an array
(with wildcard characters in place) with each array element representing one possible combination of
braced options, the whole array having all possible combinations.
Test script:
---------------
<?php
$language='L:\WebServer\htdocs\language\es-ES';
$qqq=glob(' with '.$language.'{-custom,-normal}.xml', GLOB_BRACE |
GLOB_NOCHECK);
print_r($qqq);
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63069&edit=1