go to bug id or search bugs for
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
collect2: ld returned 1 exit status
*** Error exit code 1
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
Add a Patch
Add a Pull Request
Automatic comment from SVN on behalf of aharvey
Log: Fix bug #53913 (Streams functions assume HAVE_GLOB is defined). Patch by Chris
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.