File: static-function-for-isError-and-isManip

package info (click to toggle)
php-db 1.7.14-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 984 kB
  • sloc: php: 6,933; pascal: 1,001; xml: 213; sh: 31; makefile: 13
file content (25 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Adds static in front of isError and isManip functions
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: http://bugs.debian.org/670242
Forwarded: no

--- php-db-1.7.14.orig/DB-1.7.14/DB.php
+++ php-db-1.7.14/DB-1.7.14/DB.php
@@ -589,7 +589,7 @@ class DB
      *
      * @return bool  whether $value is DB_Error object
      */
-    function isError($value)
+    static function isError($value)
     {
         return is_object($value) && is_a($value, 'DB_Error');		
     }
@@ -625,7 +625,7 @@ class DB
      *
      * @return boolean  whether $query is a data manipulation query
      */
-    function isManip($query)
+    static function isManip($query)
     {
         $manips = 'INSERT|UPDATE|DELETE|REPLACE|'
                 . 'CREATE|DROP|'