php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #78428 ini_get_all may return false
Submitted: 2019-08-19 07:28 UTC Modified: 2019-08-19 07:40 UTC
From: fabien dot villepinte at gmail dot com Assigned: peehaa (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
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:
MUST BE VALID
Solve the problem:
14 - 4 = ?
Subscribe to this entry?

 
 [2019-08-19 07:28 UTC] fabien dot villepinte at gmail dot com
Description:
------------
The documentation doesn't describe the fact that ini_get_all() may return false whether the given extension is invalid.

See: http://docs.php.net/manual/en/function.ini-get-all.php

Test script:
---------------
<?php
// @see https://3v4l.org/nmQoo
var_dump(ini_get_all('foobarbaz'));
/*
Warning: ini_get_all(): Unable to find extension 'foobarbaz' in /in/nmQoo on line 3
bool(false)
*/


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-19 07:39 UTC] peehaa@php.net
Automatic comment from SVN on behalf of peehaa
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=347869
Log: Added false return value when extension doesn't exist #78428
 [2019-08-19 07:40 UTC] peehaa@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: peehaa
 [2019-08-19 07:40 UTC] peehaa@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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 07:01:34 2024 UTC