ID: 38167 Updated by: [EMAIL PROTECTED] Reported By: leestevens318 at msn dot com -Status: Open +Status: Feedback Bug Type: *Programming Data Structures Operating System: Windows PHP Version: 4.4.2 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2006-07-20 19:18:44] leestevens318 at msn dot com Description: ------------ Syntax Highlighting Error, i'm useing you syntax highlighting, and get a error when i use speach marks inside brackets. Reproduce code: --------------- function highlight($code='') { if(!$this->preprocess($code)) { $code = '<code>' . $code . '</code>'; } else { $code = str_replace('< ?php', '<?php', $code); $code = str_replace('<br />', '', $code); ob_start(); highlight_string($code); $code = ob_get_contents(); ob_end_clean(); } return stripslashes($code); } Expected result: ---------------- Should of Printed out: $wpdb->get_var(hSELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = 0); With Syntax Highlighting. Actual result: -------------- When it's read and went throught the Syntax Highlighting, it comes out like this: $wpdb->get_var(”SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = 0”); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38167&edit=1