Bug #53913 [Opn->Asn]: Streams functions assume HAVE_GLOB is defined
| From: | aharvey@php.net | Date: | Fri, 04 Feb 2011 09:52:48 +0000 |
| Subject: | Bug #53913 [Opn->Asn]: Streams functions assume HAVE_GLOB is defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-158471@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53913&edit=1
ID: 53913
Updated by: aharvey@php.net
Reported by: sixd@php.net
Summary: Streams functions assume HAVE_GLOB is defined
-Status: Open
+Status: Assigned
Type: Bug
Package: Streams related
Operating System: All
PHP Version: PHP 5.3.5
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2011-02-02 23:54:20] sixd@php.net
Description:
------------
Streams functions should not assume HAVE_GLOB is defined. It seems bug
#49301 is still not fixed.
I had a report that a PHP 5.3 failed to compile on HP/UX using gcc
because 'glob' is not found. 'make' failed with:
ld: Unsatisfied symbol "php_glob_stream_wrapper" in file
ext/standard/.libs/basic_functions.o
ld: Unsatisfied symbol "_php_glob_stream_get_path" in file
ext/spl/.libs/spl_directory.o
ld: (Warning) Potential unresolved symbol "main":
shared library reference is resolved to non-exported
definition in file "sapi/cli/.libs/php_cli.o".
ld: Unsatisfied symbol "php_glob_stream_ops" in file
ext/spl/.libs/spl_directory.o
ld: Unsatisfied symbol "_php_glob_stream_get_count" in file
ext/spl/.libs/spl_directory.o
1 warnings.
4 errors.
collect2: ld returned 1 exit status
*** Error exit code 1
Stop.
I can't verify why 'glob' isn't found but we can patch PHP not to fall
over so quickly.
A patch for 5.3 standard/basic_functions.c and streams/plain_wrapper.c
is attached to this bug. A separate bug for the SPL changes will be
logged for independent review. Patches from both bugs are required.
To test, configure PHP and then #undef HAVE_GLOB in main/php_config.h
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53913&edit=1