Bug #76192 [NEW]: lstat cannot parse an url right
| From: | pupiles86 at gmail dot com | Date: | Fri, 06 Apr 2018 13:15:00 +0000 |
| Subject: | Bug #76192 [NEW]: lstat cannot parse an url right | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-214633@lists.php.net to get a copy of this message | ||
From: pupiles86 at gmail dot com
Operating system: Linux
PHP version: 7.0.29
Package: *Web Server problem
Bug Type: Bug
Bug description:lstat cannot parse an url right
Description:
------------
lstat function cannot parse a file when an inexistence directory in path
Test script:
---------------
<?php
print_r(lstat('/var/www/html/x/../index.php'));
?>
Expected result:
----------------
Array ( [0] => 51713 [1] => 57933 [2] => 33188 [3] => 1 [4] => 0 [5] =>
0 [6] => 0 [7] => 43 [8] => 1523008076 [9] => 1523008073 [10] =>
1523008073 [11] => 4096 [12] => 8 [dev] => 51713 [ino] => 57933 [mode]
=> 33188 [nlink] => 1 [uid] => 0 [gid] => 0 [rdev] => 0 [size] => 43
[atime] => 1523008076 [mtime] => 1523008073 [ctime] => 1523008073
[blksize] => 4096 [blocks] => 8 )
Actual result:
--------------
None
--
Edit bug report at https://bugs.php.net/bug.php?id=76192&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76192&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76192&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76192&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76192&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76192&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76192&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76192&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76192&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76192&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76192&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76192&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76192&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76192&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76192&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76192&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76192&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76192&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76192&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76192&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76192&r=mysqlcfg