| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2005-12-06 22:48 UTC] tony2001@php.net
  [2005-12-07 09:34 UTC] tokul at users dot sourceforge dot net
  [2005-12-07 09:39 UTC] tony2001@php.net
  [2005-12-07 20:00 UTC] tokul at users dot sourceforge dot net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 10:00:02 2025 UTC | 
Description: ------------ If gettext extension manages to locate .mo file, script breaks with memory allocation error. php compiled with --disable-all --enable-cli --with-gettext same error in 5.0.4 and 5.1.1. do you need php.core file? Reproduce code: --------------- bindtextdomain('test','./'); textdomain('test'); setlocale(LC_ALL, 'ru_RU.UTF-8'); putenv('LC_ALL=ru_RU.UTF-8'); echo _("Test"); Expected result: ---------------- Test Actual result: -------------- tail of kdump ----- 15066 php CALL mmap(0,0x4395ef38,0x1,0x2,0x3,0,0,0) 15066 php RET mmap -1 errno 12 Cannot allocate memory 15066 php CALL mmap(0,0x4395f000,0x3,0x1002,0xffffffff,0,0,0) 15066 php RET mmap -1 errno 12 Cannot allocate memory 15066 php PSIG SIGSEGV SIG_DFL code 1 addr=0x58e64 trapno=1 15066 php NAMI "php.core" -----