Edit report at http://bugs.php.net/bug.php?id=14405&edit=1
ID: 14405 Updated by: [email protected] Reported by: foobardotcom at poczta dot onet dot pl Summary: strict type control ability -Status: Open +Status: Wont fix Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: all PHP Version: 4.1.0 Block user comment: N Private report: N New Comment: See http://wiki.php.net/rfc/typechecking for more information. Previous Comments: ------------------------------------------------------------------------ [2001-12-10 10:38:35] foobardotcom at poczta dot onet dot pl Now: define("E_TYPE", "Invalid type of argument"); function dbexec($connObject, $query) { if (is_object($connObject)) { if (get_class($connObject) == "dbconn") { if (is_string($query)) { return $connObject->execute($query); } else { trigger_error(E_TYPE, E_USER_ERROR); } } else { trigger_error(E_TYPE, E_USER_ERROR); } } else { trigger_error(E_TYPE, E_USER_ERROR); } } I want to be: function dbexec((dbconn) $connObject, (string) $query) { return $connObject->execute($query); } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=14405&edit=1
