svn: /phpdoc/en/trunk/reference/iconv/functions/ iconv.xml

From: Date: Fri, 08 May 2015 20:46:26 +0000
Subject: svn: /phpdoc/en/trunk/reference/iconv/functions/ iconv.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13278@lists.php.net to get a copy of this message
stas Fri, 08 May 2015 20:46:26 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=336738 Log: Fix iconv() to match current code since 5.4.0 Changed paths: U phpdoc/en/trunk/reference/iconv/functions/iconv.xml Modified: phpdoc/en/trunk/reference/iconv/functions/iconv.xml =================================================================== --- phpdoc/en/trunk/reference/iconv/functions/iconv.xml 2015-05-08 20:11:56 UTC (rev 336737) +++ phpdoc/en/trunk/reference/iconv/functions/iconv.xml 2015-05-08 20:46:26 UTC (rev 336738) @@ -46,8 +46,8 @@ it can be approximated through one or several similarly looking characters. If you append the string <literal>//IGNORE</literal>, characters that cannot be represented in the target charset are silently - discarded. Otherwise, <parameter>str</parameter> is cut from the first - illegal character and an <constant>E_NOTICE</constant> is generated. + discarded. Otherwise, <constant>E_NOTICE</constant> is generated and the function + will return &false;. </para> </listitem> </varlistentry> @@ -70,6 +70,32 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.4.0</entry> + <entry> + Since this version, the function returns &false; on illegal characters, + unless <literal>//IGNORE</literal> is specified in output charset. + Before, it returned partial output string. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> +</refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -96,13 +122,14 @@ IGNORE : This is the Euro symbol ''. Plain : Notice: iconv(): Detected an illegal character in input string in .\iconv-example.php on line 7 -This is the Euro symbol ' ]]> </screen> </example> </para> </refsect1> + + </refentry> <!-- Keep this comment at the end of the file

« previous php.doc.cvs (#13278) next »