#29791 [Opn->Fbk]: glob crash

From: Date: Sun, 22 Aug 2004 17:48:14 +0000
Subject: #29791 [Opn->Fbk]: glob crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65059@lists.php.net to get a copy of this message
ID: 29791 Updated by: tony2001@php.net Reported By: mg at iceni dot pl -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Linux PHP Version: 5CVS-2004-08-22 (dev) New Comment: Works fine here. What server API have you tried? CLI? Apache? Apache2? Other? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#65059) next »