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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 10:01:28 2024 UTC