#42446 [Opn]: highlight_(string|file) should use
ID: 42446 User updated by: geoffers at gmail dot com Reported By: geoffers at gmail dot com Status: Open Bug Type: Feature/Change Request Operating System: Mac OS 10.4.10 PHP Version: 5.2.3 New Comment: It should certainly apply to the curly dollar syntax too before this bug is fixed, though. Previous Comments: [2008-08-25 00:46:29] [EMAIL PROTECTED] The following patch should add to all variables, this does not apply to the curly dollar syntax (${'var'}). Patch: http://www.phpfi.com/346971 [2007-08-27 15:56:40] geoffers at gmail dot com Description: The code highlight functions should use for variables in the highlighted code. Reproduce code: --- $foo Actual result: -- $foo -- Edit this bug report at http://bugs.php.net/?id=42446&edit=1
#43743 [NEW]: Unicode Error Mode That Throws Exceptions On Error
From: geoffers at gmail dot com Operating system: Irrelevant PHP version: 6CVS-2008-01-03 (CVS) PHP Bug Type: Feature/Change Request Bug description: Unicode Error Mode That Throws Exceptions On Error Description: It would be useful to have a unicode error mode that threw exceptions on an error: this would make it possible to have different behaviour an error. Currently all that is possible is creating a custom error handler and acting differently depending on what the error string is: can an error string really be relied upon to never change? I doubt it. What practical use, though? Most obviously, checking if a string is valid under a certain encoding. This is needed when processing real- world XML data, due to the vast amount sent with the wrong encoding. -- Edit bug report at http://bugs.php.net/?id=43743&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43743&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43743&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43743&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43743&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43743&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43743&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43743&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=43743&r=needscript Try newer version:http://bugs.php.net/fix.php?id=43743&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43743&r=support Expected behavior:http://bugs.php.net/fix.php?id=43743&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43743&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43743&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43743&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43743&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43743&r=dst IIS Stability:http://bugs.php.net/fix.php?id=43743&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43743&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43743&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43743&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=43743&r=mysqlcfg
#43477 [NEW]: Error mode ignored in unicode_decode()
From: geoffers at gmail dot com Operating system: Debian Etch PHP version: 6CVS-2007-12-02 (CVS) PHP Bug Type: Unicode Engine related Bug description: Error mode ignored in unicode_decode() Description: Regardless of how any error mode is set, whether it be via the third parameter of unicode_decode() or via unicode_set_error_mode(), it is ignored and U_CONV_ERROR_STOP is used. Reproduce code: --- Expected result: string(0) "" Actual result: -- Warning: could not decode binary string (converter UTF-8 failed on bytes (0xF8) at offset 0) in - on line 2 bool(false) -- Edit bug report at http://bugs.php.net/?id=43477&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43477&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43477&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43477&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43477&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43477&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43477&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43477&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=43477&r=needscript Try newer version:http://bugs.php.net/fix.php?id=43477&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43477&r=support Expected behavior:http://bugs.php.net/fix.php?id=43477&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43477&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43477&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43477&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43477&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43477&r=dst IIS Stability:http://bugs.php.net/fix.php?id=43477&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43477&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43477&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43477&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=43477&r=mysqlcfg
#42515 [NEW]: MySQL Library Locations Incorrect
From: geoffers at gmail dot com Operating system: Mac OS 10.4.10 PHP version: 5.2.4 PHP Bug Type: MySQL related Bug description: MySQL Library Locations Incorrect Description: As #42464 is marked as bogus, and I cannot therefore comment on that: The official MySQL binaries install at /usr/local/mysql. PHP tries to read from /usr/local/mysql/lib/mysql, which does not exist. The prior bug was marked as bogus due to ./buildconf being used: on a non-"hackish" copy of PHP it fails too. Running just: % cd php-5.2.4 % ./configure --with-mysql=/usr/local/mysql ./configure doesn't fail like jani claimed. Instead, it says that a system library hasn't been found, and to email php-install. If you try to run make regardless, it succeeds, but you cannot do anything with the binary as it cannot load the libraries. Take a clean OS X install, install the mysql,org binary, then try to compile PHP as above. It'll fail. This isn't a bogus report. This is a real bug, which really makes PHP totally unusable. Reproduce code: --- % cd php-5.2.4 % ./configure --with-mysql=/usr/local/mysql % make Expected result: Working PHP binary to be produced Actual result: -- A non-working PHP binary, trying to load dynamic libraries (which exist in /usr/local/mysql/lib) from /usr/local/mysql/lib/mysql). -- Edit bug report at http://bugs.php.net/?id=42515&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42515&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42515&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42515&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42515&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42515&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42515&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42515&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42515&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42515&r=support Expected behavior:http://bugs.php.net/fix.php?id=42515&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42515&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42515&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42515&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42515&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42515&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42515&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42515&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42515&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42515&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42515&r=mysqlcfg
#42448 [NEW]: highlight_(string|file) does not include
From: geoffers at gmail dot com Operating system: Mac OS 10.4.10 PHP version: 5.2.3 PHP Bug Type: Strings related Bug description: highlight_(string|file) does not include Description: The code highlight functions should output a surrounding element, as the content's meaning may be changed by normalising whitespace. A non-breaking space has a different meaning to whitespace having importance. e.g., the two are different strings: - 'This is a test' - 'This is a test' Reproduce code: --- foo bar Actual result: -- foo bar -- Edit bug report at http://bugs.php.net/?id=42448&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42448&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42448&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42448&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42448&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42448&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42448&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42448&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42448&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42448&r=support Expected behavior:http://bugs.php.net/fix.php?id=42448&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42448&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42448&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42448&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42448&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42448&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42448&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42448&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42448&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42448&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42448&r=mysqlcfg
#42447 [NEW]: highlight_(string|file) does not need out most
From: geoffers at gmail dot com Operating system: Mac OS 10.4.10 PHP version: 5.2.3 PHP Bug Type: Strings related Bug description: highlight_(string|file) does not need out most Description: The code highlight functions always output a surrounding element to make all the content black. This is not needed. can be used instead. Reproduce code: --- $foo Actual result: -- &t;code style="color: #00"> $foo -- Edit bug report at http://bugs.php.net/?id=42447&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42447&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42447&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42447&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42447&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42447&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42447&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42447&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42447&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42447&r=support Expected behavior:http://bugs.php.net/fix.php?id=42447&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42447&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42447&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42447&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42447&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42447&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42447&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42447&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42447&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42447&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42447&r=mysqlcfg
#42446 [NEW]: highlight_(string|file) should use
From: geoffers at gmail dot com Operating system: Mac OS 10.4.10 PHP version: 5.2.3 PHP Bug Type: Strings related Bug description: highlight_(string|file) should use Description: The code highlight functions should use for variables in the highlighted code. Reproduce code: --- $foo Actual result: -- $foo -- Edit bug report at http://bugs.php.net/?id=42446&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42446&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42446&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42446&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42446&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42446&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42446&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42446&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42446&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42446&r=support Expected behavior:http://bugs.php.net/fix.php?id=42446&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42446&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42446&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42446&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42446&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42446&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42446&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42446&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42446&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42446&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42446&r=mysqlcfg
#39434 [Bgs]: strip_tags() fails with greater than in attribute
ID: 39434 User updated by: geoffers at gmail dot com Reported By: geoffers at gmail dot com Status: Bogus Bug Type: Strings related Operating System: Mac OS 10.4.8 PHP Version: 4.4.4 New Comment: This _isn't_ broken HTML. It is completely and utterly valid. Resubmitted as #40432, and fixed in 5.2.2. Previous Comments: [2006-11-08 17:48:40] [EMAIL PROTECTED] To process HTML broken in every possible way we would need to implement a browser in PHP, which is definitely not our goal. [2006-11-08 17:27:01] geoffers at gmail dot com Description: I'm well aware that this an unclear in the HTML specification, but this would bring PHP inline with IE/Fx/Saf/Op as well as the W3C Validator. Reproduce code: --- all">this'); ?> Expected result: this Actual result: -- all">this -- Edit this bug report at http://bugs.php.net/?id=39434&edit=1
#40432 [NEW]: strip_tags() fails with greater than in attribute
From: geoffers at gmail dot com Operating system: Mac OS 10.4.8 PHP version: 5.2.1 PHP Bug Type: Strings related Bug description: strip_tags() fails with greater than in attribute Description: The following valid (X)HTML is not stripped (this has been reported before and closed claiming it is invalid read the SGML and XML specifications this is completely valid). Reproduce code: --- all">this'); ?> Expected result: this Actual result: -- all">this -- Edit bug report at http://bugs.php.net/?id=40432&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40432&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40432&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40432&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40432&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40432&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40432&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=40432&r=needscript Try newer version:http://bugs.php.net/fix.php?id=40432&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40432&r=support Expected behavior:http://bugs.php.net/fix.php?id=40432&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40432&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40432&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40432&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40432&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40432&r=dst IIS Stability:http://bugs.php.net/fix.php?id=40432&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40432&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40432&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40432&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=40432&r=mysqlcfg
#39434 [NEW]: strip_tags() fails with greater than in attribute
From: geoffers at gmail dot com Operating system: Mac OS 10.4.8 PHP version: 4.4.4 PHP Bug Type: Strings related Bug description: strip_tags() fails with greater than in attribute Description: I'm well aware that this an unclear in the HTML specification, but this would bring PHP inline with IE/Fx/Saf/Op as well as the W3C Validator. Reproduce code: --- all">this'); ?> Expected result: this Actual result: -- all">this -- Edit bug report at http://bugs.php.net/?id=39434&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39434&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39434&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39434&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39434&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39434&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39434&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=39434&r=needscript Try newer version:http://bugs.php.net/fix.php?id=39434&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39434&r=support Expected behavior:http://bugs.php.net/fix.php?id=39434&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39434&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39434&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39434&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39434&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39434&r=dst IIS Stability:http://bugs.php.net/fix.php?id=39434&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39434&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39434&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39434&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=39434&r=mysqlcfg