Edit report at http://bugs.php.net/bug.php?id=53913&edit=1
ID: 53913 Updated by: ahar...@php.net Reported by: s...@php.net Summary: Streams functions assume HAVE_GLOB is defined -Status: Assigned +Status: Closed Type: Bug Package: Streams related Operating System: All PHP Version: PHP 5.3.5 Assigned To: aharvey Block user comment: N Private report: N New Comment: 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 http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-02-04 11:47:43] ahar...@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&revision=308011 Log: Fix bug #53913 (Streams functions assume HAVE_GLOB is defined). Patch by Chris Jones. ------------------------------------------------------------------------ [2011-02-02 23:54:20] s...@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