|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78843 Different behavior of is_dir function on 7.2 vs 7.3
Submitted: 2019-11-20 12:39 UTC Modified: 2019-12-01 04:22 UTC
From: atantic dot ocean at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: Filesystem function related
PHP Version: 7.3.11 OS: Linux Ubuntu 18.04.03
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: atantic dot ocean at gmail dot com
New email:
PHP Version: OS:


 [2019-11-20 12:39 UTC] atantic dot ocean at gmail dot com
Checked behavior of is_dir function on php 7.2.24 vs php 7.3.11

Got bool(true) on php 7.2 and bool(false) on php 7.3.

This result is confusing for me.

Please, let me know if I tested something wrong.

Note: tested in CLI mode.

Test script:
php -r "var_dump(is_dir('themes'));"

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-11-20 12:49 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2019-11-20 12:49 UTC]

  php -d error_reporting=-1 -r "var_dump(is_dir('themes'));"

and also use the absolute path of 'themes'.
 [2019-12-01 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Apr 17 06:01:23 2021 UTC