#009422: php 4.4.2 crashed installer

Description:

There is a bug in fopen in php 4.4.2

I would make eZ 3.9 onwards uninstallable for versions 4.4.2 and include a version check in this function.

Whenever you run the installer it directly crashes without notice in function

function eZSetupTestAcceptPathInfo( $type, &$arguments )
{

rl: this one works only if 'allow_url_fopen' is On
$allowFOpen = ini_get( 'allow_url_fopen' ) != 0;
todo: additional check for case of 'allow_url_fopen' is Off

$testPath = $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] . '/eZ_accept_path_info_test';
$protocol = 'http';
/* We attempt to use the https protocol when the https port is used */
if ( $_SERVER['SERVER_PORT'] == 443 )
{
$protocol = 'https';
}
$testPath = "{$protocol}:
" . str_replace( '//', '/', $testPath );
$fp = @fopen( $testPath, 'r' );

return array( 'result' => ( $fp !== false ),
'persistent_data' => array( 'result' => array( 'value' => ( $fp !== false ) ) ) );
}


Environment:

Operating System: win64
PHP Version: 4.4.2
Database and version: doesn't matter


- Attachments

No attachments for this issue.


- Comments

I know there was this issue in PHP 4.4.2, but by now there should not be any installations using it anymore (this issue should have been fixed long ago actually when it still was an issue). So closing as "Won't fix" now.

#255984 by Kristof Coomans on March 13th, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Install
Affects 3.9.0beta1
Fix Version -
Reporter Björn Dieding@xrow.de
Responsible Kristof Coomans
Status 0 Closed
Resolution Won't Fix
Created November 14th, 2006
Updated July 29th, 2010
Resolved March 13th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #019127
  DB Deadlocks on ezcontentobject_tree when updating subnode