#23410 [Opn->Asn]: bcompiler on windows error
| From: | arnaud@php.net | Date: | Tue, 29 Apr 2003 14:08:02 +0000 |
| Subject: | #23410 [Opn->Asn]: bcompiler on windows error | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15711@lists.php.net to get a copy of this message | ||
ID: 23410
Updated by: arnaud@php.net
Reported By: mike at blueroot dot net
-Status: Open
+Status: Assigned
Bug Type: PEAR related
Operating System: Win32
PHP Version: 4.3.1
-Assigned To:
+Assigned To: alan_k
New Comment:
yeah, i know, too fast :)
Previous Comments:
------------------------------------------------------------------------
[2003-04-29 08:56:14] mike at blueroot dot net
I am using bcompiler on windows with apache.
PHP version 4.3.1
Apache 1.3.24
I downloaded the php_bcompiler.dll from snaps.php.net
I can compile classes using this code,
$fh = fopen("classes/portfolio.class.phc", "w+");
bcompiler_write_header($fh);
bcompiler_write_class($fh,"Portfolio");
bcompiler_write_footer($fh);
fclose($fh);
no errors are given and the files seem to be generated correctly.
When I try to reload the class using this code I get the error Warning:
bcompiler: Read Past End of File repeated many times and then apache
crashes.
$fh = fopen("classes/my.class.phc","r");
bcompiler_read($fh);
fclose($fh);
if I use the bcompiler_load function
ie. bcompiler_load('classes/my.class.phc'); I get the error
Warning: Could not find Magic header in stream
Sorry if this is the same cause as bug 21160. If it is, when will the
dll at snaps.php.net be fixed?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23410&edit=1