From: Wez Furlong Date: Sun, 11 Sep 2005 14:27:10 +0000 (+0000) Subject: remove traversable interface; apparently it's not enough, and this stuff is too X-Git-Tag: php-5.1.0RC2~277 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81151a5dbfa31f82c65108948633f46e6f7f5ff4;p=php remove traversable interface; apparently it's not enough, and this stuff is too magical to figure out wtf should be added. --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index e746ca10cd..7ebc8b3321 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -1990,7 +1990,9 @@ void pdo_stmt_init(TSRMLS_D) pdo_dbstmt_ce = zend_register_internal_class(&ce TSRMLS_CC); pdo_dbstmt_ce->get_iterator = pdo_stmt_iter_get; pdo_dbstmt_ce->create_object = pdo_dbstmt_new; +#if no_crazy_hidden_deps_on_other_interfaces zend_class_implements(pdo_dbstmt_ce TSRMLS_CC, 1, zend_ce_traversable); +#endif zend_declare_property_null(pdo_dbstmt_ce, "queryString", sizeof("queryString")-1, ZEND_ACC_PUBLIC TSRMLS_CC); memcpy(&pdo_dbstmt_object_handlers, &std_object_handlers, sizeof(zend_object_handlers));