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

 ID:                 53837
 User updated by:    elacunza at binovo dot es
 Reported by:        elacunza at binovo dot es
 Summary:            Gettext extension crashes PHP/Apache
-Status:             Feedback
+Status:             Assigned
 Type:               Bug
 Package:            Gettext related
 Operating System:   Windows
 PHP Version:        5.3.5
 Assigned To:        pajoye
 Block user comment: N
 Private report:     N

 New Comment:

It works perfectly now from the command line, so I'd say you found the
bug and killed it ;)



I fixed also our app not to try to translate string before setting up
environment, and it seems to work ok now with 5.3.5.



Thanks a lot!


Previous Comments:
------------------------------------------------------------------------
[2011-01-26 14:27:29] paj...@php.net

I uploaded the wrong one, pls re fetch them (if you already got them).

------------------------------------------------------------------------
[2011-01-26 13:42:35] paj...@php.net

Please try using:



http://www.php.net/~pierre/php_gettext-5.3.6-nts-vc9-x86.zip

or

http://www.php.net/~pierre/php_gettext-5.3.6-ts-vc9-x86.zip

------------------------------------------------------------------------
[2011-01-26 12:53:39] elacunza at binovo dot es

Thanks to you for your fast replies! :)

------------------------------------------------------------------------
[2011-01-26 12:49:08] paj...@php.net

Let me check and fix if necessary, but that's in libintl not in php :)



Thanks for the feedback!

------------------------------------------------------------------------
[2011-01-26 12:47:32] elacunza at binovo dot es

Ok, I checked the LANG environment variable, and it is unset.



If I do set it (set LANG=esp), then test script doesn't crash. If I
unset it again (set LANG=) then it crashes again.



I think that in out application we could be trying to translate some
string before gettext environment is set up, so this could be the reason
to our application crashing.



Anyway, seems PHP should not crash if no LANG is set? :-)

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


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/bug.php?id=53837


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

Reply via email to