@@ -268,7 +268,7 @@ static bool create_driver_specific_pdo_object(pdo_driver_t *driver, zend_class_e
268268
269269 if (ce_based_on_driver_name ) {
270270 if (called_scope != pdo_dbh_ce ) {
271- /* A driver-specific implementation is instantiated of a wrong driver class */
271+ /* A driver-specific implementation is instantiated with a wrong driver class */
272272 zend_throw_exception_ex (pdo_exception_ce , 0 ,
273273 "%s::%s() cannot be called when connecting to the \"%s\" driver, "
274274 "either call %s::%s() or PDO::%s() instead" ,
@@ -282,7 +282,6 @@ static bool create_driver_specific_pdo_object(pdo_driver_t *driver, zend_class_e
282282 return false;
283283 }
284284
285- /* A driver-specific implementation was instantiated via PDO::__construct() */
286285 if (new_object ) {
287286 object_init_ex (new_object , ce_based_on_driver_name );
288287 }
@@ -294,7 +293,7 @@ static bool create_driver_specific_pdo_object(pdo_driver_t *driver, zend_class_e
294293 return true;
295294}
296295
297- PDO_API void internal_construct (INTERNAL_FUNCTION_PARAMETERS , zend_object * object , zend_class_entry * current_scope , zval * new_zval_object )
296+ PDO_API void php_pdo_internal_construct_driver (INTERNAL_FUNCTION_PARAMETERS , zend_object * object , zend_class_entry * current_scope , zval * new_zval_object )
298297{
299298 pdo_dbh_t * dbh = NULL ;
300299 bool is_persistent = 0 ;
@@ -517,14 +516,14 @@ PDO_API void internal_construct(INTERNAL_FUNCTION_PARAMETERS, zend_object *objec
517516/* {{{ */
518517PHP_METHOD (PDO , __construct )
519518{
520- internal_construct (INTERNAL_FUNCTION_PARAM_PASSTHRU , Z_OBJ (EX (This )), execute_data -> func -> common .scope , NULL );
519+ php_pdo_internal_construct_driver (INTERNAL_FUNCTION_PARAM_PASSTHRU , Z_OBJ (EX (This )), execute_data -> func -> common .scope , NULL );
521520}
522521/* }}} */
523522
524523/* {{{ */
525524PHP_METHOD (PDO , connect )
526525{
527- internal_construct (INTERNAL_FUNCTION_PARAM_PASSTHRU , Z_OBJ (EX (This )), EX (This ).value .ce , return_value );
526+ php_pdo_internal_construct_driver (INTERNAL_FUNCTION_PARAM_PASSTHRU , Z_OBJ (EX (This )), EX (This ).value .ce , return_value );
528527}
529528/* }}} */
530529
0 commit comments