ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Anton Gorlov <stalker@altlinux.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: [Comm] phpMyAdmin и segmentation fault apache2
Date: Mon, 11 Jan 2010 09:54:05 +0300
Message-ID: <4B4ACB0D.1010102@altlinux.ru> (raw)

display_select_lang.lib.php
@ line 64-83:

 > > foreach ($GLOBALS['available_languages'] as $id => $tmplang) {
 > >         $lang_name = ucfirst(substr(strrchr($tmplang[0], '|'), 1));
 > >
 > >         // Include native name if non empty
 > >         if (!empty($tmplang[3])) {
 > >             $lang_name = $tmplang[3] . ' - '
 > >                 . $lang_name;
 > >         }
 > >
 > >         //Is current one active?
 > >         if ($lang == $id) {
 > >             $selected = ' selected="selected"';
 > >         } else {
 > >             $selected = '';
 > >         }
 > >
 > >         echo '        ';
 > >         echo '<option value="' . $id . '"' . $selected . '>' . 
$lang_name
 > >             . '</option>' . "\n";
 > >     }

если допустим оставить в цикле только

 > >$lang_name = ucfirst(substr(strrchr($tmplang[0], '|'), 1));
 > >echo '<option value="' . $id . '"' . $selected . '>' . $lang_name . 
'</option>' . "\n";

то всё равно падает.
а если сделать echo $lang_name; то распрекрасно работает
в то же время просто разделить на разные echo тоже нельзя,  и всё
упадет если сделать:

 > >$lang_name = ucfirst(substr(strrchr($tmplang[0], '|'), 1));
 > >echo '<option value="' . $id . '"' . $selected . '>';
 > >echo $lang_name;
 > >echo'</option>' . "\n";

так же с помощью gdb и  ковыряния php  удалось выяснить что падает 
где-то в области  php_end_ob_buffer
если в конфиге php изменить output_handler = на ob_gzhandler то падения 
тоже прекращаются.




                 reply	other threads:[~2010-01-11  6:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B4ACB0D.1010102@altlinux.ru \
    --to=stalker@altlinux.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git