php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71065 Wrong return value for Intl Normalizer::normalize
Submitted: 2015-12-08 18:58 UTC Modified: 2015-12-15 18:14 UTC
From: krewecherl at gmail dot net Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: krewecherl at gmail dot net
New email:
PHP Version: OS:

 

 [2015-12-08 18:58 UTC] krewecherl at gmail dot net
Description:
------------
---
From manual page: http://www.php.net/normalizer.normalize
---
"Return Values: The normalized string or NULL if an error occurred."

This function/method returns FALSE (not NULL) if the string could not
be normalized. (The only code path that would lead to a NULL return
value can only be entered in pathological conditions, like a buffer
overflow.)

The normal way to signal a normalization failure, e.g. with invalid
UTF-8 sequences, is to return FALSE.

Example:
var_dump(normalizer_normalize("\x85"));

Related: https://bugs.php.net/bug.php?id=64090


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-15 18:13 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=338262
Log: fix #71065: Wrong return value for Intl Normalizer::normalize
 [2015-12-15 18:14 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2015-12-15 18:14 UTC] cmb@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.


 [2020-02-07 06:07 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=680be1eb68e65dc18e9aee5d33e20e2539f8471e
Log: fix #71065: Wrong return value for Intl Normalizer::normalize
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 15:00:01 2026 UTC