Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#33 fix install errors

open-accepted
nobody
Bug Fix (7)
5
2010-01-17
2009-07-06
Toshiro Yagi
No

On PHP5.x you can't even install Xoops Cube. I tried to do that with both stable version and svn trunk in vain. I got too mad to post a patch.
(1) When a function of a class calls it's parent class constructor and the parent class does not have a function which name is the same as the class name, like constructor on PHP 4.x, it must be like 'parent::__construct'. Otherwise some functions of Xoops Cube are calling their parent class constructor by 'parent::parentClassName', It cannot work at all.
(2) parse_ini_file function causes fatal error when a file assigned as an argument containing PHP tags like '<?php' nor comment block identifiers like '/**'. That's exactly what some *.ini.php files of Xoops Cube are, and you see those fatal errors in your install process.

The attachment is a combined diffs that 'svn diff' command spit out. Fixes for #2 is a bit too weird, so please give a double check in use.

Discussion

  • Toshiro Yagi
    Toshiro Yagi
    2009-07-06

    combined diffs

     
    Attachments
  • GIJOE
    GIJOE
    2009-08-19

    > On PHP5.x
    Perhaps, this is not an exact version.

    Your suggestions will be revealed only with php 5.3.x

    Marijuana had already shown it.
    Refer:
    http://marijuana.xsrv.jp/modules/wordpress/

    Of course, XCL2.1/2 works fine with php 5.0.x, 5.1.x, and 5.2.x.

     
  • minahito
    minahito
    2010-01-17

    • milestone: --> Legacy 2.1.x modules
    • status: open --> open-accepted