Bug #55101 [Opn]: Functions symlink() and readlink() are missing on Windows < Vista
| From: | vrana@php.net | Date: | Fri, 01 Jul 2011 12:54:29 +0000 |
| Subject: | Bug #55101 [Opn]: Functions symlink() and readlink() are missing on Windows < Vista | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161456@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55101&edit=1
ID: 55101
User updated by: vrana@php.net
Reported by: vrana@php.net
Summary: Functions symlink() and readlink() are missing on
Windows < Vista
Status: Open
Type: Bug
Package: Reflection related
Operating System: Windows XP
PHP Version: 5.4.0alpha1
Block user comment: N
Private report: N
New Comment:
The first line of Test script should be:
var_dump(function_exists('readlink'));
It outputs bool(false) mentioned in the result.
Previous Comments:
------------------------------------------------------------------------
[2011-07-01 08:51:51] vrana@php.net
Description:
------------
These two functions are available on Windows >= Vista since PHP 5.3.0. The problem is that
reflection have some pointers on them even in Windows < Vista (e.g. XP) where they are not
available.
Test script:
---------------
<?php
$r = new ReflectionExtension("standard");
$r->getFunctions();
?>
Expected result:
----------------
bool(false)
Actual result:
--------------
bool(false)
Warning: ReflectionExtension::getFunctions(): Internal error: Cannot find extension function
readlink in global function table
Warning: ReflectionExtension::getFunctions(): Internal error: Cannot find extension function symlink
in global function table
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55101&edit=1