Edit report at https://bugs.php.net/bug.php?id=55101&edit=1
ID: 55101
Updated by: pajoye@php.net
Reported by: vrana@php.net
Summary: Functions symlink() and readlink() are missing on
Windows < Vista
-Status: Open
+Status: Bogus
Type: Bug
Package: Reflection related
Operating System: Windows XP
PHP Version: 5.4.0alpha1
Block user comment: N
Private report: N
New Comment:
They are only available in vista and later.
Previous Comments:
------------------------------------------------------------------------
[2011-07-01 08:54:29] vrana@php.net
The first line of Test script should be:
var_dump(function_exists('readlink'));
It outputs bool(false) mentioned in the result.
------------------------------------------------------------------------
[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