failed to open stream: Inappropriate ioctl for device

I try to include the yii-framework in a console-only Application.

I use this code:

test.php:




<?php

require_once "yii-1.1a/framework/yii.php";

?>



And a php test.php reveals the following Message:

What is wrong?

No… the path is definitely correct. The file is found.

I think an "Inappropriate ioctl for device" is a message that comes from the filesystem? Maybe php fails to open the file? Including the same yii.php from an full Web-Application works fine.

I first thought it might be a set open_basedir, but that wouldn’t give this error message. Anyway i think CLI is configured differently from apache module. So try to compare the php.ini for both.