Bug #81667 [NEW]: Error on serialization with MongoDB class
| From: | giacomo dot fabbian at gmail dot com | Date: | Sat, 27 Nov 2021 12:29:54 +0000 |
| Subject: | Bug #81667 [NEW]: Error on serialization with MongoDB class | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238008@lists.php.net to get a copy of this message | ||
From: giacomo dot fabbian at gmail dot com
Operating system:
PHP version: 7.4.26
Package: *General Issues
Bug Type: Bug
Bug description:Error on serialization with MongoDB class
Description:
------------
My application is based on Laravel and MongoDB. Serialization is often
used in this framework for session and emit event. When I try to pass a
MongoDB model with nested data with more than 2 level the
serialization() not working. The only workaround that I have found is to
cast data into array of object.
Is there a way to fix this without casting?
Thanks
Actual result:
--------------
I got this exception: Serialization of 'MongoDB\Driver\Manager' is not
allowed
--
Edit bug report at https://bugs.php.net/bug.php?id=81667&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81667&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81667&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81667&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81667&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81667&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81667&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81667&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81667&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81667&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81667&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81667&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81667&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81667&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81667&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81667&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81667&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81667&r=mysqlcfg