Edit report at https://bugs.php.net/bug.php?id=55101&edit=1

 ID:                 55101
 User updated by:    vr...@php.net
 Reported by:        vr...@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] vr...@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

Reply via email to