3535#include "ext/standard/php_string.h"
3636#include "ext/standard/basic_functions.h"
3737
38- #ifdef ZEND_ENGINE_2
39- # include "zend_exceptions.h"
40- #else
41- /* PHP 4 compat */
42- # define OnUpdateLong OnUpdateInt
43- # define E_STRICT E_NOTICE
44- #endif
38+ #include "zend_exceptions.h"
4539
4640#if HAVE_MYSQL
4741
@@ -2075,7 +2069,6 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, zend_long result_
20752069 mysql_row_length_type * mysql_row_lengths ;
20762070#endif
20772071
2078- #ifdef ZEND_ENGINE_2
20792072 if (into_object ) {
20802073 zend_string * class_name = NULL ;
20812074
@@ -2094,7 +2087,6 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, zend_long result_
20942087 }
20952088 result_type = MYSQL_ASSOC ;
20962089 } else
2097- #endif
20982090 {
20992091 if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "r|l" , & res , & result_type ) == FAILURE ) {
21002092 return ;
@@ -2162,7 +2154,6 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, zend_long result_
21622154 mysqlnd_fetch_into (mysql_result , ((result_type & MYSQL_NUM )? MYSQLND_FETCH_NUM :0 ) | ((result_type & MYSQL_ASSOC )? MYSQLND_FETCH_ASSOC :0 ), return_value , MYSQLND_MYSQL );
21632155#endif
21642156
2165- #ifdef ZEND_ENGINE_2
21662157 /* mysqlnd might return FALSE if no more rows */
21672158 if (into_object && Z_TYPE_P (return_value ) != IS_FALSE ) {
21682159 zval dataset ;
@@ -2225,7 +2216,6 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, zend_long result_
22252216 zend_throw_exception_ex (zend_exception_get_default (TSRMLS_C ), 0 TSRMLS_CC , "Class %s does not have a constructor hence you cannot use ctor_params" , ce -> name -> val );
22262217 }
22272218 }
2228- #endif
22292219
22302220}
22312221/* }}} */
0 commit comments