ID: 29791
User updated by: mg at iceni dot pl
Reported By: mg at iceni dot pl
Status: Bogus
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 5CVS-2004-08-22 (dev)
New Comment:
Some pre 2.3.3 version from CVS downloaded around a month
before official release. So I guess that's the reason...
strange because everything else is working flawlessly.
Looks like it's time to reinstall this mess 8)
Previous Comments:
------------------------------------------------------------------------
[2004-08-23 08:36:25] [EMAIL PROTECTED]
Ok, marking bogus then. What specific version glibc do you have?
------------------------------------------------------------------------
[2004-08-22 20:38:18] mg at iceni dot pl
Please mark this bug as BOGUS... Looks like my system is
totally screwed, glob() in my glibc is using some
different structure glob_t than rest of the world...
------------------------------------------------------------------------
[2004-08-22 19:57:42] [EMAIL PROTECTED]
What C library are you using, the error you are reporting
implies that in "" or "*" conditions the library would
return NULL as the path.
------------------------------------------------------------------------
[2004-08-22 19:48:13] [EMAIL PROTECTED]
Works fine here.
What server API have you tried? CLI? Apache? Apache2? Other?
------------------------------------------------------------------------
[2004-08-22 19:42:31] mg at iceni dot pl
Description:
------------
PHP 5 crashes while using glob() function with specific
arguments.
Reproduce code:
---------------
<?php
glob(''); // crash
glob('*'); // crash
glob('*.txt'); //ok
?>
Expected result:
----------------
Actual result:
--------------
#0 0x08131300 in zif_glob (ht=1, return_value=0x830a6dc,
this_ptr=0x0, return_value_used=0)
at /home/sh/php5/ext/standard/dir.c:421
421 strncpy(cwd, globbuf.gl_pathv[0],
MAXPATHLEN);
(gdb) bt
#0 0x08131300 in zif_glob (ht=1, return_value=0x830a6dc,
this_ptr=0x0, return_value_used=0)
at /home/sh/php5/ext/standard/dir.c:421
#1 0x08229e35 in zend_do_fcall_common_helper
(execute_data=0xbfffd380)
at /home/sh/php5/Zend/zend_execute.c:2980
#2 0x0822a9a6 in zend_do_fcall_handler
(execute_data=0xbfffd380)
at /home/sh/php5/Zend/zend_execute.c:3114
#3 0x082239bd in execute (op_array=0x830af3c)
at /home/sh/php5/Zend/zend_execute.c:1498
#4 0x081f9da5 in zend_execute_scripts (type=8,
retval=0x0, file_count=3)
at /home/sh/php5/Zend/zend.c:1052
#5 0x081ab791 in php_execute_script
(primary_file=0xbffff7d0)
at /home/sh/php5/main/main.c:1633
#6 0x08231e1d in main (argc=3, argv=0xbffff894)
at /home/sh/php5/sapi/cli/php_cli.c:943
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29791&edit=1