Bug #55101 [Bgs->Opn]: Functions symlink() and readlink() are missing on Windows < Vista

From: Date: Fri, 01 Jul 2011 13:06:29 +0000
Subject: Bug #55101 [Bgs->Opn]: Functions symlink() and readlink() are missing on Windows < Vista
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-161459@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 Updated by: pajoye@php.net Reported by: vrana@php.net Summary: Functions symlink() and readlink() are missing on Windows < Vista -Status: Bogus +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: re-open, but really not sure if it is fixable in reflexion, but there is no bug in these functions per se :) Previous Comments: ------------------------------------------------------------------------ [2011-07-01 09:04:46] pajoye@php.net They are also dynamically available, we remove them at init time if the Windows version is < vista. ------------------------------------------------------------------------ [2011-07-01 09:03:54] pajoye@php.net They are only available in vista and later. ------------------------------------------------------------------------ [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

« previous php.bugs (#161459) next »