php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20110 input in flex scanner failed in <directory> :)
Submitted: 2002-10-26 15:05 UTC Modified: 2002-10-27 18:28 UTC
From: jeroen at unfix dot org Assigned: derick (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 4.2.3 OS: Linux, Net|Free|OpenBSD, others?
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 !
Your email address:
MUST BE VALID
Solve the problem:
50 + 27 = ?
Subscribe to this entry?

 
 [2002-10-26 15:05 UTC] jeroen at unfix dot org
Severity: Cosmetic for error reporting

PHP Fatal error:  input in flex scanner failed in <directoryname>

When doing a:
8<----------------
include("/tmp/");
---------------->8

For instance will produce above error, maybe a "You can't include directories" would be nice?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-27 18:28 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2002-12-24 20:27 UTC] gunnar at start dot no
This error also appears with other functions. More specifically I've experienced it with the parse_ini_file() function. I do not have access to test it with PHP CVS version, do I don't know wether it has been fixed for just the include function, or all functions affected by this problem.
 [2003-03-20 16:59 UTC] bostjan dot skufca at domenca dot com
you can view the bug at:

http://www.avtomobilizem.com/dev/modules/gallery2

this project is using Smarty template engine and 
bug only occurs when i set 

$smarty->force_compile = false;

email me to provide you relevant source files
 [2003-08-06 09:02 UTC] rsemmens at names dot co dot uk
We get the problem intermittently.  We run our websites from NFS and if the file read fails it comes up with this message.  Only when doing includes though.

I agree with the better error message comment :)

Btw, we are using PHP 4.3.2 so it's still a current problem.

Drop me an e-mail if you want any further details.
 [2003-11-26 23:27 UTC] alan at bullmarket dot com dot au
Hi,

I have received that type of error (2 actually).

Please go to http://www.bullmarket.com.au/affiliates/user/signup.php

I am very new to PHP and I am having trouble isolating the issue. Any help you can offer would be great.

Cheers,

Alan
 [2004-06-21 12:49 UTC] bugme at gmx dot net
I recived the bug when i did an include after a db-query. After that i begann whit the query and then the include which would work.

I'dont know why but maybe this helps to find the bug.
 [2004-06-21 12:51 UTC] bugme at gmx dot net
sorry,
little mistake
first the include then the query will work.
 [2004-10-13 10:02 UTC] rihard dot novacan at gmail dot com
input in flex scanner failed in <directory> error can also appear, if you don't have proper (usualy write) permissions on your server...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC