Doc #78885 [Com]: hash_file now shows a notice for directories and returns false

From: Date: Fri, 02 Jun 2023 06:44:44 +0000
Subject: Doc #78885 [Com]: hash_file now shows a notice for directories and returns false
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-19621@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78885&edit=1

 ID:                 78885
 Comment by:         mypennmedicine dot online at gmail dot com
 Reported by:        php-bugs at xpaw dot me
 Summary:            hash_file now shows a notice for directories and
                     returns false
 Status:             Open
 Type:               Documentation Problem
 Package:            Filesystem function related
 Operating System:   Linux
 PHP Version:        7.4.0
 Block user comment: N
 Private report:     N

 New Comment:

Thank you. Your example didn't work for me but I managed to fix it, which was basically the
same thing!

(https://www.mypennmedicine.online/)github.com


Previous Comments:
------------------------------------------------------------------------
[2023-01-28 09:25:48] alisaurgbfnbxbpn53 at gmail dot com

That was so amazing. (https://www.mypennmedicine.ltd/)github.com

------------------------------------------------------------------------
[2023-01-28 09:25:04] alisawefguxbpn53 at gmail dot com

That was so amazing

------------------------------------------------------------------------
[2020-11-03 18:09:41] cmb@php.net

Changing to doc problem for now (IIRC, there is at least one
duplicate of this ticket).

------------------------------------------------------------------------
[2019-12-04 09:57:14] nikic@php.net

This is intentional. PR #4474 is also still relevant, because it is a change specific to includes
(not normal file reads).

UPGRADING currently only mentions this change for fread() and fwrite() in particular, but of course
it also affects many, many other filesystem functions that read/write internally. I don't think
we want to exhaustively list everything that might be affected.

------------------------------------------------------------------------
[2019-11-29 14:05:56] cmb@php.net

Well, the behavioral change has been introduced with commit
1cbcf0f[1]; not sure whether this particular behavior has been
anticipated.  If so, PR #4474[2] appears to be superfluous now.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=1cbcf0f4f1e9a14b3fc76f6d3e53b567a9464fd4>
[2] <https://github.com/php/php-src/pull/4474>

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=78885


--
Edit this bug report at https://bugs.php.net/bug.php?id=78885&edit=1


Thread (1 message)

  • mypennmedicine dot online at gmail dot com
  • Unknown Message
    • mypennmedicine dot online at gmail dot com
« previous php.doc.bugs (#19621) next »