Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.2.3
-
Fix Version/s: 1.2.4
-
Component/s: Connection
-
Labels:None
-
Environment:From Symfony 1.4 on Windows with PHP 5.3.2 using MSSQL (thru ODBC)
Description
spliti is deprecated with php 5.3.0+ and this function is used in Connection/Mssql.php lines 171 and 190
Original line:
$aux2 = spliti(' as ', $field_array);
Probably replacing with:
preg_split('/ as /i', $field_array);
Original PHP message :
PHP Deprecated: Function spliti() is deprecated in ....\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Connection\Mssql.php on line 190
This bug is also present in doctrine 1.2.2, the version used by the symfony framework 1.4.X
Changing:
$aux2 = spliti(' as ', $field_array);
By:
$aux2 = preg_split('/ as /i', $field_array);
As reported by Jean-Philippe Blais solves the deprecation message problems.