/[gentoo-x86]/eclass/php-common-r1.eclass
Gentoo

Diff of /eclass/php-common-r1.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.9 2007/03/05 01:50:47 chtekk Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.10 2007/08/27 11:17:32 jokey Exp $
4 4
5# ======================================================================== 5# ========================================================================
6# 6#
7# php-common-r1.eclass 7# php-common-r1.eclass
8# Contains common functions which are shared between the 8# Contains common functions which are shared between the
226# ======================================================================== 226# ========================================================================
227# MYSQL CHARSET DETECTION SUPPORT ## Thanks to hoffie 227# MYSQL CHARSET DETECTION SUPPORT ## Thanks to hoffie
228# ======================================================================== 228# ========================================================================
229 229
230php_get_mycnf_charset() { 230php_get_mycnf_charset() {
231 # nothing todo if no mysql installed
232 if [[ ! -f "${ROOT}/etc/mysql/my.cnf" ]]; then
233 echo "empty"
234 return
235 fi
231 local sapi="${1}" 236 local sapi="${1}"
232 local section="" 237 local section=""
233 local client_charset="" 238 local client_charset=""
234 local sapi_charset="" 239 local sapi_charset=""
235 240

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20