Casting Closure to Array
commit8f254292314b24cffb86f036c4ddf96e8ef2b745
authorLiran Nuna <liranuna@fb.com>
Thu, 3 Jul 2014 22:14:24 +0000 (3 15:14 -0700)
committerfacebook-github-bot <githubbot@fb.com>
Thu, 3 Jul 2014 22:30:23 +0000 (3 15:30 -0700)
tree605c843436dc3bb7c17fb38430088455e9a93481
parent18339637f5af491ea699dba7e0b72c6a7dc0df26
Casting Closure to Array

Summary: When casting an object of type Closure to an Array, the result should be an array containing the closure.

Reviewed By: @fredemmott

Differential Revision: D1411182
hphp/runtime/base/object-data.cpp
hphp/runtime/base/tv-comparisons.cpp
hphp/test/slow/closure/array_equality.php [new file with mode: 0644]
hphp/test/slow/closure/array_equality.php.expect [new file with mode: 0644]
hphp/test/slow/closure/comparison.php [new file with mode: 0644]
hphp/test/slow/closure/comparison.php.expect [new file with mode: 0644]
hphp/test/slow/closure/equality_as_member.php [new file with mode: 0644]
hphp/test/slow/closure/equality_as_member.php.expect [new file with mode: 0644]
hphp/test/slow/closure/to_array.php [new file with mode: 0644]
hphp/test/slow/closure/to_array.php.expect [new file with mode: 0644]