File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,9 @@ ZEND_END_ARG_INFO()
113
113
RETURN_FALSE; \
114
114
} \
115
115
116
- static PHP_FUNCTION (dbrow_constructor ) /* {{{ */
116
+ //The class is called PDORow in userland, it is called PDOStatement in the manual.
117
+ static PHP_FUNCTION (dbstmt_constructor ) /* {{{ */
117
118
{
118
- // php_error_docref(NULL, E_ERROR, "You should not create a PDOStatement manually");
119
119
zend_throw_exception_ex (php_pdo_get_exception (), 0 , "You may not create a PDORow manually" );
120
120
}
121
121
/* }}} */
@@ -2641,7 +2641,8 @@ static union _zend_function *row_get_ctor(zend_object *object)
2641
2641
ctor .type = ZEND_INTERNAL_FUNCTION ;
2642
2642
ctor .function_name = zend_string_init ("__construct" , sizeof ("__construct" ) - 1 , 0 );
2643
2643
ctor .scope = pdo_row_ce ;
2644
- ctor .handler = ZEND_FN (dbrow_constructor );
2644
+ //The class is called PDORow in userland, it is called PDOStatement in the manual.
2645
+ ctor .handler = ZEND_FN (dbstmt_constructor );
2645
2646
ctor .fn_flags = ZEND_ACC_PUBLIC ;
2646
2647
2647
2648
return (union _zend_function * )& ctor ;
You can’t perform that action at this time.
0 commit comments