tony2001 Thu Dec 1 14:26:31 2005 EDT
Modified files:
/php-src/ext/oci8 oci8_statement.c
Log:
MF51: fix Win32 compile failure
http://cvs.php.net/diff.php/php-src/ext/oci8/oci8_statement.c?r1=1.8&r2=1.9&ty=u
Index: php-src/ext/oci8/oci8_statement.c
diff -u php-src/ext/oci8/oci8_statement.c:1.8
php-src/ext/oci8/oci8_statement.c:1.9
--- php-src/ext/oci8/oci8_statement.c:1.8 Thu Dec 1 08:46:05 2005
+++ php-src/ext/oci8/oci8_statement.c Thu Dec 1 14:26:31 2005
@@ -25,7 +25,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8_statement.c,v 1.8 2005/12/01 13:46:05 tony2001 Exp $ */
+/* $Id: oci8_statement.c,v 1.9 2005/12/01 19:26:31 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
@@ -1213,7 +1213,7 @@
convert_to_string_ex(entry);
element_length = (maxlength > Z_STRLEN_PP(entry)) ?
Z_STRLEN_PP(entry) : maxlength;
- memcpy(bind->array.elements + i*maxlength,
Z_STRVAL_PP(entry), element_length);
+ memcpy((text *)bind->array.elements + i*maxlength,
Z_STRVAL_PP(entry), element_length);
((text *)bind->array.elements)[i*maxlength +
element_length] = '\0';
zend_hash_move_forward(hash);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php