From: mattficken Operating system: Windows PHP version: 5.3Git-2013-05-01 (snap) Package: ICONV related Bug Type: Bug Bug description:iconv PHPTs return NULL bytes with Opcache
Description: ------------ 5.3.25rc1 and recent snapshots with Opcache-7.01 on Apache-mod_php, these 2 PHPTs fail: ext/iconv/tests/eucjp2sjis.phpt ext/iconv/tests/eucjp2utf8.phpt Both tests return NULL bytes (0x0) about equal to the length of the expected result. This seems to only happen with Opcache and the tests pass when Opcache is not enabled. These tests PASS on CLI (with or without opcache) using run-tests.php Here is the INI I used: auto_append_file= auto_prepend_file= disable_defs=Off display_errors=On display_startup_errors=Off docref_ext=.html docref_root= error_append_string= error_prepend_string= error_reporting=2039 extension=php_bz2.dll extension=php_com_dotnet.dll extension=php_curl.dll extension=php_fileinfo.dll extension=php_gd2.dll extension=php_gettext.dll extension=php_gmp.dll extension=php_intl.dll extension=php_imap.dll extension=php_ldap.dll extension=php_mbstring.dll extension=php_exif.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_openssl.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pdo_odbc.dll extension=php_pgsql.dll extension=php_shmop.dll extension=php_soap.dll extension=php_sockets.dll extension=php_sqlite3.dll extension=php_tidy.dll extension=php_xmlrpc.dll extension=php_xsl.dll extension_dir=C:\php-sdk\php-5.3-ts-windows-vc9-x86-r15b554c\ext\ html_errors=Off ignore_repeated_errors=Off log_errors=On magic_quotes_runtime=Off max_execution_time=60 opcache.enable=1 opcache.enable_cli=1 opcache.enable_file_override=1 opcache.fast_shutdown=1 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.memory_consumption=128 opcache.revalidate_freq=60 opcache.save_comments=0 open_basedir= output_buffering=On output_handler= precision=14 report_memleaks=On report_zend_debug=Off safe_mode=0 session.auto_start=Off track_errors=On unicode.from_error_mode=U_INVALID_SUBSTITUTE unicode.output_encoding=UTF-8 unicode.runtime_encoding=ISO-8859-1 unicode.script_encoding=UTF-8 zend_extension=C:\php-sdk\php-5.3-ts-windows-vc9-x86-r15b554c\ext\php_opcache.dll Test script: --------------- ext/iconv/tests/eucjp2sjis.phpt ext/iconv/tests/eucjp2utf8.phpt You can run these by copying the TEST section from each PHPT into a .php file and running it on Apache by requesting that .php file using a web browser. Expected result: ---------------- Return strings matching EXPECT sections of PHPTs Actual result: -------------- Both tests return NULL bytes (0x0) about equal to the length of the expected result. -- Edit bug report at https://bugs.php.net/bug.php?id=64751&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64751&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64751&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64751&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64751&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64751&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64751&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64751&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64751&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64751&r=support Expected behavior: https://bugs.php.net/fix.php?id=64751&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64751&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64751&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64751&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64751&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64751&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64751&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64751&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64751&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64751&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64751&r=mysqlcfg