Bug #66085 [Com]: in function serialize() there is irregular behaviour
| From: | will at johnstonclan dot net | Date: | Mon, 16 Dec 2013 17:32:06 +0000 |
| Subject: | Bug #66085 [Com]: in function serialize() there is irregular behaviour | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183361@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66085&edit=1
ID: 66085
Comment by: will at johnstonclan dot net
Reported by: machine dot check dot exception at gmail dot com
Summary: in function serialize() there is irregular behaviour
Status: Verified
Type: Bug
Package: Arrays related
Operating System: Windows 7
PHP Version: 5.5.5
Block user comment: N
Private report: N
New Comment:
Another test case available here:
https://bugs.php.net/bug.php?id=66292
Previous Comments:
------------------------------------------------------------------------
[2013-11-14 11:27:40] bwoebi@php.net
That actually is more complicated than I thought. If I fix that, the recursion prevention
doesn't work anymore in other edge cases.
Another developer might feel free to fix this.
------------------------------------------------------------------------
[2013-11-13 21:01:33] bwoebi@php.net
I see; thank you for the report, I'll investigate further tomorrow.
Seems the recursion prevention is buggy. Maybe it needs an extra stack for every serialize() call.
------------------------------------------------------------------------
[2013-11-13 20:43:19] machine dot check dot exception at gmail dot com
The bug is there. Check this: http://3v4l.org/DJg0j
It looks like it is a problem with memory allocation. Windows and linux allocate in different ways,
that's why probably windows "crashes" earlier than linux (in maybe any overflow?).
------------------------------------------------------------------------
[2013-11-13 16:16:15] bwoebi@php.net
I really can't believe that.
Code for serialization is platform independent
(http://lxr.php.net/xref/PHP_5_5/ext/standard/var.c#719)
------------------------------------------------------------------------
[2013-11-13 12:53:44] machine dot check dot exception at gmail dot com
Here is there info about the system i'm using from phpinfo():
PHP Version 5.5.5
System Windows NT XYZ-PC 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586
Build Date Oct 15 2013 10:25:39
Compiler MSVC11 (Visual C++ 2012)
Architecture x86
Configure Command cscript /nologo configure.js "--enable-snapshot-build"
"--disable-isapi" "--enable-debug-pack" "--without-mssql"
"--without-pdo-mssql" "--without-pi3web"
"--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared"
"--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared"
"--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared"
"--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared"
"--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File F:\wamp\bin\apache\apache2.4.6\bin\php.ini
Apache Version Apache/2.4.6 (Win32) PHP/5.5.5
Apache API Version 20120211
http://3v4l.org/GeU1o#v510 is running under linux. Can it
be somethin just related with the windows version?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=66085
--
Edit this bug report at https://bugs.php.net/bug.php?id=66085&edit=1