Bug #67017 [NEW]: include_once() in if statement is taking incorrect parameter
| From: | seufert at gmail dot com | Date: | Fri, 04 Apr 2014 07:07:49 +0000 |
| Subject: | Bug #67017 [NEW]: include_once() in if statement is taking incorrect parameter | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-185082@lists.php.net to get a copy of this message | ||
From: seufert at gmail dot com
Operating system: Mac OS/X 10.9
PHP version: 5.6.0alpha3
Package: Scripting Engine problem
Bug Type: Bug
Bug description:include_once() in if statement is taking incorrect parameter
Description:
------------
Also tested on PHP 5.5.5 on Windows 7 x64
Issue seems to be todo with order of operations, the filename is being
ignored, and perhaps FALSE is being used.
If you change the script to FALSE === require_once(...) it works
perfectly.
Test script:
---------------
<?php
if(require_once("myclass.php") === FALSE) {
echo "Hi there was a problem";
}
new myclass();
Expected result:
----------------
No errors
Actual result:
--------------
Inappropriate ioctl for device in /.../test.php on line 2
--
Edit bug report at https://bugs.php.net/bug.php?id=67017&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67017&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67017&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67017&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67017&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67017&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67017&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67017&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67017&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67017&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67017&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67017&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67017&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67017&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67017&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67017&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67017&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67017&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67017&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67017&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67017&r=mysqlcfg