|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-04-22 06:42 UTC] laruence@php.net
[2012-04-22 07:02 UTC] nanocaiordo at gmail dot com
[2012-04-22 08:57 UTC] nanocaiordo at gmail dot com
[2012-04-22 10:25 UTC] johannes@php.net
-Status: Open
+Status: Not a bug
[2012-04-22 10:25 UTC] johannes@php.net
[2012-05-11 14:03 UTC] djmaze at cpgnuke dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 07:00:02 2025 UTC |
Description: ------------ I cannot find anything within changelogs, bug reportings and documentations relating to this issue. It works fine in php 5.3.10, but gives me fatal error in PHP 5.4. Test script: --------------- <?php error_reporting(E_ALL | E_DEPRECATED | E_STRICT); ini_set('display_errors', 1); interface Foo_SQL_Interface_Result extends ArrayAccess, Countable, Iterator { public function data_seek($offset); public function fetch_all($resulttype=MYSQLI_NUM); public function fetch_array(); public function fetch_assoc(); public function fetch_field_direct($offset); public function fetch_field(); public function fetch_fields(); public function fetch_object(); public function fetch_row(); public function field_seek($offset); public function free(); } class Foo_MySQLi_UseResult extends MySQLi_Result { function __construct(MySQLi $obj) { parent::__construct($obj); } public function fetch_array($type_cast=false) {} public function fetch_assoc($type_cast=false) {} public function fetch_row($type_cast=false) {} public function fetch_all($resulttype=MYSQLI_ASSOC, $type_cast=false) {} } class Foo_MySQLi_Result extends Foo_MySQLi_UseResult implements Foo_SQL_Interface_Result { public function data_seek($offset) {} public function fetch_field_direct($offset) {} public function field_seek($offset) {} # ArrayAccess public function offsetExists($k) {} public function offsetGet($k) {} public function offsetSet($k, $v) {} public function offsetUnset($k) {} # Countable public function count() {} # Iterator public function key() {} public function current() {} public function next() {} public function rewind() {} public function valid() {} } Actual result: -------------- Fatal error: Class Foo_MySQLi_Result could not implement interface Iterator in Unknown on line 0