ID: 39130
User updated by: ben dot yan at msn dot com
Reported By: ben dot yan at msn dot com
-Status: No Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: Windows
PHP Version: 5.2.2
Assigned To: wez
New Comment:
hi,
I recompile eAccelerator v0.9.4(http://www.eaccelerator.net/) with the
latest PHP(http://snaps.php.net/php5.2-latest.tar.gz), but the same
problems are still there.
Previous Comments:
------------------------------------------------------------------------
[2007-07-22 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2007-07-14 10:08:28] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
[2007-06-15 12:47:02] grotaiche at hotmail dot com
Yeah, I have the same problem too. I recompile my extension with VS
2005 for every PHP release and I have had the problem for a while.
Commenting the #define _USE_32BIT_TIME_T 1 line is not very difficult
but it is a by-pass ; a more viable solution would be appreciated :)
Thanks !
------------------------------------------------------------------------
[2007-06-02 10:52:53] cxd at webpan dot com
Trying to compile a module for PHP 5.2.3 with VC++ 2005 SP1 I also get
tons of error like:
error C2466: cannot allocate an array of constant size 0
This module (eAccelerator for Windows) compiled fine with VC++ 2005 SP1
and PHP 5.2.2.
The following might explain the cause of the problem (not sure?) that
was (re)introduced with 523( again my module compiles great with PHP 522
& VC++ 2005):
----------------------------------
deprecated "default to int" rule:
Pre-standard C++ (and all C variants predating C99), use the "default
to int" rule when
declarations of functions and variables do not contain an explicit
datatype.
This behavior is maintained in Visual C++ 6.0 as the following
declarations show:
const x=0; //implicit int
static num; // implicit int
myfunc(void *ptr); //implicit return type int
In Visual Studio 2005, you have to specify the datatype explicitly:
const int x=0; static int num; int myfunc(void *ptr);
--------------------
Hope this helps...
------------------------------------------------------------------------
[2007-05-19 18:24:06] sniper@php.net
Wez, you never got to the company laptop..? Or was it stolen? :D
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39130--
Edit this bug report at http://bugs.php.net/?id=39130&edit=1