I'm running PHP 5.2.5 on my worstation :

C:\Web\pChart>php -v
PHP 5.2.5 (cli) (built: Nov 8 2007 23:18:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Running the example files didn't return any error :

C:\Web\pChart>php -q Example1.php
C:\Web\pChart>

Can you be a bit more specific with your issue?