summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Fuhrmannek2014-07-09 16:29:48 +0200
committerBen Fuhrmannek2014-07-09 16:29:48 +0200
commit5abf81e9ddc7e70d5c223ebf906a0f29145892a9 (patch)
tree32dc05f11ec4be661eb52df4493c52b84aed487b
parent476300ee97276020cc166066b19fc8026142f023 (diff)
untested features must be enabled: configure --enable-suhosin-experimental
-rw-r--r--.gitignore9
-rw-r--r--config.m47
-rw-r--r--execute.c4
3 files changed, 18 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index a2e673f..cd5d051 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,12 @@
1.DS_Store 1.DS_Store
2/config.* 2/config.log
3config.guess
4config.h
5config.h.in
6config.h.in~
7config.nice
8config.status
9config.sub
3/*.lo 10/*.lo
4/.deps 11/.deps
5/.libs/ 12/.libs/
diff --git a/config.m4 b/config.m4
index ee4b7ba..01edafd 100644
--- a/config.m4
+++ b/config.m4
@@ -7,3 +7,10 @@ PHP_ARG_ENABLE(suhosin, whether to enable suhosin support,
7if test "$PHP_SUHOSIN" != "no"; then 7if test "$PHP_SUHOSIN" != "no"; then
8 PHP_NEW_EXTENSION(suhosin, suhosin.c sha256.c memory_limit.c treat_data.c ifilter.c post_handler.c ufilter.c rfc1867.c rfc1867_new.c log.c header.c execute.c ex_imp.c session.c aes.c compat_snprintf.c, $ext_shared) 8 PHP_NEW_EXTENSION(suhosin, suhosin.c sha256.c memory_limit.c treat_data.c ifilter.c post_handler.c ufilter.c rfc1867.c rfc1867_new.c log.c header.c execute.c ex_imp.c session.c aes.c compat_snprintf.c, $ext_shared)
9fi 9fi
10
11PHP_ARG_ENABLE(suhosin-experimental, whether to enable experimental suhosin features,
12[ --enable-suhosin-experimental Enable experimental suhosin features], no, no)
13
14if test "$PHP_SUHOSIN_EXPERIMENTAL" != "no"; then
15 AC_DEFINE(SUHOSIN_EXPERIMENTAL, 1, [Whether to enable experimental suhosin features])
16fi
diff --git a/execute.c b/execute.c
index f2877d4..82a4866 100644
--- a/execute.c
+++ b/execute.c
@@ -1618,6 +1618,7 @@ internal_function_handler ihandlers[] = {
1618 { "mysql_db_query", ih_querycheck, (void *)2, (void *)1, NULL }, 1618 { "mysql_db_query", ih_querycheck, (void *)2, (void *)1, NULL },
1619 { "mysql_unbuffered_query", ih_querycheck, (void *)1, (void *)1, NULL }, 1619 { "mysql_unbuffered_query", ih_querycheck, (void *)1, (void *)1, NULL },
1620 1620
1621#ifdef SUHOSIN_EXPERIMENTAL
1621 /* MaxDB */ 1622 /* MaxDB */
1622 { "maxdb::maxdb", ih_fixusername, (void *)2, NULL, NULL }, 1623 { "maxdb::maxdb", ih_fixusername, (void *)2, NULL, NULL },
1623 { "maxdb_connect", ih_fixusername, (void *)2, NULL, NULL }, 1624 { "maxdb_connect", ih_fixusername, (void *)2, NULL, NULL },
@@ -1671,7 +1672,8 @@ internal_function_handler ihandlers[] = {
1671 /* Microsoft SQL Server */ 1672 /* Microsoft SQL Server */
1672 { "mssql_connect", ih_fixusername, (void *)2, NULL, NULL }, 1673 { "mssql_connect", ih_fixusername, (void *)2, NULL, NULL },
1673 { "mssql_pconnect", ih_fixusername, (void *)2, NULL, NULL }, 1674 { "mssql_pconnect", ih_fixusername, (void *)2, NULL, NULL },
1674 1675#endif
1676
1675 { NULL, NULL, NULL, NULL, NULL } 1677 { NULL, NULL, NULL, NULL, NULL }
1676}; 1678};
1677 1679