Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit b0c72bc

Browse files
committed
Testing
1 parent 5e34706 commit b0c72bc

File tree

2 files changed

+4
-145
lines changed

2 files changed

+4
-145
lines changed

spec/fixtures/php.ini

Lines changed: 0 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,16 +1005,6 @@ date.timezone = UTC
10051005

10061006
;pdo_odbc.db2_instance_name
10071007

1008-
[Pdo_mysql]
1009-
; If mysqlnd is used: Number of cache slots for the internal result set cache
1010-
; http://php.net/pdo_mysql.cache_size
1011-
pdo_mysql.cache_size = 2000
1012-
1013-
; Default socket name for local MySQL connects. If empty, uses the built-in
1014-
; MySQL defaults.
1015-
; http://php.net/pdo_mysql.default-socket
1016-
pdo_mysql.default_socket=/test/boxen/data/mysql/socket
1017-
10181008
[Phar]
10191009
; http://php.net/phar.readonly
10201010
;phar.readonly = On
@@ -1136,137 +1126,6 @@ ibase.dateformat = "%Y-%m-%d"
11361126
; Default time format.
11371127
ibase.timeformat = "%H:%M:%S"
11381128

1139-
[MySQL]
1140-
; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1141-
; http://php.net/mysql.allow_local_infile
1142-
mysql.allow_local_infile = On
1143-
1144-
; Allow or prevent persistent links.
1145-
; http://php.net/mysql.allow-persistent
1146-
mysql.allow_persistent = On
1147-
1148-
; If mysqlnd is used: Number of cache slots for the internal result set cache
1149-
; http://php.net/mysql.cache_size
1150-
mysql.cache_size = 2000
1151-
1152-
; Maximum number of persistent links. -1 means no limit.
1153-
; http://php.net/mysql.max-persistent
1154-
mysql.max_persistent = -1
1155-
1156-
; Maximum number of links (persistent + non-persistent). -1 means no limit.
1157-
; http://php.net/mysql.max-links
1158-
mysql.max_links = -1
1159-
1160-
; Default port number for mysql_connect(). If unset, mysql_connect() will use
1161-
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1162-
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1163-
; at MYSQL_PORT.
1164-
; http://php.net/mysql.default-port
1165-
mysql.default_port =
1166-
1167-
; Default socket name for local MySQL connects. If empty, uses the built-in
1168-
; MySQL defaults.
1169-
; http://php.net/mysql.default-socket
1170-
mysql.default_socket =/test/boxen/data/mysql/socket
1171-
1172-
; Default host for mysql_connect() (doesn't apply in safe mode).
1173-
; http://php.net/mysql.default-host
1174-
mysql.default_host =
1175-
1176-
; Default user for mysql_connect() (doesn't apply in safe mode).
1177-
; http://php.net/mysql.default-user
1178-
mysql.default_user =
1179-
1180-
; Default password for mysql_connect() (doesn't apply in safe mode).
1181-
; Note that this is generally a *bad* idea to store passwords in this file.
1182-
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
1183-
; and reveal this password! And of course, any users with read access to this
1184-
; file will be able to reveal the password as well.
1185-
; http://php.net/mysql.default-password
1186-
mysql.default_password =
1187-
1188-
; Maximum time (in seconds) for connect timeout. -1 means no limit
1189-
; http://php.net/mysql.connect-timeout
1190-
mysql.connect_timeout = 60
1191-
1192-
; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
1193-
; SQL-Errors will be displayed.
1194-
; http://php.net/mysql.trace-mode
1195-
mysql.trace_mode = Off
1196-
1197-
[MySQLi]
1198-
1199-
; Maximum number of persistent links. -1 means no limit.
1200-
; http://php.net/mysqli.max-persistent
1201-
mysqli.max_persistent = -1
1202-
1203-
; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1204-
; http://php.net/mysqli.allow_local_infile
1205-
;mysqli.allow_local_infile = On
1206-
1207-
; Allow or prevent persistent links.
1208-
; http://php.net/mysqli.allow-persistent
1209-
mysqli.allow_persistent = On
1210-
1211-
; Maximum number of links. -1 means no limit.
1212-
; http://php.net/mysqli.max-links
1213-
mysqli.max_links = -1
1214-
1215-
; If mysqlnd is used: Number of cache slots for the internal result set cache
1216-
; http://php.net/mysqli.cache_size
1217-
mysqli.cache_size = 2000
1218-
1219-
; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
1220-
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1221-
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1222-
; at MYSQL_PORT.
1223-
; http://php.net/mysqli.default-port
1224-
mysqli.default_port = 3306
1225-
1226-
; Default socket name for local MySQL connects. If empty, uses the built-in
1227-
; MySQL defaults.
1228-
; http://php.net/mysqli.default-socket
1229-
mysqli.default_socket =/test/boxen/data/mysql/socket
1230-
1231-
; Default host for mysql_connect() (doesn't apply in safe mode).
1232-
; http://php.net/mysqli.default-host
1233-
mysqli.default_host =
1234-
1235-
; Default user for mysql_connect() (doesn't apply in safe mode).
1236-
; http://php.net/mysqli.default-user
1237-
mysqli.default_user =
1238-
1239-
; Default password for mysqli_connect() (doesn't apply in safe mode).
1240-
; Note that this is generally a *bad* idea to store passwords in this file.
1241-
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
1242-
; and reveal this password! And of course, any users with read access to this
1243-
; file will be able to reveal the password as well.
1244-
; http://php.net/mysqli.default-pw
1245-
mysqli.default_pw =
1246-
1247-
; Allow or prevent reconnect
1248-
mysqli.reconnect = Off
1249-
1250-
[mysqlnd]
1251-
; Enable / Disable collection of general statstics by mysqlnd which can be
1252-
; used to tune and monitor MySQL operations.
1253-
; http://php.net/mysqlnd.collect_statistics
1254-
mysqlnd.collect_statistics = On
1255-
1256-
; Enable / Disable collection of memory usage statstics by mysqlnd which can be
1257-
; used to tune and monitor MySQL operations.
1258-
; http://php.net/mysqlnd.collect_memory_statistics
1259-
mysqlnd.collect_memory_statistics = Off
1260-
1261-
; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
1262-
; http://php.net/mysqlnd.net_cmd_buffer_size
1263-
;mysqlnd.net_cmd_buffer_size = 2048
1264-
1265-
; Size of a pre-allocated buffer used for reading data sent by the server in
1266-
; bytes.
1267-
; http://php.net/mysqlnd.net_read_buffer_size
1268-
;mysqlnd.net_read_buffer_size = 32768
1269-
12701129
[OCI8]
12711130

12721131
; Connection: Enables privileged connections using external

templates/php.ini.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ date.timezone = UTC
10041004
;pdo_odbc.connection_pooling=strict
10051005

10061006
;pdo_odbc.db2_instance_name
1007-
1007+
<% if @mysql %>
10081008
[Pdo_mysql]
10091009
; If mysqlnd is used: Number of cache slots for the internal result set cache
10101010
; http://php.net/pdo_mysql.cache_size
@@ -1014,7 +1014,7 @@ pdo_mysql.cache_size = 2000
10141014
; MySQL defaults.
10151015
; http://php.net/pdo_mysql.default-socket
10161016
pdo_mysql.default_socket=<%= scope.lookupvar('::mysql::config::socket') %>
1017-
1017+
<% end %>
10181018
[Phar]
10191019
; http://php.net/phar.readonly
10201020
;phar.readonly = On
@@ -1135,7 +1135,7 @@ ibase.dateformat = "%Y-%m-%d"
11351135

11361136
; Default time format.
11371137
ibase.timeformat = "%H:%M:%S"
1138-
1138+
<% if @mysql %>
11391139
[MySQL]
11401140
; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
11411141
; http://php.net/mysql.allow_local_infile
@@ -1266,7 +1266,7 @@ mysqlnd.collect_memory_statistics = Off
12661266
; bytes.
12671267
; http://php.net/mysqlnd.net_read_buffer_size
12681268
;mysqlnd.net_read_buffer_size = 32768
1269-
1269+
<% end %>
12701270
[OCI8]
12711271

12721272
; Connection: Enables privileged connections using external

0 commit comments

Comments
 (0)