CVS update: php3/functions
| From: | thies | Date: | Thu, 11 Feb 1999 15:19:41 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4051@lists.php.net to get a copy of this message | ||
Date: Thursday February 11, 1999 @ 10:19
Author: thies
Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv5335/functions
Modified Files:
oci8.c
Log Message:
loadlob now zero terminates the result-buffer (returned size is still "correct" - so you
can load and save images to oracle now!)
Index: php3/functions/oci8.c
diff -c php3/functions/oci8.c:1.38 php3/functions/oci8.c:1.39
*** php3/functions/oci8.c:1.38 Thu Feb 11 04:36:59 1999
--- php3/functions/oci8.c Thu Feb 11 10:19:40 1999
***************
*** 32,38 ****
+----------------------------------------------------------------------+
*/
! /* $Id: oci8.c,v 1.38 1999/02/11 09:36:59 thies Exp $ */
#include "php.h"
#include "internal_functions.h"
--- 32,38 ----
+----------------------------------------------------------------------+
*/
! /* $Id: oci8.c,v 1.39 1999/02/11 15:19:40 thies Exp $ */
#include "php.h"
#include "internal_functions.h"
***************
*** 1339,1345 ****
RETURN_FALSE;
}
! buffer = emalloc(loblen);
if (! buffer) {
RETURN_FALSE;
}
--- 1339,1345 ----
RETURN_FALSE;
}
! buffer = emalloc(loblen + 1);
if (! buffer) {
RETURN_FALSE;
}
***************
*** 1361,1366 ****
--- 1361,1368 ----
efree(buffer);
RETURN_FALSE;
}
+
+ buffer[ loblen ] = 0;
oci8_debug("OCILoadLob: size=%d",loblen);
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net