Bug #64057 [Fbk->NoF]: substr_replace failed charset utf-8
| From: | php-bugs at lists dot php dot net | Date: | Tue, 30 Dec 2014 10:41:57 +0000 |
| Subject: | Bug #64057 [Fbk->NoF]: substr_replace failed charset utf-8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189422@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64057&edit=1
ID: 64057
Updated by: php-bugs@lists.php.net
Reported by: ltsujiguchi at gmail dot com
Summary: substr_replace failed charset utf-8
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Strings related
Operating System: Ubuntu 12.10
PHP Version: 5.4.11
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2013-10-24 06:32:39] yohgaki@php.net
Taking look at the source code, I don't see the cause of this report.
I also get
http://3v4l.org/FMSW9
Try to ask Ubuntu developers.
------------------------------------------------------------------------
[2013-10-10 07:36:31] datibbaw@php.net
Couldn't reproduce this on quite a few versions; see also: http://3v4l.org/FMSW9
------------------------------------------------------------------------
[2013-01-26 13:54:01] ltsujiguchi at gmail dot com
Using echo bin2hex($cond);
Return:
6e6f74696369612e6e6f74696369615f746974756c6f204c494b452025c3a925204f52206e6f74696
369615f6e6f74696369615f636f6e746575646f204c494b4525c3a9253f
------------------------------------------------------------------------
[2013-01-26 13:50:36] ltsujiguchi at gmail dot com
Update comment above: [2013-01-26 13:37 UTC] ltsujiguchi at gmail dot com
Using source in gedit new file
Manually
<?php
$replacement = '%éééééááááá%';
$cond = 'noticia.noticia_titulo LIKE ? OR noticia.noticia_conteudo LIKE ?';
$posItem = stripos($cond, '?');
$cond = substr_replace($cond, $replacement, $posItem, 1);
$posItem = stripos($cond, '?');
$cond = substr_replace($cond, $replacement, $posItem, 1);
echo $cond;
?>
Result:
noticia.noticia_titulo LIKE %éééééááááá% OR
noticia.noticia_cont%éééééááááá%udo
LIKE ?
------------------------------------------------------------------------
[2013-01-26 13:42:04] ltsujiguchi at gmail dot com
Concatenating solved using substr.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=64057
--
Edit this bug report at https://bugs.php.net/bug.php?id=64057&edit=1