Doc #66320 [Opn->Fbk]: Warning Deprecated str_split

From: Date: Wed, 18 Dec 2013 19:03:48 +0000
Subject: Doc #66320 [Opn->Fbk]: Warning Deprecated str_split
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10718@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66320&edit=1 ID: 66320 Updated by: aharvey@php.net Reported by: pyetrosafe at gmail dot com Summary: Warning Deprecated str_split -Status: Open +Status: Feedback Type: Documentation Problem Package: Documentation problem Operating System: Windows Seven PHP Version: 5.4.23 Block user comment: N Private report: N New Comment: I can't reproduce this: http://3v4l.org/qNiVK Are you _absolutely_ sure you don't have a call to split() somewhere in your code? Previous Comments: ------------------------------------------------------------------------ [2013-12-18 18:53:36] pyetrosafe at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.str-split --- Hello... My first time here... I use the function "str_split ()", but I updated php to version '5 .3.27 '(windows) and started receiving an alert that however is another function, "split ()". It appears on my screen a warning "Deprecated: Function split () is deprecated in ..." But the documentation says nothing about himself: "http://php.net/manual/en/function.str-split.php". I tried to escape the warning with the '@' character but without success ... The message remained on the screen ... I'm using Windows: 7, Apache 2.2.25, PHP 5.3.27. PS: I could not test the version 5.4.23, unable to run on my machine, for this reason I am reporting the bug version 5.3.27. Test script: --------------- <? $nv = 4957495050484951 $ss = str_split($nv, 2); print_r($ss); ?> Expected result: ---------------- Array ( [0] => 49 [1] => 57 [2] => 49 [3] => 50 [4] => 50 [5] => 48 [6] => 49 [7] => 51 ) Actual result: -------------- Deprecated: Function split() is deprecated in C:\ApacheServer\www\projetos\b-sitebredas\Cliente\Boleto\include\funcoes_cef_sinco.php on line 213 Array ( [0] => 49 [1] => 57 [2] => 49 [3] => 50 [4] => 50 [5] => 48 [6] => 49 [7] => 51 ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66320&edit=1

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