cvs: php-src /ext/oci8 oci8.c
| From: | Antony Dovgal | Date: | Sun, 10 Oct 2004 15:04:22 +0000 |
| Subject: | cvs: php-src /ext/oci8 oci8.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28946@lists.php.net to get a copy of this message | ||
tony2001 Sun Oct 10 11:04:22 2004 EDT
Modified files:
/php-src/ext/oci8 oci8.c
Log:
fix possible segfault
http://cvs.php.net/diff.php/php-src/ext/oci8/oci8.c?r1=1.261&r2=1.262&ty=u
Index: php-src/ext/oci8/oci8.c
diff -u php-src/ext/oci8/oci8.c:1.261 php-src/ext/oci8/oci8.c:1.262
--- php-src/ext/oci8/oci8.c:1.261 Sun Oct 10 06:54:26 2004
+++ php-src/ext/oci8/oci8.c Sun Oct 10 11:04:21 2004
@@ -22,7 +22,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8.c,v 1.261 2004/10/10 10:54:26 tony2001 Exp $ */
+/* $Id: oci8.c,v 1.262 2004/10/10 15:04:21 tony2001 Exp $ */
/* TODO list:
*
@@ -786,7 +786,7 @@
php_info_print_table_start();
php_info_print_table_row(2, "OCI8 Support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.261 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.262 $");
sprintf(buf, "%ld", num_persistent);
php_info_print_table_row(2, "Active Persistent Links", buf);
@@ -3144,7 +3144,7 @@
if (le->type == le_session) {
oci_server *server = ((oci_session*) le->ptr)->server;
- if (server->is_open == 2)
+ if (server && server->is_open == 2)
return 1;
}
return 0;