Menu

#93 is_resource($link) does not return true

open
nobody
None
5
2012-02-21
2012-02-21
Jira Trac
No

The PHP driver does not correctly defines the database connection as being a valid resource. Due to this, one cannot check if the connection is valid using is_resource($link). Funny thing is that print_r($link) correctly prints this as: Resource id #4

Additionally, get_resource_type, returns Unknown.

See attached script for testing this.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.