Fwd: [PHP-DEV] Sybase_ct on linux core and LANG variable
| From: | Brian Foddy | Date: | Fri, 23 Mar 2001 03:04:35 +0000 |
| Subject: | Fwd: [PHP-DEV] Sybase_ct on linux core and LANG variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49790@lists.php.net to get a copy of this message | ||
That's is the sybase_ct libraries, just for clarification.
==================BEGIN FORWARDED 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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
===================END FORWARDED MESSAGE===================