Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45313 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45970 invoked from network); 18 Aug 2009 23:29:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Aug 2009 23:29:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.211.180 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 209.85.211.180 mail-yw0-f180.google.com Received: from [209.85.211.180] ([209.85.211.180:65124] helo=mail-yw0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/C1-33543-A693B8A4 for ; Tue, 18 Aug 2009 19:29:46 -0400 Received: by ywh10 with SMTP id 10so7609320ywh.7 for ; Tue, 18 Aug 2009 16:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=+RH3syUw9kkOBDNmXydgvSVeFt/Gf6mC+rOHNJp6018=; b=bSmjRbREXMd9Bz3/IKclTchQiq51uNMUSOfWN0dy6SkYCF8vB8qVCxaO0sZvN3Cewf xjbcP56YhdrYad0Mb4OmeGxg26X/GYviD62zbq5jAE7n8LhIrY/ItvPPGTCokmn7oEvc WPeVZ2sKsxkXLruwCpNlyvUL4tmyObyq9B6IA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=NlltK/vOJlXAM3TpR8njJQHRtysGwF6CJZQWPTVVupXnCeJn5XhAAQ70cL5huwd19D L8lzGuPVigk527b3T/n4DdKIW5tYrJexYd1B30ANl26oxK/UTAuo1IdDK9M1FfNhbiCh zAk8TyHcq33g2JJlgdypMsYci4MRaTX+Y5Q84= MIME-Version: 1.0 Received: by 10.150.18.31 with SMTP id 31mr9071943ybr.332.1250638183736; Tue, 18 Aug 2009 16:29:43 -0700 (PDT) Date: Tue, 18 Aug 2009 16:29:43 -0700 Message-ID: To: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Regarding serialize From: chrisstocktonaz@gmail.com (Chris Stockton) Hello, I have came across some strange behavior today, after some time I got it to the simplest form to reproduce. I have not yet attempted to patch/investigate the code within php source, I want to first confirm this is indeed a problem and I haven't just had a long day, as well as verify it is not a known issue. I have searched the bug tracker; found nothing similar. Below is reproducible code, tested on php 5.3.0 release build, as well as the latest snapshot and a random version installed in a yum repository (5.1.6). Regards, -Chris -- class testSerialize { protected $_foo = Array(); } $base = new testSerialize; $str1 = 'O:13:"testSerialize":1:{s:7:"*_foo";a:0:{}}'; $str2 = serialize($base); var_dump($str1); var_dump($str2); var_dump($str1 == $str2); var_dump(escapeshellarg($str1)); var_dump(escapeshellarg($str2));