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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nicolas dot grekas+php at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Dec 14 10:00:01 2025 UTC