php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51037 Test var_dump() function fails
Submitted: 2010-02-13 01:12 UTC Modified: 2010-02-13 21:46 UTC
From: jvp at 4ssl dot us Assigned:
Status: Closed Package: Arrays related
PHP Version: 5.2.12 OS: centos 5.4 x86_64
Private report: No CVE-ID: None
 [2010-02-13 01:12 UTC] jvp at 4ssl dot us
Description:
------------
Test var_dump() function [ext/standard/tests/general_functions/var_dump_64bit.phpt]

Reproduce code:
---------------
'make test' failure

Expected result:
----------------
pass

Actual result:
--------------
fail

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-13 01:18 UTC] derick@php.net
Please don't provide this little information. At *least* provide the diff files. In most cases, test failures are however because of simple changes on the system and it is *important* that you compile PHP from source and not use a distribution's package. Test failures are also not necessarily bugs.
 [2010-02-13 01:31 UTC] jvp at 4ssl dot us
i AM compiling from source. i agree that test failures may be due to a bogus test, but these have been in use for some time now and errors should be corrected or the bugs noted. since var_dump is hardly an arcane, little-used function; i would imagine problems should be afforded some timely attention.

using:

.\configure 	\
	--disable-cgi	\
	--disable-ipv6    	\
	--enable-bcmath    	\
	--enable-calendar   	\
	--enable-dom    	\
	--enable-exif    	\
	--enable-fastcgi  	\
	--enable-force-cgi-redirect 	\
	--enable-ftp    	\
	--enable-gd-jis-conv   	\
	--enable-gd-native-ttf   	\
	--enable-json   	\
	--enable-pdo 	\
	--enable-short-tags    	\
	--enable-soap   	\
	--enable-sockets    	\
	--enable-zip   	\
	--with-Xpm-dir   	\
	--with-apxs2=\usr\sbin\apxs 	\
	--with-bz2   	\
	--with-curl   	\
	--with-db4   	\
	--with-freetype-dir 	\
	--with-gd   	\
	--with-gettext   	\
	--with-imap   	\
	--with-imap-ssl   	\
	--with-jpeg-dir 	\
	--with-kerberos 	\
	--with-libdir=lib64  	\
	--with-mcrypt   	\
	--with-mhash   	\
	--with-mysql  	\
	--with-mysql-sock  	\
	--with-mysqli 	\
	--with-ncurses  	\
	--with-pdo-mysql  	\
	--with-png-dir 	\
	--with-pspell  	\
	--with-snmp  	\
	--with-t1lib   	\
	--with-ttf   	\
	--with-xpm-dir 	\
	--with-xsl 	\
	--with-zlib-dir

--
thank you,

johann
 [2010-02-13 01:42 UTC] derick@php.net
Please provide the diff files (for this and all the other bugs you filed tonight).
 [2010-02-13 02:16 UTC] jvp at 4ssl dot us
i do not have any patches. i took a fresh 5.2.12 and did configure, make, and make test. make completed, but make test produced the noted errors, infra:

13 FAILED TESTS: for php 5.2.12 on 12 FEB 2010 13:00 PST
---------------------------------------------------------------------
#50971 -- checking: might be fixed in svn
     Bug #43073 (TrueType bounding box is wrong for angle<>0) [ext/gd/tests/bug43073.phpt]
     Bug #48801 (Problem with imagettfbbox) [ext/gd/tests/bug48801.phpt]
     Test imagecolorallocate() function : usage variations  - passing different data types to fourth argument [ext/gd/tests/imagecolorallocate_variation4.phpt]

#50627 -- id'd: several hex vals wrong in tests
     mhash() test [ext/mhash/tests/001.phpt]
     mhash_keygen_s2k() test [ext/mhash/tests/003.phpt]

#51033 -- new
     Bug #41125 (PDO mysql + quote() + prepare() can result in seg fault) [ext/pdo_mysql/tests/bug41125.phpt]

#51034 -- new
     Bug #44327 (PDORow::queryString property & numeric offsets / Crash) [ext/pdo_mysql/tests/bug44327.phpt]

#51035 -- new
     Test posix_getgrgid() function : basic functionality [ext/posix/tests/posix_getgrgid_basic.phpt]

#51036 -- new
     Bug #34657 (If you get a communication problem when loading the WSDL, it fatal's) [ext/soap/tests/bugs/bug34657.phpt]

#51037 -- new
     Test var_dump() function [ext/standard/tests/general_functions/var_dump_64bit.phpt]

#51038 -- new
     HTML entities with invalid chars [ext/standard/tests/strings/htmlentities-utf.phpt]

#51039 -- new
     Test setlocale() function : usage variations - Setting all available locales in the platform [ext/standard/tests/strings/setlocale_variation2.phpt]

#51040 -- new
     xmlwriter_write_attribute_ns with missing param [ext/xmlwriter/tests/xmlwriter_write_attribute_ns_error_001.phpt]

--
thank you,

johann
 [2010-02-13 02:18 UTC] rasmus@php.net
He wasn't asking for patches.  Whenever a test fails and .diff file is 
generated for that test that shows the difference between the expected 
output and the actual output of the test.  Without those, your bug 
reports of failed tests are useless.  We have no idea whether it is a 
local configuration issue, a compile issue or a genuine bug that might 
be causing it.
 [2010-02-13 05:10 UTC] jvp at 4ssl dot us
OH! THOSE diff files.

i am sorry, i am normally quite content to wait for rpm's to float down from centos, but i need 5.2.12 for an nginx install i feel i need to do to handle a volume situation. since i rarely use source to install, i had completely forgotten about the test diff's being created.

they are all available here:

http://4ssl.us/webdev/

these include three fails that were 'expected' which i have yet had time to look into why that is so.

--
thank you,

johann
 [2010-02-13 15:44 UTC] jani@php.net
Fixed in all branches in SVN.
 [2010-02-13 15:45 UTC] jani@php.net
Note: This was propably caused by someone having weird editor with weird EOL-style, also the svn:eol-style was set incorrectly. Now the output and properties are same as with the 32bit version of the test.
 [2010-02-13 17:54 UTC] jvp at 4ssl dot us
when you say 'svn', am i to gather that these changes are *not* back-ported to released versions such as, most importantly for myself, 5.2.12?


--
thank you,

johann
 [2010-02-13 21:46 UTC] jani@php.net
There is no time machine around..do not reopen this anymore.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 11:01:32 2024 UTC