Req #14405 [Opn->Wfx]: strict type control ability

From: Date: Wed, 29 Dec 2010 10:53:54 +0000
Subject: Req #14405 [Opn->Wfx]: strict type control ability
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157374@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=14405&edit=1 ID: 14405 Updated by: jani@php.net 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

« previous php.bugs (#157374) next »