[php-maint] Bug#670242: php-db: Warnings about static calls to non-static methods from common.php
debbugs at petethetree.co.uk
Tue Apr 24 11:13:57 UTC 2012
When running PHP in strict mode, I get lots of warnings from the parser telling me that there are non-static functions in DB.php that are being called statically from common.php.
Although the code appears to work, it makes catching problems in our apache logs very difficult.
These functions are isManip and isError.
I have altered the declaration of these two functions and I no longer get the warnings filling my apache error logs and my code still works as expected: would you be able make the same changes to the real code, please ?
My changes are:
< static function isError($value)
> function isError($value)
< static function isManip($query)
> function isManip($query)
-- System Information:
Debian Release: wheezy/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php-db depends on:
ii php-pear 5.4.1~rc1-1
php-db recommends no packages.
php-db suggests no packages.
-- no debconf information
More information about the pkg-php-maint