php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77873 improve error message when __serialize doesn't return an array
Submitted: 2019-04-09 14:29 UTC Modified: -
From: nicolas dot grekas+php at gmail dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: Next Minor Version OS:
Private report: No CVE-ID: None
 [2019-04-09 14:29 UTC] nicolas dot grekas+php at gmail dot com
Description:
------------
when __serialize returns a non array, "__serialize() must return an array" is displayed

it would be great to have the class name before:

"Foo::__serialize() must return an array"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-04-09 15:27 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=cb145e18b230b59f235855ba976fed14ca531755
Log: Fixed bug #77873
 [2019-04-09 15:27 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 09:01:29 2024 UTC