Hi! > Something I've seen play out a couple of times: Newbies try to use > something like "integer" or "resource" as a type, and then get a confusing > error message along the lines of "must be an instance of resource, resource > given".
Maybe we should just change the error message to this? must be an instance of the class "resource", but resource type is given OTOH, since there are actually no resource type hints, and naming your class "resource" is an extremely bad idea, having a warning there wouldn't hurt too. -- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php