gnope php gtk gui gnope.org  

Behaviour of is_dir

 
Post new topic   Reply to topic    gnope.org Forum Index -> Chatterbox
View previous topic :: View next topic  
Author Message
Osiris



Joined: 17 Dec 2005
Posts: 65

PostPosted: Sat Mar 04, 2006 11:16 pm    Post subject: Behaviour of is_dir Reply with quote

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

PostPosted: Sun Mar 05, 2006 1:58 am    Post subject: Reply with quote

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

PostPosted: Sun Mar 05, 2006 10:59 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> Chatterbox All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.