Fatal error: Class 'PDO' not found in...
Bonjour,
suite à un problème j'ai recommencer du début mon initiation à symfony en voulant suivre le tutorial "Jobeet".
J'ai réinstaller complètement easyPHP :
PHP Version 5.2.10
Apache Version 2.2.13
Le check_configuration.php me donne le résultat suivant :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| ********************************
* *
* symfony requirements check *
* *
********************************
php.ini used by PHP: C:\EasyPHP5.2.10\apache\php.ini
** Mandatory requirements **
OK PHP version is at least 5.2.4 (5.2.10)
** Optional checks **
OK PDO is installed
OK PDO has some drivers installed: mysql, sqlite2
OK PHP-XML module is installed
OK XSL module is installed
OK The token_get_all() function is available
OK The mb_strlen() function is available
OK The iconv() function is available
OK The utf8_decode() is available
[[WARNING]] The posix_isatty() is available: FAILED
*** Install and enable the php_posix extension (used to colorized the CLI output) ***
[[WARNING]] A PHP accelerator is installed: FAILED
*** Install a PHP accelerator like APC (highly recommended) ***
OK php.ini has short_open_tag set to off
OK php.ini has magic_quotes_gpc set to off
OK php.ini has register_globals set to off
OK php.ini has session.auto_start set to off
OK PHP version is not 5.2.9 |
Je suis donc le tutorial et en arrivant à l'execution de la commande suivant :
Code:
php lib\vendor\symfony\data\bin\symfony generate:project jobeet --orm=Propel
L'arborescence des répertoires et fichiers se fait correctement mais tout à la fin j'ai cette erreur :
Code:
Fatal error: Class 'PDO' not found in C:\EasyPHP5.2.10\www\jobeet\lib\vendor\symfony\lib\plugins\sfPropelPlugin\lib\vendor\propel\util\PropelPDO.php on line 42
Pourtant, l'extension php_pdo.dll et php_pdo_mysql.dll sont bien activées dans le php.ini !
Sur un phpinfo(), tout me semble normal pour ces modules :
Code:
1 2 3 4 5 6 7
| PDO
PDO support enabled
PDO drivers mysql, sqlite2
pdo_mysql
PDO Driver for MySQL, client library version 5.0.51a |
Je ne vois pas ce qui cloche .......
Merci d'avance !
Information supplementaire :
lorsque je fais un php -i en invite de commande j'ai cette ligne qui me parait très suspect :
Code:
Configuration File (php.ini) Path => C:\WINDOWS
Pourquoi donc essaye-t-il d'aller me chercher mon php.ini dans le répertoire WINDOWS ?!!!!!!!!! :cry: