I am not sure if I am the only person in this world who could not make the Quickstart run! But I am having problems setting things up. Every time I do this, I get an error:
-bash-3.00$ zf show version Fatal error: Call to undefined method SplFileInfo::getRealPath() in /usr/local/lib/php/Zend/Tool/Framework/Loader/IncludePathLoader/ RecursiveFilterIterator.php on line 57
I have PHP running using version:
PHP Version 5.2.1
SPL from phpinfo():
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException
Here are more details:
-bash-3.00$ zf Fatal error: Call to undefined method SplFileInfo::getRealPath() in /usr/local/lib/php/Zend/Tool/Framework/Loader/IncludePathLoader/ RecursiveFilterIterator.php on line 57 ------------------------------------------------------- -bash-3.00$ ls -l /usr/local/lib/php | grep zf -rwxr-xr-x 1 root root 1258 May 12 14:11 zf.bat -rwxr-xr-x 1 root root 3004 May 12 14:11 zf.php -rwxr-xr-x 1 root root 1402 May 12 14:11 zf.sh ------------------------------------------------------- -bash-3.00$ ls -la /usr/local/bin/zf lrwxrwxrwx 1 root root 24 May 12 14:14 /usr/local/bin/zf -> /usr/local/lib/php/zf.sh ------------------------------------------------------- -bash-3.00$ ls -la /usr/local/lib/php/Zend total 1424 drwxrwxr-x 58 webmaster webmaster 4096 Apr 28 09:19 . drwxr-xr-x 13 root root 4096 May 12 14:00 .. drwxrwxr-x 5 webmaster webmaster 4096 Apr 28 09:18 Acl -rw-rw-r-- 1 webmaster webmaster 38930 May 9 2008 Acl.php drwxrwxr-x 8 webmaster webmaster 4096 Apr 28 09:19 Amf drwxrwxr-x 5 webmaster webmaster 4096 Apr 28 09:19 Application -rw-rw-r-- 1 webmaster webmaster 9232 Apr 26 01:46 Application.php drwxrwxr-x 4 webmaster webmaster 4096 Apr 28 09:18 Auth -rw-rw-r-- 1 webmaster webmaster 3854 Oct 9 2008 Auth.php drwxrwxr-x 4 webmaster webmaster 4096 Apr 28 09:19 Cache -rw-rw-r-- 1 webmaster webmaster 9397 Nov 11 02:41 Cache.php drwxrwxr-x 2 webmaster webmaster 4096 Apr 28 09:18 Captcha drwxrwxr-x 3 webmaster webmaster 4096 Apr 28 09:18 CodeGenerator drwxrwxr-x 3 webmaster webmaster 4096 Apr 28 09:18 Config ...Rest of the Zend Framework files here...
I will update this post once I get things working. I am not sure if it is the current setup of my machine or I just missed something. I will continue to re-read and re-read the manual until I get frustrated. For now, off to a meeting…
Comments and suggestions below please
UPDATE:
I got a reply from the Nabble thread that I need at least:
PHP 5.2.2 ( SplFileInfo::getRealPath )
Which version of zf are you using ? Still having trouble ?
Anyway I don’t have any sort .
@Hari Nope. No more problem. ZF1.8.x is now running on my machine perfectly