Problems with ZipArchive class in PhpED 4.6.3 |
|
Hello,
I have tried to use ZipArchive class in my application (to create/extract zip archives) and I have come across with problem. By first time PhpED was generating error, something like ‘ZipArchive() unknown class’. That means zip extension was not enabled by default so I go to php.ini file to enable it but I can not find corresponding line in extension list (extension=php_zip.dll) for PHP5. A bit later I have checked php.ini for PHP4 and found it there, so I just copied it. After all of this the first problem (unknown class) seemed to be solved. Based on watch list I have checked the state of $zip variable and it looks correct (I think) $zip = new ZipArchive(); The next step which I have done was: to create archive file as it was written on examples on www.php.net web site: $zip->open($zipPath, ZIPARCHIVE::CREATE); After about 10 sec PhpED generates fatal error with following message: ‘CGI / FastCGI has encountered a problem and needs to close. We are sorry for the inconvenience’. Furthermore when I was typing ‘$zip->’ it did not gave me any hint (methods or properties of ZipArchive class). All these brought me to the point that may be PhpED could not use Zip extension. Could you please help me? Kindest regards Vitali Simsive |
||||||||||||
|
Site Admin
|
all embedded classes (the classes that come with php extensions in binary form, not in php files) require prototypes.
Feel free to add them the same way as suggested there http://forum.nusphere.com/code-completion-for-php-spl-dom-pdo-and-dom-t1733.html |
||||||||||||
_________________ The PHP IDE team |
|
Could you pleas help me with this messages and hints, I have tried to do the same but it does not work and I have no idea why . Here is the simple code example
I have no idea how can I show hint like this addFile(string $filename [, string $localname]); And the last question, what about class constants declarations? How should I declare them? For example ZIPARCHIVE::CREATE? |
||||||||||||||
|
Site Admin
|
Prototype MUST be a correct php file anyway, for example:
|
||||||||||||||
_________________ The PHP IDE team |
|
Still does not work
|
||||||||||||
|
|
dmitri, could you please give me working example? Where all hints shown in correct way?
Thanks p.s. Almost half month pass and I have not receive any meaningful answer. |
||||||||||||
|
Veteran
|
|
||||||||||||
|
|
Thanks a lot, it's really works now |
||||||||||||||
|
Problems with ZipArchive class in PhpED 4.6.3 |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by