Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1891 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6631 invoked from network); 22 May 2003 14:30:53 -0000 Received: from unknown (HELO yamazaki.int.spalletti.it) (62.94.192.147) by pb1.pair.com with SMTP; 22 May 2003 14:30:53 -0000 Received: from zero.iast.it (zero.int.spalletti.it [192.168.1.10]) by yamazaki.int.spalletti.it (Postfix on SuSE Linux 7.3 (i386)) with ESMTP id C334E5CF1 for ; Thu, 22 May 2003 16:30:34 +0200 (CEST) Message-ID: <5.2.1.1.0.20030522132902.02c9c4a8@posta.spalletti.it> X-Sender: programmazione_iastit@posta.iast.it X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Thu, 22 May 2003 16:30:49 +0200 To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Unserialize bug in PHP 4.3.2RC4? From: programmazione@iast.it (Iacopo Spalletti) I'm testing PHP 4.3.2RC4 and i think i found a bug in unserialize function If you run this script: You should expect the second variable to contain an array with a single floating value. On my systems (Linux SuSE x86) i got this notice: Notice: unserialize(): Error at offset 15 of 16 bytes in script-name.php on line 12 Result for unserialize() is "false" Needless to say that on PHP 4.3.0 all run fine Serializing/deserializing float var it's ok Iacopo Spalletti i dot spalletti at iast dot it PGP key block: http://www.iast.it/pgp