PHP symlink()在Windows 7上失败 [英] PHP symlink() fails on Windows 7

查看:285
本文介绍了PHP symlink()在Windows 7上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PHP symlink()函数在Windows 7上失败,并显示以下错误:

PHP symlink() function fails on Windows 7 with the error:

Warning: symlink(): Cannot create symlink, error code(3) in C:\xampp\htdocs\…\lib\model\doctrine\Website.class.php

这是使用PHP 5.3.8的XAMPP服务器.

It's a XAMPP server on with PHP 5.3.8.

从symlink()文档中:

From the symlink() documentation:

5.3.0现在,该功能在Windows平台(Vista,Server 2008或更高版本)上可用.

5.3.0 This function is now available on Windows platforms (Vista, Server 2008 or greater).

有什么想法/建议吗?

推荐答案

据此,可能是PHP 5.3中的错误:

Might be a bug in PHP 5.3 according to this:

https://bugs.php.net/bug.php?id=48975

和这个:

http://forum.wampserver.com/read.php?2,64011 (回复#2)

也许您可以升级到PHP 5.4并查看它是否有效?

Maybe you could upgrade to PHP 5.4 and see if it works?

这篇关于PHP symlink()在Windows 7上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆