php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48976 Missing Error on serialize resources with serialize & wddx_serialize_value
Submitted: 2009-07-19 18:05 UTC Modified: 2009-07-20 18:00 UTC
From: marc-bennewitz at arcor dot de Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.3.0 OS: WinXP
Private report: No CVE-ID: None
 [2009-07-19 18:05 UTC] marc-bennewitz at arcor dot de
Description:
------------
Missing Error on serialize resources with serialize and wddx_serialize_value

Reproduce code:
---------------
$value = fopen(__FILE__, 'rb');
var_dump(serialize($value));
var_dump(wddx_serialize_value($value));


Expected result:
----------------
FALSE and PHP-Notice-Message for both serialize calls

Actual result:
--------------
string(4) "i:0;"
string(61) "<wddxPacket version='1.0'><header/><data></data></wddxPacket>"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-20 10:59 UTC] jani@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 [2009-07-20 18:00 UTC] marc-bennewitz at arcor dot de
http://php.net/manual/function.serialize.php
-> There is the following message documented for the value argument:
"The value to be serialized. serialize()  handles all types, except the resource-type. ..."
-> There is no information to store resources as an integer value)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 16:01:36 2024 UTC