From:             RVaughn at pheedo dot com
Operating system: RHEL 3.0
PHP version:      4.4.0
PHP Bug Type:     Unknown/Other Function
Bug description:  The ext/standard/tests/file/bug22414.phpt script fails

Description:
------------
The ext/standard/tests/file/bug22414.phpt script in the test suite always
fails on Red Hat Enterprise 3.0.

I didn't report this originally as I thought it was a configuration or
installation problem with our system when working on PHP 4.4 but I'm
trying to run it under PHP 4.3.8 and 4.3.11 and it also fails in the same
manner, which leads me to believe it's either got a bug or isn't written
correctly to work on RHEL 3.0.

I've read Bug #22582: Problem with bug22414.phpt and while those changes
are incorporated they do not address the problem on RHEL 3.0.  Other bug
reports also do not address the problem.  I tried making a link from
/usr/local/php/bin/php to the new executable but that didn't solve the
problem.



Reproduce code:
---------------
Please see the ext/standard/tests/file/bug22414.phpt from the PHP 4.4,
4.3.8, or 4.3.11 distributions, it fails on all three.


Expected result:
----------------
---- EXPECTED OUTPUT
HELLO
Works


Actual result:
--------------
---- ACTUAL OUTPUT
HELLO
sh: line 1: /usr/local/php/bin/php: No such file or directory
Does not work

This fails exactly this way under PHP 4.3.8, 4.3.11 and 4.4 on RHEL 3.0
which is why I believe it's a bug with the script.  The script is
identical in all three PHP source code distributions.

I tried to fix the problem by copying the new php executable 

# mkdir -p /usr/local/php/bin
# cp sapi/cli/php /usr/local/php/bin/php

This causes this error on RHEL 3.0 for PHP 4.4, 4.3.11 and 4.3.8:

--FILE--
sh: line 1: -n: command not found

sh: line 1: -n: command not found

Warning: md5_file(): Unable to open file in
/usr/src/redhat/SOURCES/php-4.3.8/ext/standard/tests/file/bug22414.phpt on
line 24
Does not work

Please don't yell at me, I'm just trying to report what I'm guessing is a
potential bug particular to RHEL 3.0 and have written my own passthru()
function tests which seem to work just fine.  Cheers, Rob V.

-- 
Edit bug report at http://bugs.php.net/?id=34075&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34075&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34075&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34075&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34075&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34075&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34075&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34075&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34075&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34075&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34075&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34075&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34075&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34075&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34075&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34075&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34075&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34075&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34075&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34075&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34075&r=mysqlcfg

Reply via email to