|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-21 06:47 UTC] leestevens318 at msn dot com
[2006-07-23 11:53 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 16:00:02 2025 UTC |
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”);