php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #33157 Missing htmlspecialchars_decode
Submitted: 2005-05-27 01:57 UTC Modified: 2005-09-06 20:36 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: mjs15451 at hotmail dot com Assigned: hholzgra (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.0.4 OS: Linux 2.6.10
Private report: No CVE-ID: None
 [2005-05-27 01:57 UTC] mjs15451 at hotmail dot com
Description:
------------
htmlspecialchars_decode() is missing.

Reproduce code:
---------------
echo htmlspecialchars_decode("asdf<>");

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-27 03:57 UTC] iliaa@php.net
Documentation is wrong, this function is found in PHP 5.1 only
 [2005-05-27 09:26 UTC] vrana@php.net
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?
 [2005-09-03 12:50 UTC] nlopess@php.net
Harmut has applied a patch to functable, but I don't think it is correct.
The latest update (yesterday) show some changes like:
PHP 4 >= 4.3.2  changed to  4.3.2 - 4.4.0 only
PHP 4   changed to PHP 4 <= 4.4.0

IMHO the first (original) format is prefered.
 [2005-09-06 20:36 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC