php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80999 count() TypeError not documented
Submitted: 2021-04-28 14:40 UTC Modified: 2021-04-28 14:49 UTC
From: sritter at satoya dot cz Assigned:
Status: Closed Package: *General Issues
PHP Version: 8.0.3 OS: Linux Debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sritter at satoya dot cz
New email:
PHP Version: OS:

 

 [2021-04-28 14:40 UTC] sritter at satoya dot cz
Description:
------------
$a[7]=7;
echo count($a[8]); // fatal error

// Warnig is Ok, but Fatal error?

Expected result:
----------------
produce Warning as is described in documentation.
(not Fatal error)


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-04-28 14:49 UTC] nikic@php.net
-Summary: count() produce Fatal Error +Summary: count() TypeError not documented -Type: Bug +Type: Documentation Problem
 [2021-04-28 14:49 UTC] nikic@php.net
Missing a changelog entry and updates to the examples.
 [2021-04-28 22:52 UTC] hallberg dot kim at gmail dot com
The following pull request has been associated:

Patch Name: [80999] Fix count TypeError not documented
On GitHub:  https://github.com/php/doc-en/pull/556
Patch:      https://github.com/php/doc-en/pull/556.patch
 [2021-04-29 13:18 UTC] git@php.net
Automatic comment on behalf of thinkverse (author) and web-flow (committer)
Revision: https://github.com/php/doc-en/commit/a7663ad05e1a825c2ca61810a9b8d45e940a2afc
Log: Fix #80999: count TypeError not documented
 [2021-04-29 13:18 UTC] git@php.net
-Status: Open +Status: Closed
 [2021-04-29 17:39 UTC] git@php.net
Automatic comment on behalf of mumumu
Revision: https://github.com/php/doc-ja/commit/a5d754aecd66c3d7a108c17abc347eee02ad2ece
Log: Fix #80999: count TypeError not documented
 [2021-05-04 08:36 UTC] git@php.net
Automatic comment on behalf of shiny
Revision: https://github.com/php/doc-zh/commit/c18cb0518aa24533d59270d67d19ebe047c7907e
Log: Fix #80999: count TypeError not documented
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC