#33157 [Ana]: Missing htmlspecialchars_decode

From: Date: Fri, 27 May 2005 07:26:13 +0000
Subject: #33157 [Ana]: Missing htmlspecialchars_decode
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969368340@lists.php.net to get a copy of this message
ID: 33157 Updated by: vrana@php.net Reported By: mjs15451 at hotmail dot com Status: Analyzed -Bug Type: Livedocs problem +Bug Type: Documentation problem Operating System: Linux 2.6.10 PHP Version: 5.0.4 -Assigned To: +Assigned To: hholzgra New Comment: Version 5 tags were ignored in the generation process. Here's the patch: http://www.vrana.cz/scite/version5_tags.diff.txt Hartmut, can you please apply the patch? Previous Comments: ------------------------------------------------------------------------ [2005-05-27 03:57:35] iliaa@php.net Documentation is wrong, this function is found in PHP 5.1 only ------------------------------------------------------------------------ [2005-05-27 01:57:06] mjs15451 at hotmail dot com Description: ------------ htmlspecialchars_decode() is missing. Reproduce code: --------------- echo htmlspecialchars_decode("asdf&lt;&gt;"); Expected result: ---------------- Should output: asdf<> Actual result: -------------- Fatal error: Call to undefined function htmlspecialchars_decode() I double checked my php version and I am definitely running php 5.0.4 and according to the docs this function should be available in PHP 5. http://us2.php.net/manual/en/function.htmlspecialchars-decode.php I did the usual configure, make, make install. ./configure --prefix=/usr/lib/php --with-apxs2=/usr/sbin/apxs2 --with-openssl --with-zlib --enable-dio --with-bz2 --enable-calendar --enable-bcmath --with-curl=/usr/include/curl --enable-exif --enable-filepro --enable-ftp --with-ttf --enable-mbstring --enable-zend-multibyte --without-mysql --with-mysqli=/usr/lib/mysql/bin/mysql_config --with-mysql-sock=/var/run/mysqld/mysql.sock --enable-sockets --enable-sqllite-utf8 --enable-wddx --with-gettext=/usr/lib/gettext --with-imagick=/usr --with-mcrypt --with-mhash --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-zlib-dir --with-libxml-dir make make install ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33157&edit=1

« previous php.doc (#969368340) next »