#40776 [NEW]: highlight.bg setting ignored/unused

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40776 [NEW]: highlight.bg setting ignored/unused

    From: seanius at debian dot org
    Operating system: Debian GNU/Linux
    PHP version: 5.2.1
    PHP Bug Type: Scripting Engine problem
    Bug description: highlight.bg setting ignored/unused

    Description:
    ------------
    originally reported at [url]http://bugs.debian.org/405338[/url]

    it seems that the highlight.bg setting is being ignored for
    highlight_string/highlight_file(). or perhaps this setting is
    obsoleted/removed intentionally? the online docs and php-provided ini
    files still reference this setting though, and it shows up correctly in
    phpinfo().

    grepping through the source for php5 however, i don't find much
    referencing the setting apart from the ini file and some test cases. the
    highlight_file function in ext/standard/base_functions.c sets the other
    settings from the "higlight struct", but not the .bg setting.

    Reproduce code:
    ---------------
    <?php

    # set highlight.bg to something obvious like #ff0000
    # and you'll see that the background stays default.
    # Comment
    highlight_file($_SERVER['SCRIPT_FILENAME']);

    ?>

    Expected result:
    ----------------
    a red background

    Actual result:
    --------------
    a white default background

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

  2. Similar Questions and Discussions

    1. Unused files....
      Hi people, can anyone guide me on this there is a table in my db that contains filenames/path of files that get uploaded to the webserver and from...
    2. unused cast members
      How do I delete unused cast members..? (select in cast window delete, yes, but what if it is a piece of code and I don't know if it is being used or...
    3. Finding Unused accounts
      Hi, I need to find all accounts that have not been used since the 1st of August. I could finger every user but there is around 1000 users on...
    4. unused cast mebers
      hi all, I want to "clean up" my project from all unused cast members, is there a way to know it in a sintetic way? so without having to...
    5. Old unused APS film
      I have some APS films that are still unused and still in their original packaging, but whose expiry date (the date you have to get the film...
  3. #2

    Default #40776 [Opn->Asn]: highlight.bg setting ignored/unused

    ID: 40776
    Updated by: [email]tony2001@php.net[/email]
    Reported By: seanius at debian dot org
    -Status: Open
    +Status: Assigned
    -Bug Type: Scripting Engine problem
    +Bug Type: Unknown/Other Function
    Operating System: Debian GNU/Linux
    PHP Version: 5.2.1
    -Assigned To:
    +Assigned To: tony2001


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

    [2007-03-11 13:45:58] seanius at debian dot org

    Description:
    ------------
    originally reported at [url]http://bugs.debian.org/405338[/url]

    it seems that the highlight.bg setting is being ignored for
    highlight_string/highlight_file(). or perhaps this setting is
    obsoleted/removed intentionally? the online docs and php-provided ini
    files still reference this setting though, and it shows up correctly in
    phpinfo().

    grepping through the source for php5 however, i don't find much
    referencing the setting apart from the ini file and some test cases.
    the highlight_file function in ext/standard/base_functions.c sets the
    other settings from the "higlight struct", but not the .bg setting.

    Reproduce code:
    ---------------
    <?php

    # set highlight.bg to something obvious like #ff0000
    # and you'll see that the background stays default.
    # Comment
    highlight_file($_SERVER['SCRIPT_FILENAME']);

    ?>

    Expected result:
    ----------------
    a red background

    Actual result:
    --------------
    a white default background


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40776&edit=1[/url]
    tony2001@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may 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