]> granicus.if.org Git - php/commitdiff
Remove dead code
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 21 Sep 2020 13:22:47 +0000 (15:22 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 21 Sep 2020 13:33:39 +0000 (15:33 +0200)
The "if ever" here is the relevant bit...

ext/pdo/pdo_stmt.c

index b0f7bbeede81386d1d60a5de6995d6a8b64b84c3..91de279087a4619d805771a65ab76b5166619d0a 100644 (file)
@@ -1801,11 +1801,6 @@ int pdo_stmt_setup_fetch_mode(pdo_stmt_t *stmt, zend_long mode, zval *args, uint
 
                        if (SUCCESS == retval) {
                                ZVAL_UNDEF(&stmt->fetch.cls.ctor_args);
-#ifdef ilia_0 /* we'll only need this when we have persistent statements, if ever */
-                               if (stmt->dbh->is_persistent) {
-                                       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");
-                               }
-#endif
                                if (num_args == 2) {
                                        if (Z_TYPE(args[1]) != IS_NULL && Z_TYPE(args[1]) != IS_ARRAY) {
                                                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
                        }
 
                        if (SUCCESS == retval) {
-#ifdef ilia_0 /* we'll only need this when we have persistent statements, if ever */
-                               if (stmt->dbh->is_persistent) {
-                                       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");
-                               }
-#endif
                                ZVAL_COPY(&stmt->fetch.into, &args[0]);
                        }