Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__sleep() msgpack_unserialize_map_item illegal key type #121

Closed
the-djmaze opened this issue Nov 19, 2017 · 0 comments
Closed

__sleep() msgpack_unserialize_map_item illegal key type #121

the-djmaze opened this issue Nov 19, 2017 · 0 comments

Comments

@the-djmaze
Copy link

the-djmaze commented Nov 19, 2017

Can you add this to your tests?

class TestObject
{
	public $foo = 'bar';
	function __sleep()
	{
		return array('foo');
	}
}
ini_set('msgpack.php_only', 1);
msgpack_unserialize(msgpack_serialize(array(
	'object' => new TestObject()
)));
@the-djmaze the-djmaze changed the title msgpack_unserialize_map_item illegal key type __sleep() msgpack_unserialize_map_item illegal key type Nov 19, 2017
@m6w6 m6w6 closed this as completed Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants