#34075 [Opn]: The ext/standard/tests/file/bug22414.phpt script fails

2005-08-11 Thread RVaughn at pheedo dot com
 ID:   34075
 User updated by:  RVaughn at pheedo dot com
 Reported By:  RVaughn at pheedo dot com
 Status:   Open
 Bug Type: Unknown/Other Function
 Operating System: RHEL 3.0
 PHP Version:  4.4.0
 New Comment:

More info:

===
BUILD ENVIRONMENT
===
OS:
Linux - Linux db.pheedo.com 2.4.21-32.0.1.ELsmp #1 SMP Tue May 17
17:52:23 EDT \
2005 i686

Automake:
automake (GNU automake) 1.6.3
Written by Tom Tromey [EMAIL PROTECTED].

Copyright 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Autoconf:
autoconf (GNU Autoconf) 2.57
Written by David J. MacKenzie and Akim Demaille.


Previous Comments:


[2005-08-11 19:06:18] RVaughn at pheedo dot com

Shell is RHEL 3.0 /bin/bash.

# echo $TEST_PHP_EXECUTABLE
/usr/src/redhat/SOURCES/php-4.3.8/sapi/cli/php

# ls -al `echo $TEST_PHP_EXECUTABLE`
-rwxr-xr-x1 root root  6254005 Aug 10 21:50
/usr/src/redhat/SOURCES/php-4.3.8/sapi/cli/php

From the Makefile:

TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH)

top_builddir = /usr/src/redhat/SOURCES/php-4.3.8

SAPI_CLI_PATH = sapi/cli/php

The Makefile matches this, which is where the unstriped executable is:

# echo $TEST_PHP_EXECUTABLE
/usr/src/redhat/SOURCES/php-4.3.8/sapi/cli/php

As per Tony's suggestion (thanks, but doesn't work, sorry I forgot that
I also tried 'run-tests.php'):

# TEST_PHP_EXECUTABLE=./sapi/cli/php  ./sapi/cli/php run-tests.php
ext/standard/tests/file/bug22414.phpt

=
CWD : /usr/src/redhat/SOURCES/php-4.3.8
PHP : ./sapi/cli/php 
PHP_SAPI: cli
PHP_VERSION : 4.3.8
ZEND_VERSION: 1.3.0
PHP_OS  : Linux - Linux db.pheedo.com 2.4.21-32.0.1.ELsmp #1 SMP
Tue May 17 17:52:23 EDT 2005 i686
INI actual  : /etc/php.ini
More .INIs  : /etc/php.d/imap.ini,/etc/php.d/ldap.ini
Extra dirs  : 
=
Running selected tests.
FAIL Bug #22414: passthru() does not read data correctly
[ext/standard/tests/file/bug22414.phpt]

Output from this run is the same:

# more ext/standard/tests/file/bug22414.out
HELLO
Does not work

I haven't tried the CVS snapshot because we've given up on getting PHP
4.4 to build and work on RHEL 3.0 for now.  The fact that this test
fails on three different RHEL 3.0 servers w/three different PHP
versions (4.3.8, 4.3.11, 4.4) is what makes me think there's a problem
with this script on RHEL 3.0.  The test script is the same in all three
distributions, and it fails in the same way on all three, and I've
written some simple passthru() tests myself and the function seems to
work just fine, it's the test script.

Could be that passthru() is failing on RHEL 3.0 for all these versions
as my own tests are pretty simple.  Thanks!



[2005-08-11 11:24:51] [EMAIL PROTECTED]

./sapi/cli/php ext/standard/tests/file/bug22414.phpt

Ugh..Don't do it, please. These tests should not be run directly.
You must use run-tests.php for running them.

Please try to this:
TEST_PHP_EXECUTABLE=./sapi/cli/php  ./sapi/cli/php run-tests.php
ext/standard/tests/file/bug22414.phpt



[2005-08-11 11:22:30] [EMAIL PROTECTED]

The problem is with TEST_PHP_EXECUTABLE environment variable being set
to something wrong? Are you setting it yourself?
What shell are you using? What is it set to in Makefile ?
Have you tried latest CVS snapshot?






[2005-08-11 01:41:40] RVaughn at pheedo dot com

I have run this test with 'make test' as part of the whole suite, and
also directly with:

# ./sapi/cli/php -c /etc/php.ini ext/standard/tests/file/bug22414.phpt

and

# ./sapi/cli/php ext/standard/tests/file/bug22414.phpt

Fails in all three cases for PHP 4.4, 4.3.11, and 4.3.8.
The first test works, the second one which uses md5_file() to create a
hash over the php executable itself, fails with the errors I reported. 
I suspect it's something particular to RHEL 3.0 but have not had a
chance to test on a Fedora Core 2 system yet.



[2005-08-10 23:34:21] [EMAIL PROTECTED]

How do you run this test?




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/34075

-- 
Edit this bug report at http://bugs.php.net/?id=34075edit=1


#34075 [Opn]: The ext/standard/tests/file/bug22414.phpt script fails

2005-08-11 Thread RVaughn at pheedo dot com
 ID:   34075
 User updated by:  RVaughn at pheedo dot com
 Reported By:  RVaughn at pheedo dot com
 Status:   Open
 Bug Type: *General Issues
 Operating System: RHEL 3.0
 PHP Version:  4.4.0
 New Comment:

Can't run these tests against PHP 5.1 - we are running PHP 4.3.2 on our
servers and want to upgrade to PHP 4.4 if possible but do not want to
move to PHP 5.1 yet, our application will require a lot of testing with
PHP 5 before we make that migration.  Our goal right now is simply to
get to PHP 4.4 for the bug and security fixes and to test our
application against it as well as upgrade MySQL from 3.x to 4.1-1, and
then migrate to PHP 5.x at some later date.  Thanks, Rob


Previous Comments:


[2005-08-12 02:08:36] RVaughn at pheedo dot com

Hi Sniper,

Sorry about that, here's the run on PHP 4.4 vs. PHP 4.3.8, the failure
and output are the same, note this is a different host name, the one
where I'm trying to build PHP 4.4.  If you need any more info please
let me know.  This is from the PHP 4.4 sources pulled on 1 Aug 2005:

# TEST_PHP_EXECUTABLE=./sapi/cli/php  ./sapi/cli/php run-tests.php
ext/standard/tests/file/bug22414.phpt

=
CWD : /usr/local/src/Tars/php-4.4.0
PHP : ./sapi/cli/php 
PHP_SAPI: cli
PHP_VERSION : 4.4.0
ZEND_VERSION: 1.3.0
PHP_OS  : Linux - Linux dev.pheedo.com 2.4.21-32.0.1.ELsmp #1 SMP
Tue May 17 17:52:23 EDT 2005 i686
INI actual  : /etc/php.ini
More .INIs  : /etc/php.d/mhash.ini,/etc/php.d/mysql.ini
Extra dirs  : 
=
Running selected tests.
FAIL Bug #22414: passthru() does not read data correctly
[ext/standard/tests/file/bug22414.phpt]



[2005-08-11 23:06:51] [EMAIL PROTECTED]

All your output here shows version 4.3.8. Please do the tests REALLY
with PHP 4.4.0 or rather with the latest CVS snapshot of PHP 5.1
(http://snaps.php.net/php5-latest.tar.gz)




[2005-08-11 20:43:33] RVaughn at pheedo dot com

More info:

===
BUILD ENVIRONMENT
===
OS:
Linux - Linux db.pheedo.com 2.4.21-32.0.1.ELsmp #1 SMP Tue May 17
17:52:23 EDT \
2005 i686

Automake:
automake (GNU automake) 1.6.3
Written by Tom Tromey [EMAIL PROTECTED].

Copyright 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Autoconf:
autoconf (GNU Autoconf) 2.57
Written by David J. MacKenzie and Akim Demaille.



[2005-08-11 19:06:18] RVaughn at pheedo dot com

Shell is RHEL 3.0 /bin/bash.

# echo $TEST_PHP_EXECUTABLE
/usr/src/redhat/SOURCES/php-4.3.8/sapi/cli/php

# ls -al `echo $TEST_PHP_EXECUTABLE`
-rwxr-xr-x1 root root  6254005 Aug 10 21:50
/usr/src/redhat/SOURCES/php-4.3.8/sapi/cli/php

From the Makefile:

TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH)

top_builddir = /usr/src/redhat/SOURCES/php-4.3.8

SAPI_CLI_PATH = sapi/cli/php

The Makefile matches this, which is where the unstriped executable is:

# echo $TEST_PHP_EXECUTABLE
/usr/src/redhat/SOURCES/php-4.3.8/sapi/cli/php

As per Tony's suggestion (thanks, but doesn't work, sorry I forgot that
I also tried 'run-tests.php'):

# TEST_PHP_EXECUTABLE=./sapi/cli/php  ./sapi/cli/php run-tests.php
ext/standard/tests/file/bug22414.phpt

=
CWD : /usr/src/redhat/SOURCES/php-4.3.8
PHP : ./sapi/cli/php 
PHP_SAPI: cli
PHP_VERSION : 4.3.8
ZEND_VERSION: 1.3.0
PHP_OS  : Linux - Linux db.pheedo.com 2.4.21-32.0.1.ELsmp #1 SMP
Tue May 17 17:52:23 EDT 2005 i686
INI actual  : /etc/php.ini
More .INIs  : /etc/php.d/imap.ini,/etc/php.d/ldap.ini
Extra dirs  : 
=
Running selected tests.
FAIL Bug #22414: passthru() does not read data correctly
[ext/standard/tests/file/bug22414.phpt]

Output from this run is the same:

# more ext/standard/tests/file/bug22414.out
HELLO
Does not work

I haven't tried the CVS snapshot because we've given up on getting PHP
4.4 to build and work on RHEL 3.0 for now.  The fact that this test
fails on three different RHEL 3.0 servers w/three different PHP
versions (4.3.8, 4.3.11, 4.4) is what makes me think there's a problem
with this script on RHEL 3.0.  The test script is the same in all three
distributions, and it fails in the same way on all three, and I've
written some simple passthru() tests myself and the function seems to
work just