]> granicus.if.org Git - php/commitdiff
remove traversable interface; apparently it's not enough, and this stuff is too
authorWez Furlong <wez@php.net>
Sun, 11 Sep 2005 14:27:10 +0000 (14:27 +0000)
committerWez Furlong <wez@php.net>
Sun, 11 Sep 2005 14:27:10 +0000 (14:27 +0000)
magical to figure out wtf should be added.

ext/pdo/pdo_stmt.c

index e746ca10cd20956964837c4e7ff7e79831a098d3..7ebc8b3321d0546880a6334ec193e7c65c012807 100755 (executable)
@@ -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));