Doc #71065 [Opn->Csd]: Wrong return value for Intl Normalizer::normalize

From: Date: Tue, 15 Dec 2015 18:14:02 +0000
Subject: Doc #71065 [Opn->Csd]: Wrong return value for Intl Normalizer::normalize
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12939@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71065&edit=1

 ID:                 71065
 Updated by:         cmb@php.net
 Reported by:        krewecherl at gmail dot net
 Summary:            Wrong return value for Intl Normalizer::normalize
-Status:             Open
+Status:             Closed
 Type:               Documentation Problem
 Package:            Documentation problem
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------
[2015-12-15 18:13:35] 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-08 18:58:14] 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



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



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


Thread (2 messages)

« previous php.doc.bugs (#12939) next »