|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50938 $noofword=(str_word_count($description, 0)); 0 optional is not working with php
Submitted: 2010-02-05 12:03 UTC Modified: 2010-02-05 13:16 UTC
From: deepika dot gupta at tecnovate dot co dot in Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.2.12 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
43 - 5 = ?
Subscribe to this entry?

 [2010-02-05 12:03 UTC] deepika dot gupta at tecnovate dot co dot in
$noofword=(str_word_count($description, 1));

This function is not working with option 0. I am using PHP5.0 with linux server.

Reproduce code:
From manual page: function.str-word-count#Description


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-05 12:21 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

5.0 is out of support for around 5 years.
 [2010-02-05 13:16 UTC] deepika dot gupta at tecnovate dot co dot in
Thank you for your support.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 13:01:28 2024 UTC