Bug #70963 [NEW]: Unserialize shows UNKNOW in result
| From: | laruence@php.net | Date: | Tue, 24 Nov 2015 02:53:13 +0000 |
| Subject: | Bug #70963 [NEW]: Unserialize shows UNKNOW in result | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-197386@lists.php.net to get a copy of this message | ||
From: laruence
Operating system:
PHP version: 7.0.0RC7
Package: *General Issues
Bug Type: Bug
Bug description:Unserialize shows UNKNOW in result
Description:
------------
Unserialize shows UNKNOW in result
Test script:
---------------
var_dump(unserialize('a:2:{i:0;O:9:"exception":1:{s:16:"'."\0".'Exception'."\0".'trace";s:4:"test";}i:1;R:3;}'));
Expected result:
----------------
no UNKNOW
Actual result:
--------------
array(2) {
[0]=>
object(Exception)#1 (6) {
["message":protected]=>
string(0) ""
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(10) "/tmp/1.php"
["line":protected]=>
int(2)
["trace":"Exception":private]=>
&UNKNOWN:0
}
[1]=>
&UNKNOWN:0
}
--
Edit bug report at https://bugs.php.net/bug.php?id=70963&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70963&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70963&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70963&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70963&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70963&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70963&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70963&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70963&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70963&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70963&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70963&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70963&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70963&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70963&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70963&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70963&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70963&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70963&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70963&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70963&r=mysqlcfg