php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
Description:
------------
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:
----------------
bool(true)


Actual result:
--------------
bool(false)


Patches

Pull Requests

History

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

  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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC