php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64786 tidy/020.phpt fails on x64 builds
Submitted: 2013-05-07 22:26 UTC Modified: 2018-06-24 04:28 UTC
From: mattficken@php.net Assigned: cmb (profile)
Status: Closed Package: Testing related
PHP Version: 5.5Git-2013-05-07 (snap) OS: Windows
Private report: No CVE-ID: None
 [2013-05-07 22:26 UTC] mattficken@php.net
Description:
------------
ext/tidy/tests/020.phpt produces different output when run on x64 php builds/x64 web servers (both apache and builtin web, with and without opcache).


From the output, it looks like the document was set to XHTML-Transitional, while the test expected XHTML-Strict.


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=E_ALL | E_NOTICE | E_WARNING
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=php_enchant.dll
extension_dir=C:\php-sdk\php-5.5-ts-windows-vc11-x64-r4cea61a\ext
html_errors=Off
ignore_repeated_errors=Off
log_errors=On
magic_quotes_runtime=Off
max_execution_time=60
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


Test script:
---------------
Copy the TEST section of ext/tidy/tests/020.phpt to a .php file in the docroot of apache or builtin web and send an HTTP request to run it.

Expected result:
----------------
bool(true)
bool(true)
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<p>Isto 
para testes.</p>
</body>
</html>


Actual result:
--------------
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
bool(true) bool(true)
<p>Isto para testes.</p>
&#0;
</body>
</html>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-04-08 21:02 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2018-04-08 21:02 UTC] cmb@php.net
The Windows x64 builds of PHP 5 are marked as experimental, so I
wouldn't be surprised that there are some strange issues – I'm
referring to the actual result you have presented, where the
output is totally mixed up.

Anyhow, can you still reproduce this with presently supported
versions?  It seems that the test succeeds on our AppVeyor builds.
 [2018-06-24 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2018-06-24 04:28 UTC] mattficken@php.net
-Status: No Feedback +Status: Closed
 [2018-06-24 04:28 UTC] mattficken@php.net
This issue is fixed on 7.0+ builds.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 02:02:52 2024 UTC