php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52680 Documentation examples uses a deprecated function
Submitted: 2010-08-23 23:11 UTC Modified: 2010-08-23 23:52 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: logan at logansbailey dot com Assigned: salathe (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.2.14 OS: Linux
Private report: No CVE-ID: None
 [2010-08-23 23:11 UTC] logan at logansbailey dot com
Description:
------------
http://www.php.net/manual/en/function.fputcsv.php
The example given by PHP uses split, which to quote http://www.php.net/split "his 
function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly 
discouraged.".  Maybe explode would be a better suited function call for the 
example.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-23 23:50 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=302723
Log: better basic example for fputcsv (doc #52680)
 [2010-08-23 23:52 UTC] salathe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: salathe
 [2010-08-23 23:52 UTC] salathe@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.

Explode would have been a better alternative to split. However, I've made the example more clear by using an array of arrays... no need for splitting/exploding.

Thanks for your report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 22:00:01 2026 UTC