php-windows Digest 12 Sep 2009 06:41:47 -0000 Issue 3693
Topics (messages 29598 through 29599):
Re: compiling php 5.3
29598 by: Tommy Pham
Problem with ldap and php on windows 2003 server
29599 by: Anil Karat
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
--- On Tue, 9/8/09, Tommy Pham <[email protected]> wrote:
> From: Tommy Pham <[email protected]>
> Subject: [PHP-WIN] compiling php 5.3
> To: [email protected]
> Date: Tuesday, September 8, 2009, 3:51 AM
> Hi,
>
> Has anyone manage to build v5.3.x on Windows without
> --disable-sockets?
>
> I can't seem to get pass this error: :(
>
> "cl.exe" /DHAVE_WINSOCK_H=1 /D
> COMPILE_DL_SOCKETS /D SOCKETS_EXPORTS=1 /
> nologo /FD /I . /I main /I Zend /I TSRM /I ext /D _WINDOWS
> /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS
> /wd4996 /Wp64 /MP /Zi /LD /MD /W3 /Ox
> /D NDebug /D NDEBUG /D ZEND_WIN32_FORCE_INLINE /GF /D
> ZEND_DEBUG=0 /D ZTS=1 /I "..\deps\include" /D
> FD_SETSIZE=256 /Fox64\Release_TS\ext\sockets\
> /Fdx64\Release_TS\ext\sockets\
> /Fpx64\Release_TS\ext\sockets\
> /FRx64\Release_TS\ext\sockets\ /c ext\sockets\sockets.c
> cl : Command line warning D9035 : option 'Wp64' has been
> deprecated and will be removed in a future release
> sockets.c
> ext\sockets\sockets.c(327) : error C2491:
> 'php_sockets_le_socket' : definition of dllimport function
> not allowed
>
> Googled for php_sockets_le_socket doesn't give much...
>
> TIA,
> Tommy
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
NVM :) ... I was using the older snapshots of 20090902. It's fixed in SVN on
20090904.
--- End Message ---
--- Begin Message ---
Hi
I have setup apache on windows 2003 and i work with php.
Now i tried to use the ldap client functions on php and tried to connect to
a local ldap server. I also tried to connect to some public ones. i was able
to connect to these servers and see information using standard ldap browsers
like "softerra ldap browser".However while trying to do so with php, i am
getting some wierd errors.
heres my code:
<?php
echo "attempting to connect <br/>";
$ds=ldap_connect("localhost",50004);
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ldap, LDAP_OPT_REFERRALS,0);
if ($ds){
echo "connect to ldap succesful!<br/>";
$r=ldap_bind($ds);}
echo "Bind result is ".$r."<p>";
var_dump($r);
$sr=ldap_search($ldapconn, "cn=anil, ou=people, dc=localhost", "name=k*") or
die ("failed!");
$info = ldap_get_entries($ds, $sr);
echo $info["count"]." entries returned\n";
?>
what happens is on the apache server machine, a dialogue opens up after
sometime saying this-
"The instruction at 0x015a2188 refernced memory location 0x00000000.The
memory could not be "read""
Why does this happen?
if i remove the ldap_search, then the initial outputs of successful bind and
connect are displayed
I have copied those dlls to the correct directories and have enabled the php
ldap module. The module is getting loaded also according to phpinfo()
The issue is happening only when i enable that ldap_Search
please help
thanks
--- End Message ---