php-windows Digest 14 Sep 2009 09:07:20 -0000 Issue 3694

Topics (messages 29600 through 29601):

Problem with ldap and php on windows 2003 server
        29600 by: Anil Karat

Re: [DOC-BUGS] #49547 [NEW]: Errors in the phd --help text
        29601 by: Richard Quadling

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 ---
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
Anil

--- End Message ---
--- Begin Message ---
2009/9/14 mike at silverorange dot com <[email protected]>:
> From:             mike at silverorange dot com
> Operating system: Irrelevant
> PHP version:      5.3SVN-2009-09-13 (snap)
> PHP Bug Type:     Doc Build problem
> Bug description:  Errors in the phd --help text
>
> Description:
> ------------
> I installed PhD from svn today.
>
> phd --help has two issues I can see.
>
> 1. The --color option says it is off by default, but it was on by default
> for me.
>
> 2. In the sentence "Most options can be passed multiple times for greater
> affect.", the word "effect" should be used instead of "affect".
>
>
> --
> Edit bug report at http://bugs.php.net/?id=49547&edit=1
> --
> Try a snapshot (PHP 5.2):            
> http://bugs.php.net/fix.php?id=49547&r=trysnapshot52
> Try a snapshot (PHP 5.3):            
> http://bugs.php.net/fix.php?id=49547&r=trysnapshot53
> Try a snapshot (PHP 6.0):            
> http://bugs.php.net/fix.php?id=49547&r=trysnapshot60
> Fixed in SVN:                        
> http://bugs.php.net/fix.php?id=49547&r=fixed
> Fixed in SVN and need be documented: 
> http://bugs.php.net/fix.php?id=49547&r=needdocs
> Fixed in release:                    
> http://bugs.php.net/fix.php?id=49547&r=alreadyfixed
> Need backtrace:                      
> http://bugs.php.net/fix.php?id=49547&r=needtrace
> Need Reproduce Script:               
> http://bugs.php.net/fix.php?id=49547&r=needscript
> Try newer version:                   
> http://bugs.php.net/fix.php?id=49547&r=oldversion
> Not developer issue:                 
> http://bugs.php.net/fix.php?id=49547&r=support
> Expected behavior:                   
> http://bugs.php.net/fix.php?id=49547&r=notwrong
> Not enough info:                     
> http://bugs.php.net/fix.php?id=49547&r=notenoughinfo
> Submitted twice:                     
> http://bugs.php.net/fix.php?id=49547&r=submittedtwice
> register_globals:                    
> http://bugs.php.net/fix.php?id=49547&r=globals
> PHP 4 support discontinued:          
> http://bugs.php.net/fix.php?id=49547&r=php4
> Daylight Savings:                    
> http://bugs.php.net/fix.php?id=49547&r=dst
> IIS Stability:                       
> http://bugs.php.net/fix.php?id=49547&r=isapi
> Install GNU Sed:                     
> http://bugs.php.net/fix.php?id=49547&r=gnused
> Floating point limitations:          
> http://bugs.php.net/fix.php?id=49547&r=float
> No Zend Extensions:                  
> http://bugs.php.net/fix.php?id=49547&r=nozend
> MySQL Configuration Error:           
> http://bugs.php.net/fix.php?id=49547&r=mysqlcfg
>
>
> --
> PHP Documentation Bugs Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


In my testing, Windows XP, Windows 2003 and Windows 2008, by default,
have no support for coloured console output (along the lines of the
old-style ANSI.SYS for MS-DOS).

I use a program called ANSICON.EXE from Jason Hood (his site is
currently offline [1]). Full source is available when the site is up.

By use of a registry entry ...

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"AutoRun"="C:\\Utils\\ANSICon.exe -p"


ANSICon loads every time you load a %COMSPEC%.

Doesn't support the entire ANSI set (keyboard remapping isn't
present), but all the coloured outputs works fine (there is a nice
example file showing all the colour combinations with normal and
brights foreground and background).

Regards,

Richard Quadling.

P.S. I've contacted Jason about the site, I'll let you know when I get
a response.

[1] http://adoxa.110mb.com/ansicon/
-- 
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--- End Message ---

Reply via email to