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 |
Jump to:
Description
The module uses a PHP5 function, but it doesn't report to be only for PHP5 in its .install file.

#1
The called function is
strripos(), which is used to find a dot in a string. I think thatstrrpos()is enough in such cases.#2
strripos()doesn't return a different value than the one returned fromstrrpos, 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.