Ticket #11277: mythweb-php54-unknown-function.patch

File mythweb-php54-unknown-function.patch, 1.4 KB (added by Anthony Messina <amessina@…>, 7 years ago)

Patch to remove "PHP Warning: Unknown: function '0' not found or invalid function name in Unknown on line 0" in Apache error logs with PHP 5.4

  • mythweb.conf.apache

    diff --git a/mythweb.conf.apache b/mythweb.conf.apache
    index c2a4f00..a617662 100644
    a b  
    104104        #  doesn't support php_value, or things like memory_limit aren't working
    105105        #  as expected, then use these settings as examples for your own php.ini
    106106        #  files.
    107             php_value safe_mode                     0
    108             php_value register_globals              0
    109             php_value magic_quotes_gpc              0
     107#            php_value safe_mode                     0
     108#            php_value register_globals              0
     109#            php_value magic_quotes_gpc              0
    110110            php_value file_uploads                  0
    111111            php_value allow_url_fopen               On
    112112
    113113            php_value zlib.output_handler           Off
    114             php_value output_handler                NULL
     114#            php_value output_handler                NULL
    115115
    116116        # If you have a large number of channels, you may need to increase
    117117        # this value to prevent PHP from running out of memory during
     
    129129#            php_value max_execution_time 120
    130130
    131131        # Note: php_flag does not work in older versions of php
    132             php_flag output_handler                 "NULL"
     132#            php_flag output_handler                 "NULL"
    133133
    134134        </Files>
    135135