note 105296 added to resource

From: Date: Mon, 08 Aug 2011 07:49:37 +0000
Subject: note 105296 added to resource
Groups: php.notes 
Request: Send a blank email to php-notes+get-182313@lists.php.net to get a copy of this message
As of version 5.3.3 PHP does not recognize CUBRID-Connection resource. CUBRID is an open source RDBMS. I am trying to port existing PHP app to work with CUBRID. It has the following code. $conn = cubrid_connect('localhost', 33000, 'demodb'); $resType = get_resource_type($conn); // Returns "Unknown" if (is_resource($conn) || is_object($conn)) { // does not enter here. return $conn; } else if ($conn){ // on successful connection, it enters this block. return $conn; } else{ return false; } Even though CUBRID-Connection is a resource, it is not recognized as a resource. Hope in future releases you will add CUBRID as one of the PHP resources. ---- Server IP: 69.147.83.197 Probable Submitter: 111.91.139.51 ---- Manual Page -- http://www.php.net/manual/en/resource.php Edit -- https://master.php.net/note/edit/105296 Del: integrated -- https://master.php.net/note/delete/105296/integrated Del: useless -- https://master.php.net/note/delete/105296/useless Del: bad code -- https://master.php.net/note/delete/105296/bad+code Del: spam -- https://master.php.net/note/delete/105296/spam Del: non-english -- https://master.php.net/note/delete/105296/non-english Del: in docs -- https://master.php.net/note/delete/105296/in+docs Del: other reasons-- https://master.php.net/note/delete/105296 Reject -- https://master.php.net/note/reject/105296 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182313) next »