ID:               38819
 Comment by:       cardoe at gentoo dot org
 Reported By:      madcoder at gmail dot com
 Status:           No Feedback
 Bug Type:         LDAP related
 Operating System: 2.6.17-gentoo linux amd64
 PHP Version:      5.1.6
 New Comment:

Several other Gentoo users are experiencing this issue as well. The
issue is still an opened one with no fixes having occurred in PHP. You
can see the Gentoo bug @ http://bugs.gentoo.org/show_bug.cgi?id=133467


Previous Comments:
------------------------------------------------------------------------

[2006-10-10 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".

------------------------------------------------------------------------

[2006-10-02 11:42:02] [EMAIL PROTECTED]

>works *without* any segfaults.
Ok, great. Please don't close the report until the issue is resolved in
PHP.
Could you please also ask OpenLDAP developers if this flag would affect
anything else? I.e. if it didn't segfault before, could this flag add
any problems?
If no, I'll add it to the config.m4, so it'll be defined in all
builds.

>But wouldn't it be beneficial to take the OpenLDAP
>developers' advice, and rewrite this so-called
>"deprecated" use of OpenLDAP?
Sure it would be. And we would gladly accept their help.
But the current situation is that ext/ldap maintainer is not active for
a long time and nobody really interested in ldap. If you can help us
with that - you're welcome.

Also, it would be good if OpenLDAP developers keep the backward
compatibility, since we cannot rely on users using the most
latest-and-greatest OpenLDAP version and rewrite ext/ldap each time
they change the API.

------------------------------------------------------------------------

[2006-10-02 11:32:34] madcoder at gmail dot com

Sorry, it appears I added that in the wrong place.  I added it to the
Makefile for ext/ldap, and it compiled, and works *without* any
segfaults.

I don't want to sound rude, so please don't take this the wrong way,
...  But wouldn't it be beneficial to take the OpenLDAP developers'
advice, and rewrite this so-called "deprecated" use of OpenLDAP?  It
appears to only occur on certain machines, perhaps even only on certain
amd64 machines, but it is still rather annoying if no one is sure what
causes it, and it takes 2 weeks (or longer, in my case, since I've been
having this problem long before I posted to any trackers) to get an
answer from someone.

Thanks again for your help, and patience while working through this
problem.

------------------------------------------------------------------------

[2006-10-02 11:20:50] madcoder at gmail dot com

In ext/ldap/config.m4, I changed the following to add the flag you
mentioned:

>  CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR -DLDAP_DEPRECATED=1"

Then reconfigured and rebuilt php.  I'm not sure if I did that
properly, but from what information I found about the flag, that is
appropriate.

And I *do* still get the segfault.  Should I try a distclean as well?
Or should I recompile OpenLDAP first (with or without that flag)?

------------------------------------------------------------------------

[2006-10-02 09:20:13] [EMAIL PROTECTED]

So does it work for you if you add that magical -DLDAP_DEPRECATED=1 ?

------------------------------------------------------------------------

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/38819

-- 
Edit this bug report at http://bugs.php.net/?id=38819&edit=1

Reply via email to