]> granicus.if.org Git - php/commit
Fixed compiler warnings in mysqli
authorKalle Sommer Nielsen <kalle@php.net>
Tue, 5 Oct 2010 09:40:36 +0000 (09:40 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Tue, 5 Oct 2010 09:40:36 +0000 (09:40 +0000)
commit87edd143edef1ad072550d609c1427ad2c835a86
tree60aed0c929cefab2799f8819811d81ed366497ae
parentdf2261df2a915d0355b16c66b3c3a9496d8cab43
Fixed compiler warnings in mysqli

 - mysqli.c: Fix unused variables, they are only used in non-mysqlnd mode
 - mysqli_api.c (PHP_5_3 only): Fix constness, add_property_string expects a char *, not a const char *
 - mysqli_prop.c: Cast to long, as its below the LONG_MAX and therefore safe
 - mysqli_result_iterator.c: Cast to ulong as the iterator member expects that rather than a my_longlong

# In trunk only warnings regarding the zend_property_info
# structure is present and PHP_5_3 is warning free now
ext/mysqli/mysqli_api.c
ext/mysqli/mysqli_prop.c