[TYPO3-core] RFC #10411: sqlparser is not able to parse more than 1 join

Oliver Klee typo3-german-02 at oliverklee.de
Wed Oct 28 17:34:16 CET 2009


Hi,

Xavier Perseguers schrieb:
>> - cleanSql expects as string as first parameter (according to the
>> PHPDoc). So you don't need to check for is_string in the function, but
>> you need to make sure all callers actually provide a string. Some
> 
> This is an old definition. It is actually a mixed type because it might
> be that I get an array. Many SQL parser methods returns an array if all
> went well and an error message if not. I use this not to be forced to
> declare what is the actual array output of the method. This is a first
> approximation but is enough I guess for many cases because if I get an
> array and the parsedString is of the expected length after the call,
> then the string could be parsed.

Okay, I see. Then the @param just needs to be changed to mixed. :-)


Oli


More information about the TYPO3-team-core mailing list