[php-maint] Bug#632194: php5-common: var_export output data even with return=true

Alexandre Leroy alexandre.leroy at zslide.com
Thu Jun 30 13:28:02 UTC 2011


Package: php5-common
Version: 5.2.6.dfsg.1-1+lenny12
Severity: normal


This bug was introduced in 5.2.6.dfsg.1-1+lenny12
When using var_export on an object, its members will be output even when 
requesting result to be returned.

How to reproduce:
>$ cat test.php
<?php #coding: utf-8

class MyClass {

    private $value;
}

$a = array('foo' => 'bar',
           'fail' => new MyClass);

var_export($a, true);
echo ".\n";

Expected result:
>$ php test.php 
.

Actual result:
>$ php test.php 
 'value' => .

-- System Information:
Debian Release: 5.0.8
  APT prefers oldstable
  APT policy: (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-common depends on:
ii  libc6                       2.7-18lenny7 GNU C Library: Shared libraries
ii  sed                         4.1.5-6      The GNU sed stream editor

php5-common recommends no packages.

php5-common suggests no packages.

-- no debconf information





More information about the pkg-php-maint mailing list