Doc #66320 [NEW]: Warning Deprecated str_split
| From: | pyetrosafe at gmail dot com | Date: | Wed, 18 Dec 2013 18:53:36 +0000 |
| Subject: | Doc #66320 [NEW]: Warning Deprecated str_split | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-10717@lists.php.net to get a copy of this message | ||
From: pyetrosafe at gmail dot com
Operating system: Windows Seven
PHP version: 5.4.23
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Warning Deprecated str_split
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 bug report at https://bugs.php.net/bug.php?id=66320&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66320&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66320&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66320&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66320&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66320&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66320&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66320&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66320&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66320&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66320&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66320&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66320&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66320&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66320&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66320&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66320&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66320&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66320&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66320&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66320&r=mysqlcfg