Scott B
Scott B

Reputation: 40177

Fatal error: Call to undefined method SplFileInfo::getRealPath()

I've got a client who has just set up a new VPN and is attempting to install my plugin.

He's getting the following error:

Fatal error: Call to undefined method SplFileInfo::getRealPath() on the commented line below. This appears to have something to do with the ZEND libraries. Any ideas what I should tell him to do?

Upvotes: 1

Views: 3697

Answers (1)

Shakti Singh
Shakti Singh

Reputation: 86406

If you are getting the undefined error means you have lower version of PHP.

The function is supported after PHP 5.2.2

SplFileInfo::getRealPath

(PHP 5 >= 5.2.2)

SplFileInfo::getRealPath — Gets absolute path to file

http://php.net/manual/en/splfileinfo.getrealpath.php

Upvotes: 6

Related Questions