Fix php5 incompatibility where casting a resource to an object did not properly wrap...
commit9c277a62fc6c7e559ed4eef02364b7b992f3d8e2
authorKeith Miller <kdm@fb.com>
Thu, 29 May 2014 23:13:52 +0000 (29 16:13 -0700)
committerfacebook-github-bot <githubbot@fb.com>
Fri, 13 Jun 2014 21:49:28 +0000 (13 14:49 -0700)
tree6f7a4724ef00b3fe8f7bd54556484d02bfcb4f37
parent0494ea2c71f374765b6fbbcf8f207bd3d67497b3
Fix php5 incompatibility where casting a resource to an object did not properly wrap the resource in an stdClass.

Summary: The bytecode instruction in the CastObject did not properly wrap resources inside an stdClass. Fixes #2715

Reviewed By: @fredemmott

Differential Revision: D1355430
hphp/runtime/base/tv-helpers.cpp
hphp/test/slow/cast_resource_to_object.php [new file with mode: 0644]
hphp/test/slow/cast_resource_to_object.php.expect [new file with mode: 0644]