summaryrefslogtreecommitdiff
path: root/databases/php52-pdo_sqlite
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2014-03-01 00:06:29 +0000
committerRene Ladan <rene@FreeBSD.org>2014-03-01 00:06:29 +0000
commitef50dbb213487797f1a2d9f4d0d5636f98bb3894 (patch)
treea82aa9cd34a90c5daecd9ec479f5a85b36141796 /databases/php52-pdo_sqlite
parent- Fix build with clang (diff)
PHP 5.2 has reached it end-of-life in the FreeBSD Ports Tree, time
to say goodbye. Upstream unsupported it since 2011-01-06 (see http://php.net/eol.php ) Strip PHP 5.2 out of Mk/bsd.php.mk
Notes
Notes: svn path=/head/; revision=346583
Diffstat (limited to 'databases/php52-pdo_sqlite')
-rw-r--r--databases/php52-pdo_sqlite/Makefile11
-rw-r--r--databases/php52-pdo_sqlite/files/patch-sqlite_statement.c50
2 files changed, 0 insertions, 61 deletions
diff --git a/databases/php52-pdo_sqlite/Makefile b/databases/php52-pdo_sqlite/Makefile
deleted file mode 100644
index b62ff5faf034..000000000000
--- a/databases/php52-pdo_sqlite/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Created by: Alex Keda <admin@lissyara.su>
-# $FreeBSD$
-
-CATEGORIES= databases
-
-MASTERDIR= ${.CURDIR}/../../lang/php52
-
-PKGNAMESUFFIX= -pdo_sqlite
-
-NO_STAGE= yes
-.include "${MASTERDIR}/Makefile"
diff --git a/databases/php52-pdo_sqlite/files/patch-sqlite_statement.c b/databases/php52-pdo_sqlite/files/patch-sqlite_statement.c
deleted file mode 100644
index 699778b05866..000000000000
--- a/databases/php52-pdo_sqlite/files/patch-sqlite_statement.c
+++ /dev/null
@@ -1,50 +0,0 @@
---- ext/pdo_sqlite/sqlite_statement.c.orig 2007-12-31 08:20:10.000000000 +0100
-+++ ext/pdo_sqlite/sqlite_statement.c 2008-12-07 11:50:35.000000000 +0100
-@@ -104,6 +104,21 @@
- pdo_sqlite_error_stmt(stmt);
- return 0;
-
-+ case PDO_PARAM_INT:
-+ case PDO_PARAM_BOOL:
-+ if (Z_TYPE_P(param->parameter) == IS_NULL) {
-+ if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) {
-+ return 1;
-+ }
-+ } else {
-+ convert_to_long(param->parameter);
-+ if (SQLITE_OK == sqlite3_bind_int(S->stmt, param->paramno + 1, Z_LVAL_P(param->parameter))) {
-+ return 1;
-+ }
-+ }
-+ pdo_sqlite_error_stmt(stmt);
-+ return 0;
-+
- case PDO_PARAM_LOB:
- if (Z_TYPE_P(param->parameter) == IS_RESOURCE) {
- php_stream *stm;
-@@ -117,8 +132,24 @@
- pdo_raise_impl_error(stmt->dbh, stmt, "HY105", "Expected a stream resource" TSRMLS_CC);
- return 0;
- }
-+ } else if (Z_TYPE_P(param->parameter) == IS_NULL) {
-+ if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) {
-+ return 1;
-+ }
-+ pdo_sqlite_error_stmt(stmt);
-+ return 0;
-+ } else {
-+ convert_to_string(param->parameter);
-+ }
-+
-+ if (SQLITE_OK == sqlite3_bind_blob(S->stmt, param->paramno + 1,
-+ Z_STRVAL_P(param->parameter),
-+ Z_STRLEN_P(param->parameter),
-+ SQLITE_STATIC)) {
-+ return 1;
- }
-- /* fall through */
-+ pdo_sqlite_error_stmt(stmt);
-+ return 0;
-
- case PDO_PARAM_STR:
- default: