Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

#33037 [NoF->Opn]: English : Example Bad output
ID:          33037
Updated by:  nlopess@php.net
Reported By: jsgoupil@php.net
-Status:      No Feedback
+Status:      Open
Bug Type:    Livedocs problem
PHP Version: Irrelevant
New Comment:

leave it open for further investigation.


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

[2005-05-24 01:00:05] phpdoc at lists dot php dot net

No feedback was provided for this bug for over a w, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

[2005-05-17 00:56:40] jsgoupil@php.net

I'm already running the patch mentionned in #30440
http://livedocs.aborla.net/patch.php?id=entities
Moreover, i wrote a comment into this bug.

I applied it a long time ago and, if I remember, one of the pattern
didn't match, so Ive corrected all files by hand.


These lines were removed :

-$GLOBALS['special'] = array('gt' => 1,'lt' => 1,'quot' => 1,'amp' =>
1);
-
function handle_include($node)
{
global $current_page;

$ref = $node->attributes['ref'];

-	/* Special HTML entities */
-	if (isset($GLOBALS['special'][$ref])) {
-		return '&' . $ref . ';';
-	}
-

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

[2005-05-16 16:28:46] nlopess@php.net

Its a livedocs problem.
Could you please try my ancient patch mentioned in #30440 ?

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

[2005-05-16 03:52:27] jsgoupil@php.net

Description:
------------
reference/strings/functions/htmlspecialchars-decode.html

Ok, look at the example in livedocs what it outputs..., the output is
the same... (check example too).
I don't really know if it is a doc bug or a livedocs bug.
Feel free to redirect this bug to Livedocs...

Perhaps the output will be great on php.net, i don't know ?!

Expected result:
----------------
<?php
$str = '<p>this -&gt; "</p>';

echo htmlspecialchars_decode($str);

// notez ici que les guillemets ne sont pas convertis
echo htmlspecialchars_decode($str, ENT_NOQUOTES);
?>

<p>this -> "</p>
<p>this -> "</p>

Actual result:
--------------
<?php
$str = '<p>this -&gt; "</p>';

echo htmlspecialchars_decode($str);

// notez ici que les guillemets ne sont pas convertis
echo htmlspecialchars_decode($str, ENT_NOQUOTES);
?>

<p>this -> "</p>
<p>this -> "</p>


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


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

Report this thread to moderator Post Follow-up to this message
Old Post
nlopess@php.net
05-27-05 01:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:26 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.