Professional Web Applications Themes

#46326 [NEW]: error_reporting ignored in php-cli.ini - PHP Bugs

From: RQuadling at GMail dot com Operating system: Windows XP SP3 PHP version: 5.3CVS-2008-10-17 (snap) PHP Bug Type: PHP options/info functions Bug description: error_reporting ignored in php-cli.ini Description: ------------ No matter what value I set in my php-cli.ini file for error_reporting, it is ignored. Using PHP 5.3.0alpha3-dev (cli) (built: Oct 17 2008 12:03:10) from http://windows.php.net In using ProcMon and looking for Processes like "PHP" and Path ending in ".INI", the only file I am looking at is C:\PHP\PHP5\INI\php- cli.ini Reproduce code: --------------- <?php $s_INI = file_get_contents(php_ini_loaded_file()); preg_match_all('`^error_reporting[^\r\n]++`sim', $s_INI, $a_Matches); echo 'php_sapi_name() = ', php_sapi_name(), PHP_EOL, 'phpversion() = ', phpversion(), PHP_EOL, ...

  1. #1

    Default #46326 [NEW]: error_reporting ignored in php-cli.ini

    From: RQuadling at GMail dot com
    Operating system: Windows XP SP3
    PHP version: 5.3CVS-2008-10-17 (snap)
    PHP Bug Type: PHP options/info functions
    Bug description: error_reporting ignored in php-cli.ini

    Description:
    ------------
    No matter what value I set in my php-cli.ini file for
    error_reporting, it is ignored.

    Using PHP 5.3.0alpha3-dev (cli) (built: Oct 17 2008 12:03:10) from
    http://windows.php.net


    In using ProcMon and looking for Processes like "PHP" and Path ending
    in ".INI", the only file I am looking at is C:\PHP\PHP5\INI\php-
    cli.ini





    Reproduce code:
    ---------------
    <?php
    $s_INI = file_get_contents(php_ini_loaded_file());
    preg_match_all('`^error_reporting[^\r\n]++`sim', $s_INI, $a_Matches);

    echo
    'php_sapi_name() = ', php_sapi_name(), PHP_EOL,
    'phpversion() = ', phpversion(), PHP_EOL,
    'php_ini_loaded_file() = ', php_ini_loaded_file(), PHP_EOL,
    'php_ini_scanned_files() = ', php_ini_scanned_files(), PHP_EOL,
    'error_reporting() = ', error_reporting(), PHP_EOL,
    'INI error_reporting = ', $a_Matches[0][0], PHP_EOL;



    Expected result:
    ----------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 65535
    INI error_reporting = error_reporting = 65535

    Actual result:
    --------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = 65535





    --
    Edit bug report at http://bugs.php.net/?id=46326&edit=1
    --
    Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46326&r=trysnapshot52
    Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46326&r=trysnapshot53
    Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46326&r=trysnapshot60
    Fixed in CVS: http://bugs.php.net/fix.php?id=46326&r=fixedcvs
    Fixed in release: http://bugs.php.net/fix.php?id=46326&r=alreadyfixed
    Need backtrace: http://bugs.php.net/fix.php?id=46326&r=needtrace
    Need Reproduce Script: http://bugs.php.net/fix.php?id=46326&r=needscript
    Try newer version: http://bugs.php.net/fix.php?id=46326&r=oldversion
    Not developer issue: http://bugs.php.net/fix.php?id=46326&r=support
    Expected behavior: http://bugs.php.net/fix.php?id=46326&r=notwrong
    Not enough info: http://bugs.php.net/fix.php?id=46326&r=notenoughinfo
    Submitted twice: http://bugs.php.net/fix.php?id=46326&r=submittedtwice
    register_globals: http://bugs.php.net/fix.php?id=46326&r=globals
    PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46326&r=php4
    Daylight Savings: http://bugs.php.net/fix.php?id=46326&r=dst
    IIS Stability: http://bugs.php.net/fix.php?id=46326&r=isapi
    Install GNU Sed: http://bugs.php.net/fix.php?id=46326&r=gnused
    Floating point limitations: http://bugs.php.net/fix.php?id=46326&r=float
    No Zend Extensions: http://bugs.php.net/fix.php?id=46326&r=nozend
    MySQL Configuration Error: http://bugs.php.net/fix.php?id=46326&r=mysqlcfg

    RQuadling Guest

  2. #2

    Default #46326 [Opn]: error_reporting ignored in php-cli.ini

    ID: 46326
    User updated by: RQuadling at GMail dot com
    Reported By: RQuadling at GMail dot com
    Status: Open
    Bug Type: PHP options/info functions
    Operating System: Windows XP SP3
    PHP Version: 5.3CVS-2008-10-17 (snap)
    New Comment:

    Some more examples in playing around with this ...

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL & ~E_NOTICE

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR


    Just to confirm that last one ...

    If I use V5.2.6 like so ...

    C:\>c:\PHP5.2.6\php.exe -c C:\php\PHP5\INI\php-cli.ini
    z:\phpdetails.php

    The output is ...

    php_sapi_name() = cli
    phpversion() = 5.2.6
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 4177
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR


    Previous Comments:
    ------------------------------------------------------------------------

    [2008-10-17 11:28:59] RQuadling at GMail dot com

    Description:
    ------------
    No matter what value I set in my php-cli.ini file for
    error_reporting, it is ignored.

    Using PHP 5.3.0alpha3-dev (cli) (built: Oct 17 2008 12:03:10) from
    http://windows.php.net


    In using ProcMon and looking for Processes like "PHP" and Path ending
    in ".INI", the only file I am looking at is C:\PHP\PHP5\INI\php-
    cli.ini





    Reproduce code:
    ---------------
    <?php
    $s_INI = file_get_contents(php_ini_loaded_file());
    preg_match_all('`^error_reporting[^\r\n]++`sim', $s_INI, $a_Matches);

    echo
    'php_sapi_name() = ', php_sapi_name(), PHP_EOL,
    'phpversion() = ', phpversion(), PHP_EOL,
    'php_ini_loaded_file() = ', php_ini_loaded_file(), PHP_EOL,
    'php_ini_scanned_files() = ', php_ini_scanned_files(), PHP_EOL,
    'error_reporting() = ', error_reporting(), PHP_EOL,
    'INI error_reporting = ', $a_Matches[0][0], PHP_EOL;



    Expected result:
    ----------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 65535
    INI error_reporting = error_reporting = 65535

    Actual result:
    --------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = 65535






    ------------------------------------------------------------------------


    --
    Edit this bug report at http://bugs.php.net/?id=46326&edit=1

    RQuadling Guest

  3. #3

    Default #46326 [Opn]: error_reporting ignored in php-cli.ini

    ID: 46326
    User updated by: RQuadling at GMail dot com
    Reported By: RQuadling at GMail dot com
    Status: Open
    Bug Type: PHP options/info functions
    Operating System: Windows XP SP3
    PHP Version: 5.3CVS-2008-10-17 (snap)
    New Comment:

    Oh and supplying the INI file via the command line on the 5.3 alpha
    makes no difference either ...

    C:\>c:\PHP5\php.exe -c C:\php\PHP5\INI\php-cli.ini z:\phpdetails.php
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR


    Previous Comments:
    ------------------------------------------------------------------------

    [2008-10-17 12:50:10] RQuadling at GMail dot com

    Some more examples in playing around with this ...

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL & ~E_NOTICE

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR


    Just to confirm that last one ...

    If I use V5.2.6 like so ...

    C:\>c:\PHP5.2.6\php.exe -c C:\php\PHP5\INI\php-cli.ini
    z:\phpdetails.php

    The output is ...

    php_sapi_name() = cli
    phpversion() = 5.2.6
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 4177
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR

    ------------------------------------------------------------------------

    [2008-10-17 11:28:59] RQuadling at GMail dot com

    Description:
    ------------
    No matter what value I set in my php-cli.ini file for
    error_reporting, it is ignored.

    Using PHP 5.3.0alpha3-dev (cli) (built: Oct 17 2008 12:03:10) from
    http://windows.php.net


    In using ProcMon and looking for Processes like "PHP" and Path ending
    in ".INI", the only file I am looking at is C:\PHP\PHP5\INI\php-
    cli.ini





    Reproduce code:
    ---------------
    <?php
    $s_INI = file_get_contents(php_ini_loaded_file());
    preg_match_all('`^error_reporting[^\r\n]++`sim', $s_INI, $a_Matches);

    echo
    'php_sapi_name() = ', php_sapi_name(), PHP_EOL,
    'phpversion() = ', phpversion(), PHP_EOL,
    'php_ini_loaded_file() = ', php_ini_loaded_file(), PHP_EOL,
    'php_ini_scanned_files() = ', php_ini_scanned_files(), PHP_EOL,
    'error_reporting() = ', error_reporting(), PHP_EOL,
    'INI error_reporting = ', $a_Matches[0][0], PHP_EOL;



    Expected result:
    ----------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 65535
    INI error_reporting = error_reporting = 65535

    Actual result:
    --------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = 65535






    ------------------------------------------------------------------------


    --
    Edit this bug report at http://bugs.php.net/?id=46326&edit=1

    RQuadling Guest

  4. #4

    Default #46326 [Opn->Fbk]: error_reporting ignored in php-cli.ini

    ID: 46326
    Updated by: net
    Reported By: RQuadling at GMail dot com
    -Status: Open
    +Status: Feedback
    Bug Type: PHP options/info functions
    Operating System: Windows XP SP3
    PHP Version: 5.3CVS-2008-10-17 (snap)
    New Comment:

    Can you reproduce this with some real OS, line Linux?


    Previous Comments:
    ------------------------------------------------------------------------

    [2008-10-17 13:25:38] RQuadling at GMail dot com

    Oh and supplying the INI file via the command line on the 5.3 alpha
    makes no difference either ...

    C:\>c:\PHP5\php.exe -c C:\php\PHP5\INI\php-cli.ini z:\phpdetails.php
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR

    ------------------------------------------------------------------------

    [2008-10-17 12:50:10] RQuadling at GMail dot com

    Some more examples in playing around with this ...

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL & ~E_NOTICE

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR


    Just to confirm that last one ...

    If I use V5.2.6 like so ...

    C:\>c:\PHP5.2.6\php.exe -c C:\php\PHP5\INI\php-cli.ini
    z:\phpdetails.php

    The output is ...

    php_sapi_name() = cli
    phpversion() = 5.2.6
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 4177
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR

    ------------------------------------------------------------------------

    [2008-10-17 11:28:59] RQuadling at GMail dot com

    Description:
    ------------
    No matter what value I set in my php-cli.ini file for
    error_reporting, it is ignored.

    Using PHP 5.3.0alpha3-dev (cli) (built: Oct 17 2008 12:03:10) from
    http://windows.php.net


    In using ProcMon and looking for Processes like "PHP" and Path ending
    in ".INI", the only file I am looking at is C:\PHP\PHP5\INI\php-
    cli.ini





    Reproduce code:
    ---------------
    <?php
    $s_INI = file_get_contents(php_ini_loaded_file());
    preg_match_all('`^error_reporting[^\r\n]++`sim', $s_INI, $a_Matches);

    echo
    'php_sapi_name() = ', php_sapi_name(), PHP_EOL,
    'phpversion() = ', phpversion(), PHP_EOL,
    'php_ini_loaded_file() = ', php_ini_loaded_file(), PHP_EOL,
    'php_ini_scanned_files() = ', php_ini_scanned_files(), PHP_EOL,
    'error_reporting() = ', error_reporting(), PHP_EOL,
    'INI error_reporting = ', $a_Matches[0][0], PHP_EOL;



    Expected result:
    ----------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 65535
    INI error_reporting = error_reporting = 65535

    Actual result:
    --------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = 65535






    ------------------------------------------------------------------------


    --
    Edit this bug report at http://bugs.php.net/?id=46326&edit=1

    jani@php.net Guest

  5. #5

    Default #46326 [Fbk->Opn]: error_reporting ignored in php-cli.ini

    ID: 46326
    User updated by: RQuadling at GMail dot com
    Reported By: RQuadling at GMail dot com
    -Status: Feedback
    +Status: Open
    Bug Type: PHP options/info functions
    Operating System: Windows XP SP3
    PHP Version: 5.3CVS-2008-10-17 (snap)
    New Comment:

    "real"? <raspberry>

    But no. I'm all windows here.


    Previous Comments:
    ------------------------------------------------------------------------

    [2008-10-21 09:29:02] net

    Can you reproduce this with some real OS, line Linux?

    ------------------------------------------------------------------------

    [2008-10-17 13:25:38] RQuadling at GMail dot com

    Oh and supplying the INI file via the command line on the 5.3 alpha
    makes no difference either ...

    C:\>c:\PHP5\php.exe -c C:\php\PHP5\INI\php-cli.ini z:\phpdetails.php
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR

    ------------------------------------------------------------------------

    [2008-10-17 12:50:10] RQuadling at GMail dot com

    Some more examples in playing around with this ...

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL & ~E_NOTICE

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR


    Just to confirm that last one ...

    If I use V5.2.6 like so ...

    C:\>c:\PHP5.2.6\php.exe -c C:\php\PHP5\INI\php-cli.ini
    z:\phpdetails.php

    The output is ...

    php_sapi_name() = cli
    phpversion() = 5.2.6
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 4177
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR

    ------------------------------------------------------------------------

    [2008-10-17 11:28:59] RQuadling at GMail dot com

    Description:
    ------------
    No matter what value I set in my php-cli.ini file for
    error_reporting, it is ignored.

    Using PHP 5.3.0alpha3-dev (cli) (built: Oct 17 2008 12:03:10) from
    http://windows.php.net


    In using ProcMon and looking for Processes like "PHP" and Path ending
    in ".INI", the only file I am looking at is C:\PHP\PHP5\INI\php-
    cli.ini





    Reproduce code:
    ---------------
    <?php
    $s_INI = file_get_contents(php_ini_loaded_file());
    preg_match_all('`^error_reporting[^\r\n]++`sim', $s_INI, $a_Matches);

    echo
    'php_sapi_name() = ', php_sapi_name(), PHP_EOL,
    'phpversion() = ', phpversion(), PHP_EOL,
    'php_ini_loaded_file() = ', php_ini_loaded_file(), PHP_EOL,
    'php_ini_scanned_files() = ', php_ini_scanned_files(), PHP_EOL,
    'error_reporting() = ', error_reporting(), PHP_EOL,
    'INI error_reporting = ', $a_Matches[0][0], PHP_EOL;



    Expected result:
    ----------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 65535
    INI error_reporting = error_reporting = 65535

    Actual result:
    --------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = 65535






    ------------------------------------------------------------------------


    --
    Edit this bug report at http://bugs.php.net/?id=46326&edit=1

    RQuadling Guest

  6. #6

    Default #46326 [Opn]: error_reporting ignored in php-cli.ini

    ID: 46326
    Updated by: net
    Reported By: RQuadling at GMail dot com
    Status: Open
    Bug Type: PHP options/info functions
    Operating System: Windows XP SP3
    PHP Version: 5.3CVS-2008-10-17 (snap)
    New Comment:

    So it's most likely Windows only issue. (can't reproduce here..)


    Previous Comments:
    ------------------------------------------------------------------------

    [2008-10-21 19:09:45] RQuadling at GMail dot com

    "real"? <raspberry>

    But no. I'm all windows here.

    ------------------------------------------------------------------------

    [2008-10-21 09:29:02] net

    Can you reproduce this with some real OS, line Linux?

    ------------------------------------------------------------------------

    [2008-10-17 13:25:38] RQuadling at GMail dot com

    Oh and supplying the INI file via the command line on the 5.3 alpha
    makes no difference either ...

    C:\>c:\PHP5\php.exe -c C:\php\PHP5\INI\php-cli.ini z:\phpdetails.php
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR

    ------------------------------------------------------------------------

    [2008-10-17 12:50:10] RQuadling at GMail dot com

    Some more examples in playing around with this ...

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL & ~E_NOTICE

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR


    Just to confirm that last one ...

    If I use V5.2.6 like so ...

    C:\>c:\PHP5.2.6\php.exe -c C:\php\PHP5\INI\php-cli.ini
    z:\phpdetails.php

    The output is ...

    php_sapi_name() = cli
    phpversion() = 5.2.6
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 4177
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR

    ------------------------------------------------------------------------

    [2008-10-17 11:28:59] RQuadling at GMail dot com

    Description:
    ------------
    No matter what value I set in my php-cli.ini file for
    error_reporting, it is ignored.

    Using PHP 5.3.0alpha3-dev (cli) (built: Oct 17 2008 12:03:10) from
    http://windows.php.net


    In using ProcMon and looking for Processes like "PHP" and Path ending
    in ".INI", the only file I am looking at is C:\PHP\PHP5\INI\php-
    cli.ini





    Reproduce code:
    ---------------
    <?php
    $s_INI = file_get_contents(php_ini_loaded_file());
    preg_match_all('`^error_reporting[^\r\n]++`sim', $s_INI, $a_Matches);

    echo
    'php_sapi_name() = ', php_sapi_name(), PHP_EOL,
    'phpversion() = ', phpversion(), PHP_EOL,
    'php_ini_loaded_file() = ', php_ini_loaded_file(), PHP_EOL,
    'php_ini_scanned_files() = ', php_ini_scanned_files(), PHP_EOL,
    'error_reporting() = ', error_reporting(), PHP_EOL,
    'INI error_reporting = ', $a_Matches[0][0], PHP_EOL;



    Expected result:
    ----------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 65535
    INI error_reporting = error_reporting = 65535

    Actual result:
    --------------
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = 65535






    ------------------------------------------------------------------------


    --
    Edit this bug report at http://bugs.php.net/?id=46326&edit=1

    jani@php.net Guest

  7. #7

    Default #46326 [Opn]: error_reporting ignored in php-cli.ini

    ID: 46326
    User updated by: RQuadling at GMail dot com
    Reported By: RQuadling at GMail dot com
    Status: Open
    Bug Type: PHP options/info functions
    Operating System: Windows XP SP3
    PHP Version: 5.3CVS-2008-10-17 (snap)
    New Comment:

    Wouldn't surprise me.


    Previous Comments:
    ------------------------------------------------------------------------

    [2008-10-22 11:25:29] net

    So it's most likely Windows only issue. (can't reproduce here..)

    ------------------------------------------------------------------------

    [2008-10-21 19:09:45] RQuadling at GMail dot com

    "real"? <raspberry>

    But no. I'm all windows here.

    ------------------------------------------------------------------------

    [2008-10-21 09:29:02] net

    Can you reproduce this with some real OS, line Linux?

    ------------------------------------------------------------------------

    [2008-10-17 13:25:38] RQuadling at GMail dot com

    Oh and supplying the INI file via the command line on the 5.3 alpha
    makes no difference either ...

    C:\>c:\PHP5\php.exe -c C:\php\PHP5\INI\php-cli.ini z:\phpdetails.php
    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR

    ------------------------------------------------------------------------

    [2008-10-17 12:50:10] RQuadling at GMail dot com

    Some more examples in playing around with this ...

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting = E_ALL & ~E_NOTICE

    php_sapi_name() = cli
    phpversion() = 5.3.0alpha3-dev
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 22519
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR


    Just to confirm that last one ...

    If I use V5.2.6 like so ...

    C:\>c:\PHP5.2.6\php.exe -c C:\php\PHP5\INI\php-cli.ini
    z:\phpdetails.php

    The output is ...

    php_sapi_name() = cli
    phpversion() = 5.2.6
    php_ini_loaded_file() = C:\PHP\PHP5\INI\php-cli.ini
    php_ini_scanned_files() =
    error_reporting() = 4177
    INI error_reporting = error_reporting =
    E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://bugs.php.net/46326

    --
    Edit this bug report at http://bugs.php.net/?id=46326&edit=1

    RQuadling Guest

Similar Threads

  1. error_reporting (E_ALL);
    By Tim Tyler in forum PHP Development
    Replies: 6
    Last Post: November 21st, 06:57 PM
  2. #26006 [Com]: error_reporting() and problem
    By kiril at lycos dot com in forum PHP Development
    Replies: 2
    Last Post: November 21st, 06:20 AM
  3. #26006 [Opn->Bgs]: error_reporting() and problem
    By iliaa@php.net in forum PHP Development
    Replies: 1
    Last Post: November 17th, 11:29 PM
  4. baffled on error_reporting
    By Gerard in forum PHP Development
    Replies: 8
    Last Post: October 27th, 02:53 PM
  5. Please use error_reporting(E_ALL)
    By matty in forum PHP Development
    Replies: 6
    Last Post: August 11th, 01:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139