CVS update: php3/functions
| From: | danny | Date: | Wed, 12 Aug 1998 20:34:33 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-130@lists.php.net to get a copy of this message | ||
Date: Wednesday August 12, 1998 @ 16:34
Author: danny
Update of /repository/php3/functions
In directory asf:/tmp/cvs-serv463/functions
Modified Files:
ifx.ec
Log Message:
Small but harmless bug in BLOB code corrected.
Also saved two bytes of memory in connect code :
"ifx" is 3 bytes, "mysql was "5".
Index: php3/functions/ifx.ec
diff -c php3/functions/ifx.ec:1.4 php3/functions/ifx.ec:1.5
*** php3/functions/ifx.ec:1.4 Tue Aug 11 16:02:04 1998
--- php3/functions/ifx.ec Wed Aug 12 16:34:32 1998
***************
*** 432,438 ****
}
host = passwd = NULL;
user = _php3_get_current_user();
! hashed_details_length = strlen(user)+5+3;
hashed_details = (char *) emalloc(hashed_details_length+1);
sprintf(hashed_details,"ifx__%s_",user);
} else {
--- 432,438 ----
}
host = passwd = NULL;
user = _php3_get_current_user();
! hashed_details_length = strlen(user)+3+3;
hashed_details = (char *) emalloc(hashed_details_length+1);
sprintf(hashed_details,"ifx__%s_",user);
} else {
***************
*** 1277,1283 ****
if (locator->loc_status < 0) { /* blob too large */
free(locator->loc_buffer);
locator->loc_bufsize = locator->loc_size + 4;
! locator->loc_buffer = (char *)malloc(locator->loc_bufsize);
if (locator->loc_buffer == NULL) {
php3_error(E_WARNING,"no memory (%d bytes) for blob",
locator->loc_bufsize);
--- 1277,1283 ----
if (locator->loc_status < 0) { /* blob too large */
free(locator->loc_buffer);
locator->loc_bufsize = locator->loc_size + 4;
! locator->loc_buffer = (char *)malloc(locator->loc_bufsize + 4);
if (locator->loc_buffer == NULL) {
php3_error(E_WARNING,"no memory (%d bytes) for blob",
locator->loc_bufsize);
***************
*** 1298,1304 ****
if (locator->loc_status < 0) { /* blob too large */
free(locator->loc_buffer);
locator->loc_bufsize = locator->loc_size + 4;
! locator->loc_buffer = (char *)malloc(locator->loc_bufsize);
if (locator->loc_buffer == NULL) {
php3_error(E_WARNING,"no memory (%d bytes) for blob",
locator->loc_bufsize);
--- 1298,1304 ----
if (locator->loc_status < 0) { /* blob too large */
free(locator->loc_buffer);
locator->loc_bufsize = locator->loc_size + 4;
! locator->loc_buffer = (char *)malloc(locator->loc_bufsize + 4);
if (locator->loc_buffer == NULL) {
php3_error(E_WARNING,"no memory (%d bytes) for blob",
locator->loc_bufsize);
***************
*** 1544,1550 ****
if (locator->loc_status < 0) { /* blob too large */
free(locator->loc_buffer);
locator->loc_bufsize = locator->loc_size + 4;
! locator->loc_buffer = (char *)malloc(locator->loc_bufsize);
if (locator->loc_buffer == NULL) {
php3_error(E_WARNING,"no memory (%d bytes) for blob",
locator->loc_bufsize);
--- 1544,1550 ----
if (locator->loc_status < 0) { /* blob too large */
free(locator->loc_buffer);
locator->loc_bufsize = locator->loc_size + 4;
! locator->loc_buffer = (char *)malloc(locator->loc_bufsize + 4);
if (locator->loc_buffer == NULL) {
php3_error(E_WARNING,"no memory (%d bytes) for blob",
locator->loc_bufsize);
***************
*** 1566,1572 ****
if (locator->loc_status < 0) { /* blob too large */
free(locator->loc_buffer);
locator->loc_bufsize = locator->loc_size + 4;
! locator->loc_buffer = (char *)malloc(locator->loc_bufsize);
if (locator->loc_buffer == NULL) {
php3_error(E_WARNING,"no memory (%d bytes) for blob",
locator->loc_bufsize);
--- 1566,1572 ----
if (locator->loc_status < 0) { /* blob too large */
free(locator->loc_buffer);
locator->loc_bufsize = locator->loc_size + 4;
! locator->loc_buffer = (char *)malloc(locator->loc_bufsize + 4);
if (locator->loc_buffer == NULL) {
php3_error(E_WARNING,"no memory (%d bytes) for blob",
locator->loc_bufsize);
***************
*** 1849,1855 ****
if (locator->loc_status < 0) { /* blob too large */
free(locator->loc_buffer);
locator->loc_bufsize = locator->loc_size + 4;
! locator->loc_buffer = (char *)malloc(locator->loc_bufsize);
if (locator->loc_buffer == NULL) {
php3_error(E_WARNING,"no memory (%d bytes) for blob",
locator->loc_bufsize);
--- 1849,1855 ----
if (locator->loc_status < 0) { /* blob too large */
free(locator->loc_buffer);
locator->loc_bufsize = locator->loc_size + 4;
! locator->loc_buffer = (char *)malloc(locator->loc_bufsize + 4);
if (locator->loc_buffer == NULL) {
php3_error(E_WARNING,"no memory (%d bytes) for blob",
locator->loc_bufsize);
--
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