• I am attempting to compile the source code for WordPress 3.8 using Phalanger (https://phalanger.codeplex.com/). The process generates several errors, and a number of warnings. I am not a PHP developer at all, but I understand Phalanger is very strict about valid PHP. As such I thought I’d list them here in case it is useful to the WP developer team. I’ll try to fix the errors myself so that I can compile WP, but it would be great if the WP code base was validated against Phalanger as a matter of routine.

    If anyone has any specific suggestions as to how to fix the errors in the source please post them here.

    Errors:

    \wp-content\themes\annotum-base\plugins\anno-pdf-download\lib\dompdf\lib\html5lib\TreeBuilder.php(2635,48): error PHP1069: Undefined class constant ‘HTML5_TreeBuilder::INBODY’
    \wp-includes\ID3\module.tag.id3v2.php(433,22): error PHP1212: Invalid argument count in a call to the function ‘substr’
    \wp-content\themes\annotum-base\plugins\anno-pdf-download\lib\dompdf\include\tcpdf_adapter.cls.php(404,10): error PHP1212: Invalid argument count in a call to the function ‘in_array’
    \wp-content\themes\annotum-base\plugins\anno-pdf-download\lib\dompdf\include\tcpdf_adapter.cls.php(404,50): error PHP1001: Only variables can be passed by reference

    Warnings:

    \wp-admin\includes\file.php(907,9): warning PHP0151: Function ‘getmyuid’ is not supported
    \wp-content\themes\annotum-base\carrington-core\templates.php(197,59): warning PHP0125: Mandatory parameter ‘depth’ declared behind optional parameter
    \wp-content\themes\annotum-base\functions\template.php(86,51): warning PHP0125: Mandatory parameter ‘key’ declared behind optional parameter
    \wp-content\themes\annotum-base\functions\phpquery\phpquery.php(3420,11): warning PHP0123: The variable $this used out of method
    \wp-content\themes\annotum-base\plugins\anno-pdf-download\lib\dompdf\include\functions.inc.php(887,12): warning PHP0151: Function’memory_get_peak_usage’ is not supported
    \wp-content\themes\annotum-base\plugins\anno-pdf-download\lib\dompdf\lib\class.pdf.php(4210,58): warning PHP0125: Mandatory parameter ‘img’ declared behind optional parameter
    \wp-content\themes\annotum-base\plugins\anno-pdf-download\lib\dompdf\lib\class.pdf.php(4479,60): warning PHP0125: Mandatory parameter ‘data’ declared behind optional parameter
    \wp-content\themes\annotum-base\plugins\anno-pdf-download\lib\dompdf\lib\class.pdf.php(4795,66): warning PHP0125: Mandatory parameter ‘imageWidth’ declared behind optional parameter
    \wp-content\themes\annotum-base\plugins\anno-pdf-download\lib\dompdf\lib\class.pdf.php(4795,109): warning PHP0125: Mandatory parameter ‘imgname’ declared behind optional parameter
    \wp-includes\nav-menu.php(744,52): warning PHP0125: Mandatory parameter ‘tt_id’ declared behind optional parameter
    \wp-includes\ID3\module.audio-video.quicktime.php(614,4): warning PHP0121: The ‘case’ label with value rmla has already been declared
    \wp-includes\SimplePie\Locator.php(94,55): warning PHP0125: Mandatory parameter ‘working’ declared behind optional parameter
    \wp-includes\SimplePie\Misc.php(1424,4): warning PHP0121: The ‘case’ label with value isoir91 has already been declared
    \wp-includes\SimplePie\Misc.php(1429,4): warning PHP0121: The ‘case’ label with value isoir92 has already been declared
    \wp-includes\SimplePie\Decode\HTML\Entities.php(172,4): warning PHP0121: The ‘case’ label with value ? has already been declared

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP parsing errors in with Phalanger’ is closed to new replies.