RC6 is worse than RC1? - test script fails on basic&session tests on Linux (RC1 is OK)

From: Date: Thu, 05 Apr 2001 04:24:14 +0000
Subject: RC6 is worse than RC1? - test script fails on basic&session tests on Linux (RC1 is OK)
Groups: php.qa 
Request: Send a blank email to php-qa+get-2801@lists.php.net to get a copy of this message
I run test scripts as follows for both 4.0.5RC1 and 4.0.5RC6 $ make distclean $ ./configure $ cp php.ini-optimized php.ini $ make test RC6 fails basic tests while RC1 does not. There is post that getting similar test result under Windows, but this system is Linux (RedHat 7.0.1/J Intel, glibc2.2, gcc-2.96) Other UN*X users seems to have no problem with RC6, do you? I also take a look at diff of test scripts between RC1 and RC6. I don't see changes in test scripts, but test results. People may find problem in 4.0.5 under environment similar to mine. I would like to know if I'm the only one who get this result with RC6 under Linux. Tests that are failed in RC6, but not in RC1. Running tests in /home/yohgaki/tmp/php-4.0.5RC6/ext/session/tests ================================================================= Session Object Serialization (001.phpt) ... failed session_unset() without any session ... passed Session Object Deserialization (003.phpt) ... failed session_set_save_handler test (004.phpt) ... failed Custom save handler, multiple session_start()s, complex data structu ... failed Running tests in /home/yohgaki/tmp/php-4.0.5RC6/tests/basic =========================================================== Trivial "Hello World" test ... passed Simple POST Method test (002.phpt) ... failed GET and POST Method combined (003.phpt) ... failed Two variables in POST data (004.phpt) ... failed Three variables in POST data (005.phpt) ... failed Add 3 variables together and print result ... passed Multiply 3 variables and print result ... passed Divide 3 variables and print result ... passed Subtract 3 variables and print result ... passed Testing | and & operators ... passed Testing $argc and $argv handling (011.phpt) ... failed After "make test". All *out files are not the same as expected outputs, so it failed for these tests. [yohgaki@dev tmp]$ diff -u --recursive php-4.0.5RC6/tests/ php-4.0.5RC1/tests/ Only in php-4.0.5RC6/tests/basic: 002.exp Only in php-4.0.5RC6/tests/basic: 002.out Only in php-4.0.5RC6/tests/basic: 002.php Only in php-4.0.5RC6/tests/basic: 003.exp Only in php-4.0.5RC6/tests/basic: 003.out Only in php-4.0.5RC6/tests/basic: 003.php Only in php-4.0.5RC6/tests/basic: 004.exp Only in php-4.0.5RC6/tests/basic: 004.out Only in php-4.0.5RC6/tests/basic: 004.php Only in php-4.0.5RC6/tests/basic: 005.exp Only in php-4.0.5RC6/tests/basic: 005.out Only in php-4.0.5RC6/tests/basic: 005.php Only in php-4.0.5RC6/tests/basic: 011.exp Only in php-4.0.5RC6/tests/basic: 011.out Only in php-4.0.5RC6/tests/basic: 011.php Only in php-4.0.5RC6/tests/func: phpt.0RvC4D Only in php-4.0.5RC6/tests/func: phpt.KaAMK8 Only in php-4.0.5RC6/tests/func: phpt.N2jFmT Only in php-4.0.5RC6/tests/func: phpt.hFgQ8n Only in php-4.0.5RC6/tests/func: phpt.oWK9vD [yohgaki@dev tmp]$ [yohgaki@dev basic]$ pwd /home/yohgaki/tmp/php-4.0.5RC6/tests/basic [yohgaki@dev basic]$ ls -l total 96 -rw-r--r-- 1 yohgaki yohgaki 112 Aug 28 2000 001.phpt -rwxrwxr-x 1 yohgaki yohgaki 12 Apr 5 11:30 002.exp -rwxrwxr-x 1 yohgaki yohgaki 0 Apr 5 11:30 002.out -rwxrwxr-x 1 yohgaki yohgaki 36 Apr 5 11:30 002.php -rw-r--r-- 1 yohgaki yohgaki 132 Aug 28 2000 002.phpt -rwxrwxr-x 1 yohgaki yohgaki 37 Apr 5 11:30 003.exp -rwxrwxr-x 1 yohgaki yohgaki 2 Apr 5 11:30 003.out -rwxrwxr-x 1 yohgaki yohgaki 45 Apr 5 11:30 003.php -rw-r--r-- 1 yohgaki yohgaki 200 Aug 28 2000 003.phpt -rwxrwxr-x 1 yohgaki yohgaki 30 Apr 5 11:30 004.exp -rwxrwxr-x 1 yohgaki yohgaki 1 Apr 5 11:30 004.out -rwxrwxr-x 1 yohgaki yohgaki 42 Apr 5 11:30 004.php -rw-r--r-- 1 yohgaki yohgaki 179 Aug 28 2000 004.phpt -rwxrwxr-x 1 yohgaki yohgaki 32 Apr 5 11:30 005.exp -rwxrwxr-x 1 yohgaki yohgaki 2 Apr 5 11:30 005.out -rwxrwxr-x 1 yohgaki yohgaki 45 Apr 5 11:30 005.php -rw-r--r-- 1 yohgaki yohgaki 190 Aug 28 2000 005.phpt -rw-r--r-- 1 yohgaki yohgaki 137 Aug 28 2000 006.phpt -rw-r--r-- 1 yohgaki yohgaki 134 Aug 28 2000 007.phpt -rw-r--r-- 1 yohgaki yohgaki 132 Aug 28 2000 008.phpt -rw-r--r-- 1 yohgaki yohgaki 136 Aug 28 2000 009.phpt -rw-r--r-- 1 yohgaki yohgaki 114 Aug 28 2000 010.phpt -rwxrwxr-x 1 yohgaki yohgaki 33 Apr 5 11:30 011.exp -rwxrwxr-x 1 yohgaki yohgaki 0 Apr 5 11:30 011.out -rwxrwxr-x 1 yohgaki yohgaki 70 Apr 5 11:30 011.php -rw-r--r-- 1 yohgaki yohgaki 200 Aug 28 2000 011.phpt [yohgaki@dev basic]$ I also tested with PHP4.0.4pl1. Sgnificant results are: Running tests in /home/yohgaki/tmp/php-4.0.4pl1//tests/basic ============================================================ Trivial "Hello World" test ... passed Simple POST Method test (002.phpt) ... failed GET and POST Method combined (003.phpt) ... failed Two variables in POST data (004.phpt) ... failed Three variables in POST data (005.phpt) ... failed Add 3 variables together and print result ... passed Multiply 3 variables and print result ... passed Divide 3 variables and print result ... passed Subtract 3 variables and print result ... passed Testing | and & operators ... passed Testing $argc and $argv handling ... passed [yohgaki@dev basic]$ pwd /home/yohgaki/tmp/php-4.0.4pl1/tests/basic [yohgaki@dev basic]$ ls -l total 88 -rw-r--r-- 1 yohgaki yohgaki 112 Aug 28 2000 001.phpt -rwxrwxr-x 1 yohgaki yohgaki 12 Apr 5 12:05 002.exp -rwxrwxr-x 1 yohgaki yohgaki 0 Apr 5 12:05 002.out -rwxrwxr-x 1 yohgaki yohgaki 36 Apr 5 12:05 002.php -rw-r--r-- 1 yohgaki yohgaki 132 Aug 28 2000 002.phpt -rwxrwxr-x 1 yohgaki yohgaki 37 Apr 5 12:05 003.exp -rwxrwxr-x 1 yohgaki yohgaki 2 Apr 5 12:05 003.out -rwxrwxr-x 1 yohgaki yohgaki 45 Apr 5 12:05 003.php -rw-r--r-- 1 yohgaki yohgaki 200 Aug 28 2000 003.phpt -rwxrwxr-x 1 yohgaki yohgaki 30 Apr 5 12:05 004.exp -rwxrwxr-x 1 yohgaki yohgaki 1 Apr 5 12:05 004.out -rwxrwxr-x 1 yohgaki yohgaki 42 Apr 5 12:05 004.php -rw-r--r-- 1 yohgaki yohgaki 179 Aug 28 2000 004.phpt -rwxrwxr-x 1 yohgaki yohgaki 32 Apr 5 12:05 005.exp -rwxrwxr-x 1 yohgaki yohgaki 2 Apr 5 12:05 005.out -rwxrwxr-x 1 yohgaki yohgaki 45 Apr 5 12:05 005.php -rw-r--r-- 1 yohgaki yohgaki 190 Aug 28 2000 005.phpt -rw-r--r-- 1 yohgaki yohgaki 137 Aug 28 2000 006.phpt -rw-r--r-- 1 yohgaki yohgaki 134 Aug 28 2000 007.phpt -rw-r--r-- 1 yohgaki yohgaki 132 Aug 28 2000 008.phpt -rw-r--r-- 1 yohgaki yohgaki 136 Aug 28 2000 009.phpt -rw-r--r-- 1 yohgaki yohgaki 114 Aug 28 2000 010.phpt -rw-r--r-- 1 yohgaki yohgaki 200 Aug 28 2000 011.phpt [yohgaki@dev basic]$ For some reason, 4.0.4pl1 fails to pass some simple tests. Even if 4.0.4pl1 works well mostly. (I got sevral very strange PHP behavior under very limited condition, though) As far as test scripts concerned, it seems 4.0.5RC1 was error free for my environment. If you need me to send *.out file or anything, please let me know. BTW, Changing locale did not change test results last time I've tested. Many PEAR tests fails even if include_path is defined for PEAR. I also would like to see test scripts for multi-byte char code (UTF8, EUC-JP, SJIS, JIS, possibly EUC-KR, EUC-TW, etc with help of others) for PHP distribution. Is someone working for it already? If no one is going to make it, I'll do it for 4.0.6 and up coming multi-byte char code support module. Regards, -- Yasuo Ohgaki

« previous php.qa (#2801) next »