Bug #75203 [NEW]: FILE_USE_INCLUDE_PATH: INT instead BOOL.

From: Date: Wed, 13 Sep 2017 17:11:23 +0000
Subject: Bug #75203 [NEW]: FILE_USE_INCLUDE_PATH: INT instead BOOL.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211134@lists.php.net to get a copy of this message
From: saymongcsw at gmail dot com Operating system: any PHP version: 7.1.9 Package: *General Issues Bug Type: Bug Bug description:FILE_USE_INCLUDE_PATH: INT instead BOOL. Description: ------------ FILE_USE_INCLUDE_PATH returns 1 instead true. https://3v4l.org/UqBVt what causes error with strict_types=1 in file_get_contents(). Test script: --------------- <?php declare(strict_types = 1); file_get_contents('example.txt', FILE_USE_INCLUDE_PATH); Expected result: ---------------- load contents successfully. Actual result: -------------- file_get_contents() expects parameter 2 to be boolean, integer given -- Edit bug report at https://bugs.php.net/bug.php?id=75203&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75203&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75203&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75203&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75203&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75203&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75203&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75203&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75203&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75203&r=support Expected behavior: https://bugs.php.net/fix.php?id=75203&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75203&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75203&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75203&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75203&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75203&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75203&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75203&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75203&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75203&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75203&r=mysqlcfg

« previous php.bugs (#211134) next »