2010-08-19 Xavier Perseguers <typo3@perseguers.ch>
+ * Follow-up to #15457: Slightly modified API to be strict on param type guessing
* Added feature #15457: Add support for prepared queries
2010-08-19 Francois Suter <francois@typo3.org>
protected function guessValueType($value) {
if (is_bool($value)) {
$type = self::PARAM_BOOL;
- } elseif (t3lib_div::testInt($value)) {
+ } elseif (is_int($value)) {
$type = self::PARAM_INT;
- } elseif (is_null($value) || strtoupper($value) === 'NULL') {
+ } elseif (is_null($value)) {
$type = self::PARAM_NULL;
} else {
$type = self::PARAM_STR;