cvs: php-src(PHP_5_0) /ext/oci8 oci8.c

From: Date: Sun, 10 Oct 2004 15:05:52 +0000
Subject: cvs: php-src(PHP_5_0) /ext/oci8 oci8.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-28947@lists.php.net to get a copy of this message
tony2001 Sun Oct 10 11:05:52 2004 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/oci8 oci8.c Log: fix possible segfault http://cvs.php.net/diff.php/php-src/ext/oci8/oci8.c?r1=1.257.2.2&r2=1.257.2.3&ty=u Index: php-src/ext/oci8/oci8.c diff -u php-src/ext/oci8/oci8.c:1.257.2.2 php-src/ext/oci8/oci8.c:1.257.2.3 --- php-src/ext/oci8/oci8.c:1.257.2.2 Sun Oct 10 06:55:48 2004 +++ php-src/ext/oci8/oci8.c Sun Oct 10 11:05:52 2004 @@ -22,7 +22,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: oci8.c,v 1.257.2.2 2004/10/10 10:55:48 tony2001 Exp $ */ +/* $Id: oci8.c,v 1.257.2.3 2004/10/10 15:05:52 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.257.2.2 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.257.2.3 $"); sprintf(buf, "%ld", num_persistent); php_info_print_table_row(2, "Active Persistent Links", buf); @@ -3145,7 +3145,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;

« previous php.cvs (#28947) next »