Skip to content

Commit 6f76817

Browse files
committed
Remove dead code
The "if ever" here is the relevant bit...
1 parent e55f0c7 commit 6f76817

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,11 +1801,6 @@ int pdo_stmt_setup_fetch_mode(pdo_stmt_t *stmt, zend_long mode, zval *args, uint
18011801

18021802
if (SUCCESS == retval) {
18031803
ZVAL_UNDEF(&stmt->fetch.cls.ctor_args);
1804-
#ifdef ilia_0 /* we'll only need this when we have persistent statements, if ever */
1805-
if (stmt->dbh->is_persistent) {
1806-
php_error_docref(NULL, E_WARNING, "PHP might crash if you don't call $stmt->setFetchMode() to reset to defaults on this persistent statement. This will be fixed in a later release");
1807-
}
1808-
#endif
18091804
if (num_args == 2) {
18101805
if (Z_TYPE(args[1]) != IS_NULL && Z_TYPE(args[1]) != IS_ARRAY) {
18111806
pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "ctor_args must be either NULL or an array");
@@ -1832,11 +1827,6 @@ int pdo_stmt_setup_fetch_mode(pdo_stmt_t *stmt, zend_long mode, zval *args, uint
18321827
}
18331828

18341829
if (SUCCESS == retval) {
1835-
#ifdef ilia_0 /* we'll only need this when we have persistent statements, if ever */
1836-
if (stmt->dbh->is_persistent) {
1837-
php_error_docref(NULL, E_WARNING, "PHP might crash if you don't call $stmt->setFetchMode() to reset to defaults on this persistent statement. This will be fixed in a later release");
1838-
}
1839-
#endif
18401830
ZVAL_COPY(&stmt->fetch.into, &args[0]);
18411831
}
18421832

0 commit comments

Comments
 (0)