From: Operating system: Gentoo Linux PHP version: 5.4.0RC7 Package: Arrays related Bug Type: Bug Bug description:array_intersect_assoc() with duplicate arrays for values gives of a notice
Description: ------------ Gentoo package version: dev-lang/php-5.4.0_rc7-r1 Configure: ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr/lib64/php5.4 --mandir=/usr/lib64/php5.4/man --infodir=/usr/lib64/php5.4/info --libdir=/usr/lib64/php5.4/lib --with-libdir=lib64 --without-pear --disable-maintainer-zts --disable-bcmath --with-bz2 --disable-calendar --enable-ctype --with-curl --with-curlwrappers --enable-dom --without-enchant --enable-exif --enable-fileinfo --enable-filter --disable-ftp --with-gettext --without-gmp --enable-hash --without-mhash --with-iconv --disable-intl --enable-ipv6 --enable-json --without-kerberos --enable-libxml --enable-mbstring --with-mcrypt --without-mssql --with-onig=/usr --with-openssl --with-openssl-dir=/usr --disable-pcntl --enable-phar --enable-pdo --without-pgsql --enable-posix --with-pspell --without-recode --enable-simplexml --disable-shmop --without-snmp --disable-soap --disable-sockets --without-sqlite3 --without-sybase-ct --disable-sysvmsg --disable-sysvsem --disable-sysvshm --without-tidy --enable-tokenizer --disable-wddx --enable-xml --disable-xmlreader --disable-xmlwriter --without-xmlrpc --without-xsl --disable-zip --with-zlib --disable-debug --enable-dba --without-cdb --with-db4 --disable-flatfile --with-gdbm --disable-inifile --without-qdbm --with-freetype-dir=/usr --with-t1lib=/usr --disable-gd-jis-conv --with-jpeg-dir=/usr --with-png-dir=/usr --without-xpm-dir --with-gd --with-ldap --without-ldap-sasl --with-mysql=mysqlnd --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-mysqli=mysqlnd --without-pdo-dblib --with-pdo-mysql=mysqlnd --without-pdo-pgsql --without-pdo-sqlite --without-pdo-odbc --with-readline --without-libedit --without-mm --with-pcre-regex=/usr --with-pcre-dir=/usr --with-config-file-path=/etc/php/cli-php5.4 --with-config-file-scan-dir=/etc/php/cli-php5.4/ext-active --disable-embed --enable-cli --disable-cgi --disable-fpm --without-apxs2 Test script: --------------- <?php $foo = array('baz' => Array (0 => 'X' )); $bar = array('baz' => Array (1 => 'Y' )); print_r(array_intersect_assoc($foo, $bar)); Expected result: ---------------- Array ( [baz] => Array ( [0] => X ) ) Actual result: -------------- PHP Notice: Array to string conversion in array_intersect_assoc_short.php on line 6 Notice: Array to string conversion in array_intersect_assoc_short.php on line 6 PHP Notice: Array to string conversion in array_intersect_assoc_short.php on line 6 Notice: Array to string conversion in array_intersect_assoc_short.php on line 6 Array ( [baz] => Array ( [0] => X ) ) -- Edit bug report at https://bugs.php.net/bug.php?id=61118&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61118&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61118&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61118&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61118&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61118&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61118&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61118&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61118&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61118&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61118&r=support Expected behavior: https://bugs.php.net/fix.php?id=61118&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61118&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61118&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61118&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61118&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61118&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61118&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61118&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61118&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61118&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61118&r=mysqlcfg