ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] phpMyAdmin и segmentation fault apache2
@ 2010-01-11  6:54 Anton Gorlov
  0 siblings, 0 replies; only message in thread
From: Anton Gorlov @ 2010-01-11  6:54 UTC (permalink / raw)
  To: ALT Linux Community

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 то падения 
тоже прекращаются.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-11  6:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-11  6:54 [Comm] phpMyAdmin и segmentation fault apache2 Anton Gorlov

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