|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-17 07:05 UTC] helly@php.net
[2006-07-17 07:57 UTC] tony2001@php.net
[2006-07-17 09:00 UTC] public at grik dot net
[2014-04-14 12:21 UTC] dm@php.net
-Status: Open
+Status: Not a bug
-Package: Feature/Change Request
+Package: *General Issues
[2014-04-14 12:21 UTC] dm@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Description: ------------ I am not sure already what is it related to, but it's getting interesting :) The engine does not recognise the class that implements the ArrayAccess interface as declared in the code written before the class declaration is placed. Reproduce code: --------------- <?php var_dump(class_exists('validatorCheck')); class validatorCheck implements ArrayAccess { function offsetGet($key){} function offsetSet($key, $value) {} function offsetUnset($key) {} function offsetExists($offset) {} //class end } var_dump(class_exists('validatorCheck')); ?> Expected result: ---------------- bool(true) bool(true) Actual result: -------------- bool(false) bool(true)