The module uses a PHP5 function

kiamlaluno - October 28, 2008 - 15:47
Project:jQ
Version:6.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

The module uses a PHP5 function, but it doesn't report to be only for PHP5 in its .install file.

#1

kiamlaluno - October 28, 2008 - 15:55

The called function is strripos(), which is used to find a dot in a string. I think that strrpos() is enough in such cases.

#2

kiamlaluno - December 21, 2008 - 14:10

strripos() doesn't return a different value than the one returned from strrpos, when searching for '.'.
The use of strripos(), is therefore perfectly useless.

That function call causes the module to run only on PHP5 but the module doesn't declare this dependency from the specific version of PHP in its installation file. It would rather preferable to change the function called.

 
 

Drupal is a registered trademark of Dries Buytaert.