Bug #53913 [NEW]: Streams functions assume HAVE_GLOB is defined
| From: | sixd@php.net | Date: | Wed, 02 Feb 2011 22:54:21 +0000 |
| Subject: | Bug #53913 [NEW]: Streams functions assume HAVE_GLOB is defined | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-158443@lists.php.net to get a copy of this message | ||
From: sixd
Operating system: All
PHP version: trunk-SVN-2011-02-02 (SVN)
Package: Streams related
Bug Type: Bug
Bug description:Streams functions assume HAVE_GLOB is defined
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 bug report at http://bugs.php.net/bug.php?id=53913&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53913&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53913&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53913&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53913&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53913&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53913&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53913&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53913&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53913&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53913&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53913&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53913&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53913&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53913&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53913&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53913&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53913&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53913&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53913&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53913&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53913&r=mysqlcfg