Sybase_ct on linux core and LANG variable
| From: | Brian Foddy | Date: | Fri, 23 Mar 2001 02:53:17 +0000 |
| Subject: | Sybase_ct on linux core and LANG variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49788@lists.php.net to get a copy of this message | ||
I just thought I would pass this along, it might be the cause of some bug reports.
Using Linux Mandrake 7.2 and Sybase Open client 11.1.1, php4.0.4p1.
I was getting a core (illegal instruction)
on apache startup when I had the sybase modules installed in PHP.
However, I knew it worked fine on Solaris 2.6 at work, so I was puzzled. looking
at the backtrace, I discovered it was dumping in cs_ctx_alloc which tries
to read the locales.dat files. Then it hit me, Sybase is very picky
about the LANG variable being set correctly for a matching record
in locales.dat. Mine was set to "en"
The fix... Either
1. set LANG=C in apachectl or
2. add "locale = en, us_english, iso_1" to the locales.dat in the linux section.
This can be very frustrating, I've been working with Sybase for years
and it still took me a long time to find this. I don't know if this is
documented anywhere, but if not it would be nice to have it so.
Brian