View Issue Details

IDProjectCategoryView StatusLast Update
0003005mantisbtbugtrackerpublic2003-12-13 04:45
Reporterarminh Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Summary0003005: custom_field_api.php does not work with PHP 4.06
Description

function array_key_exists used in custom_field_api.php which does not exist in 4.06.
Workaround: change all calls to "key_exists"

Additional Information

Either change the docs(requirements) or the code ;-)

TagsNo tags attached.

Activities

vboctor

vboctor

2003-02-26 00:52

manager   ~0003827

Fixed in CVS. Will be available in 0.18.0a3.

If you want to patch your version add the following code to the end of core/php_api.php:

# array_key_exists was not available on PHP 4.0.6
if ( ! function_exists( 'array_key_exists' ) ) {
    function array_key_exists( $key, $search ) {
        return key_exists( $key, $search );
    }
}

Related Changesets

MantisBT: master 8f3cf72e

2003-02-25 18:51

vboctor


Details Diff
Fix 0003005: custom_field_api.php does not work on PHP 4.0.6

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2032 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0003005
mod - core/php_api.php Diff File
mod - doc/ChangeLog Diff File