1
即使我安裝了PDO幷包含在我的php.ini中,我仍然收到以下錯誤。爲什麼我會在這種情況下收到錯誤「Class PDO not found」?
我可能錯過了什麼?我使用的原則和笨
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: Doctrine\ORM\Query\ParameterTypeInferer::inferType() [<a href='doctrine\orm\query\parametertypeinferer.infertype'>doctrine\orm\query\parametertypeinferer.infertype</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead</p>
<p>Filename: Query/ParameterTypeInferer.php</p>
<p>Line Number: 70</p>
</div><br />
<b>Fatal error</b>: Class 'PDO' not found in <b>/home/mrwongs/public_html/engine/application/third_party/Doctrine/ORM/Query/ParameterTypeInferer.php</b> on line <b>70</b><br />
我的phpinfo可以看出:http://173.203.85.196/test.php
在我的php.ini我有以下2行:
extension=pdo.so
extension=pdo_mysql.so
您確定運行php的代碼實際上是使用您向我們展示的php.ini嗎? –
做一個'phpinfo();'看看輸出說什麼關於你當前設置使用的配置文件。 –
最安全的方法來檢查將是'if(!extension_loaded('pdo'))die('Oops!');' – Jon