I am running a PHP script from the CLI that uses the DirectoryIterator::getExtension() method in PHP.
The PHP version I'm running on is 5.3.5, but I keep getting errors saying Fatal error: Call to undefined method DirectoryIterator::getExtension()
The script works fine on my local developer machine with PHP 5.3.6 without errors. However, the page for DirectoryIterator :: getExtension () in human PHP does not mention the version.
Can someone tell me which version I need to use for this method?
julio source share