| View previous topic :: View next topic |
| Author |
Message |
Osiris
Joined: 17 Dec 2005 Posts: 65
|
Posted: Sat Mar 04, 2006 11:16 pm Post subject: Behaviour of is_dir |
|
|
Hello,
I've some problems with the readdir function within my PHP-GTK2-App.
At the moment I use pear-package File_Find for scanning directories.
But when the full path (beginning with the drive letter) of a file has more than 256 characters, the application dies without any message.
Also, when calling the File_Find-Class from commandline throws this error without any message. The commandline call ends up in something neverending
So, what's up with this? Why I can't use this function in my GTK-app (btw. the same problem appeared in the Version 1 of php-gtk, with a selfwritten class for subdirectory scanning)
Greetings
Christian
----
Some notes, after debugging where the error occurs:
The error occurs when calling the is_dir() function of php and the full pathname to a file is longer then 256 chars.
The same error was posted by another user within the comments to the function is_dir() on php.net
Now it's time to search for a workaround or bugfix.
Last edited by Osiris on Sun Mar 05, 2006 1:59 am; edited 1 time in total |
|
| Back to top |
|
 |
Osiris
Joined: 17 Dec 2005 Posts: 65
|
Posted: Sun Mar 05, 2006 1:58 am Post subject: |
|
|
Here's the bug report to this bug:
http://bugs.php.net/bug.php?id=31347
So, is it possible to build a new php-version for the current release, which includes the patch to this bug?
Thanks
Christian |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Sun Mar 05, 2006 10:59 am Post subject: |
|
|
| I don't know when php 5.1.2 came out, but it later, it will contain the bugfix already. You could use this version for php-gtk2 as well, the new gnope (to arrive in one or two weeks) will have it. |
|
| Back to top |
|
 |
|