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 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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
37 - 6 = ?
Subscribe to this entry?

 
 [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: Wed Apr 24 23:01:34 2024 UTC