From: balanalin2003 at yahoo dot com
Operating system: ubuntu 9.10
PHP version: 5.3.0
PHP Bug Type: Streams related
Bug description: function stat(),lstat() dosn't wonk on a mounted cifs
Description:
------------
Starting program: /php-cli/bin/php /home/alin/Desktop/test.php
[Thread debugging using libthread_db enabled]
Breakpoint 1, php_stat (
filename=0x87e2e80 "/mount/Arena/tickers.txt",
filename_length=24, type=17, return_value=0x87e283c,
tsrm_ls=0x86ea050)
at /home/alin/Desktop/arhive/php-5.3.0/ext/standard/filestat.c:762
762 {
(gdb) bt
#0 php_stat (filename=0x87e2e80 "/mount/Arena/tickers.txt",
filename_length=24, type=17, return_value=0x87e283c,
tsrm_ls=0x86ea050)
at /home/alin/Desktop/arhive/php-5.3.0/ext/standard/filestat.c:762
#1 0x0826c85b in php_if_stat (ht=1, return_value=0x87e283c,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1,
tsrm_ls=0x86ea050)
at /home/alin/Desktop/arhive/php-5.3.0/ext/standard/filestat.c:1125
#2 0x081ca23c in phar_stat (ht=1, return_value=0x87e283c,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1,
tsrm_ls=0x86ea050)
at
/home/alin/Desktop/arhive/php-5.3.0/ext/phar/func_interceptors.c:1034
#3 0x083913f6 in zend_do_fcall_common_helper_SPEC (
execute_data=0x88126f4, tsrm_ls=0x86ea050)
at /home/alin/Desktop/arhive/php-5.3.0/Zend/zend_vm_execute.h:313
#4 0x08395aec in ZEND_DO_FCALL_SPEC_CONST_HANDLER (
execute_data=0x88126f4, tsrm_ls=0x86ea050)
at /home/alin/Desktop/arhive/php-5.3.0/Zend/zend_vm_execute.h:1601
#5 0x083906c6 in execute (op_array=0x87e2ecc, tsrm_ls=0x86ea050)
at /home/alin/Desktop/arhive/php-5.3.0/Zend/zend_vm_execute.h:104
#6 0x0835ee92 in zend_execute_scripts (type=8, tsrm_ls=0x86ea050,
retval=0x0, file_count=3)
at /home/alin/Desktop/arhive/php-5.3.0/Zend/zend.c:1188
#7 0x082dacb9 in php_execute_script (primary_file=0xbffff660,
tsrm_ls=0x86ea050)
at /home/alin/Desktop/arhive/php-5.3.0/main/main.c:2196
#8 0x08434634 in main (argc=2, argv=0xbffff7f4)
---Type <return> to continue, or q <return> to quit---
at /home/alin/Desktop/arhive/php-5.3.0/sapi/cli/php_cli.c:1188
(gdb) continue
Continuing.
Warning: stat(): stat failed for /mount/Arena/tickers.txt in
/home/alin/Desktop/test.php on line 3
bool(false)
Program exited normally.
---------------------------------------
stat /mount/Arena2/tickers.txt
File: `/mount/Arena2/tickers.txt'
Size: 184118245 Blocks: 359680 IO Block: 16384 regular file
Device: 16h/22d Inode: 23080948090339228 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2009-11-11 14:29:25.125000000 +0200
Modify: 2009-11-10 17:26:20.099468800 +0200
Change: 2009-11-10 17:26:20.099468800 +0200
Reproduce code:
---------------
<?php
var_dump(stat("/mount/Arena/tickers.txt"));
?>
Actual result:
--------------
Warning: stat(): stat failed for /mount/Arena/tickers.txt in
/home/alin/Desktop/test.php on line 3
bool(false)
--
Edit bug report at http://bugs.php.net/?id=50150&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50150&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50150&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50150&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50150&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=50150&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50150&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=50150&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=50150&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=50150&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=50150&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=50150&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=50150&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=50150&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50150&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50150&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50150&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=50150&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=50150&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=50150&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=50150&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=50150&r=mysqlcfg