php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63199 Missing config.w32
Submitted: 2012-10-02 13:30 UTC Modified: 2012-10-02 14:55 UTC
From: bruno at chalopin dot fr Assigned: tony2001 (profile)
Status: Closed Package: libevent (PECL)
PHP Version: 5.4.7 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
48 - 47 = ?
Subscribe to this entry?

 
 [2012-10-02 13:30 UTC] bruno at chalopin dot fr
Description:
------------
The source is missing a config.w32 file to make it installable on windows.
Here's the one i've made :

ARG_WITH("libevent", "libevent support", "no");

if (PHP_LIBEVENT != "no") {

	if (CHECK_HEADER_ADD_INCLUDE("event.h", "CFLAGS_LIBEVENT", PHP_PHP_BUILD + "\\include;" + PHP_LIBEVENT)
        && CHECK_LIB("libevent.lib", "libevent", PHP_PHP_BUILD + "\\lib;" + PHP_LIBEVENT))
	{
		EXTENSION('libevent', 'libevent.c');
		AC_DEFINE('HAVE_LIBEVENT', 1);
	} else {
		WARNING("libevent not enabled; libraries and headers not found");
	}
}



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-02 13:59 UTC] tony2001@php.net
Are you sure it compiles fine on Windows?
If it does, that's a total surprise to me.
 [2012-10-02 14:44 UTC] bruno at chalopin dot fr
It compile and works. I've just reproduce the Rasmus' example : http://toys.lerdorf.com/archives/57-ZeroMQ-+-libevent-in-PHP.html

Got server side :

D:\Partage\php-5.4.7-nts-Win32-VC9-x86>php server.php
CALLBACK FIRED
CALLBACK FIRED
Got incoming data
string(12) "hello there!"
CALLBACK FIRED
CALLBACK FIRED
CALLBACK FIRED
Got incoming data
string(12) "hello there!"
CALLBACK FIRED
CALLBACK FIRED

Got client side :

D:\Partage\php-5.4.7-nts-Win32-VC9-x86>php client.php
string(9) "Got msg 1"

D:\Partage\php-5.4.7-nts-Win32-VC9-x86>php client.php
string(9) "Got msg 2"
 [2012-10-02 14:55 UTC] tony2001@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tony2001
 [2012-10-02 14:55 UTC] tony2001@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Ok, commited the file to SVN.
Thanks for the report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC