Bug #66085 [Asn]: in function serialize() there is irregular behaviour
| From: | bwoebi@php.net | Date: | Wed, 13 Nov 2013 21:01:33 +0000 |
| Subject: | Bug #66085 [Asn]: in function serialize() there is irregular behaviour | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-182746@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
Updated by: bwoebi@php.net
Reported by: machine dot check dot exception at gmail dot com
Summary: in function serialize() there is irregular behaviour
Status: Assigned
Type: Bug
Package: Arrays related
Operating System: Windows 7
PHP Version: 5.5.5
Assigned To: bwoebi
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
[2013-11-13 12:28:03] bwoebi@php.net
Are you sure that that is PHP 5.5.5?
At least I can't reproduce it here with 5.5.5 here. (and http://3v4l.org/GeU1o#v510 tells me the same).
------------------------------------------------------------------------
[2013-11-13 11:21:38] machine dot check dot exception at gmail dot com
I have this version installed: VC11 x86 Thread Safe (2013-Oct-17 00:30:06)
From phpinfo():
Build Date Oct 15 2013 10:25:39
Compiler MSVC11 (Visual C++ 2012)
Architecture x86
And the bug is still there.
------------------------------------------------------------------------
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