cvs: php4(PHP_4_2_0) /ext/standard base64.c

From: Date: Thu, 24 Oct 2002 11:11:42 +0000
Subject: cvs: php4(PHP_4_2_0) /ext/standard base64.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-15295@lists.php.net to get a copy of this message
hyanantha Thu Oct 24 07:11:42 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/ext/standard base64.c Log: NetWare related changes/modifications. Index: php4/ext/standard/base64.c diff -u php4/ext/standard/base64.c:1.29.2.1 php4/ext/standard/base64.c:1.29.2.2 --- php4/ext/standard/base64.c:1.29.2.1 Wed May 1 16:12:51 2002 +++ php4/ext/standard/base64.c Thu Oct 24 07:11:41 2002 @@ -15,7 +15,7 @@ | Author: Jim Winstead <jimw@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: base64.c,v 1.29.2.1 2002/05/01 20:12:51 derick Exp $ */ +/* $Id: base64.c,v 1.29.2.2 2002/10/24 11:11:41 hyanantha Exp $ */ #include <string.h> @@ -160,9 +160,9 @@ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { return; } - result = php_base64_encode(str, str_len, &ret_length); + result = php_base64_encode((const unsigned char*)str, str_len, &ret_length); /* type-casting done due to NetWare */ if (result != NULL) { - RETVAL_STRINGL(result, ret_length, 0); + RETVAL_STRINGL((char*)result, ret_length, 0); /* type-casting done due to NetWare */ } else { RETURN_FALSE; } @@ -181,9 +181,9 @@ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { return; } - result = php_base64_decode(str, str_len, &ret_length); + result = php_base64_decode((const unsigned char*)str, str_len, &ret_length); /* type-casting done due to NetWare */ if (result != NULL) { - RETVAL_STRINGL(result, ret_length, 0); + RETVAL_STRINGL((char*)result, ret_length, 0); /* type-casting done due to NetWare */ } else { RETURN_FALSE; }

« previous php.cvs (#15295) next »