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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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: Sat Apr 20 04:01:28 2024 UTC