@@ -883,7 +883,7 @@ int php_oci_bind_post_exec(void *data TSRMLS_DC)
883
883
884
884
/* {{{ php_oci_bind_by_name()
885
885
Bind zval to the given placeholder */
886
- int php_oci_bind_by_name (php_oci_statement * statement , char * name , int name_len , zval * var , long maxlength , long type TSRMLS_DC )
886
+ int php_oci_bind_by_name (php_oci_statement * statement , char * name , int name_len , zval * var , long maxlength , ub2 type TSRMLS_DC )
887
887
{
888
888
php_oci_collection * bind_collection = NULL ;
889
889
php_oci_descriptor * bind_descriptor = NULL ;
@@ -975,7 +975,7 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, int name_len,
975
975
break ;
976
976
977
977
default :
978
- php_error_docref (NULL TSRMLS_CC , E_WARNING , "Unknown or unsupported datatype given: %ld " , type );
978
+ php_error_docref (NULL TSRMLS_CC , E_WARNING , "Unknown or unsupported datatype given: %d " , ( int ) type );
979
979
return 1 ;
980
980
break ;
981
981
}
@@ -1008,14 +1008,14 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, int name_len,
1008
1008
PHP_OCI_CALL_RETURN (statement -> errcode ,
1009
1009
OCIBindByName ,
1010
1010
(
1011
- statement -> stmt , /* statement handle */
1012
- (OCIBind * * )& bindp -> bind , /* bind hdl (will alloc) */
1013
- statement -> err , /* error handle */
1011
+ statement -> stmt , /* statement handle */
1012
+ (OCIBind * * )& bindp -> bind , /* bind hdl (will alloc) */
1013
+ statement -> err , /* error handle */
1014
1014
(text * ) name , /* placeholder name */
1015
1015
name_len , /* placeholder length */
1016
1016
(dvoid * )bind_data , /* in/out data */
1017
1017
value_sz , /* PHP_OCI_MAX_DATA_SIZE, */ /* max size of input/output data */
1018
- ( ub2 ) type , /* in/out data type */
1018
+ type , /* in/out data type */
1019
1019
(dvoid * )& bindp -> indicator , /* indicator (ignored) */
1020
1020
(ub2 * )0 , /* size array (ignored) */
1021
1021
(ub2 * )& bindp -> retcode , /* return code (ignored) */
0 commit comments