This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/standard/tests/general_functions/url_rewriter.phpt b/ext/standard/tests/general_functions/url_rewriter.phpt | |
new file mode 100644 | |
index 0000000..ce91b27 | |
--- /dev/null | |
+++ b/ext/standard/tests/general_functions/url_rewriter.phpt | |
@@ -0,0 +1,139 @@ | |
+--TEST-- | |
+URL Rewriter tests | |
+--INI-- | |
+url_rewriter.tags="a=href,form=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/standard/tests/general_functions/url_rewriter.phpt b/ext/standard/tests/general_functions/url_rewriter.phpt | |
new file mode 100644 | |
index 0000000..ce91b27 | |
--- /dev/null | |
+++ b/ext/standard/tests/general_functions/url_rewriter.phpt | |
@@ -0,0 +1,139 @@ | |
+--TEST-- | |
+URL Rewriter tests | |
+--INI-- | |
+url_rewriter.tags="a=href,form=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c | |
index 311d6aa..cad8137 100644 | |
--- a/ext/wddx/wddx.c | |
+++ b/ext/wddx/wddx.c | |
@@ -836,6 +836,7 @@ static void php_wddx_push_element(void *user_data, const XML_Char *name, const X | |
if (atts) for (i = 0; atts[i]; i++) { | |
if (!strcmp(atts[i], EL_NAME) && atts[++i] && atts[i][0]) { | |
+ if (stack->varname) efree(stack->varname); | |
stack->varname = estrdup(atts[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/standard/rand.c b/ext/standard/rand.c | |
index 50729f2..38c405d 100644 | |
--- a/ext/standard/rand.c | |
+++ b/ext/standard/rand.c | |
@@ -293,8 +293,16 @@ PHP_FUNCTION(rand) | |
zend_long number; | |
int argc = ZEND_NUM_ARGS(); | |
- if (argc != 0 && zend_parse_parameters(argc, "ll", &min, &max) == FAILURE) | |
- return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/session/session.c b/ext/session/session.c | |
index fc91eda..3dec117 100644 | |
--- a/ext/session/session.c | |
+++ b/ext/session/session.c | |
@@ -2089,7 +2089,7 @@ static PHP_FUNCTION(session_regenerate_id) | |
RETURN_FALSE; | |
} | |
} | |
- PS(mod)->s_close(&PS(mod_data)); | |
+ /* PS(mod)->s_close(&PS(mod_data)); */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/session/session.c b/ext/session/session.c | |
index c3ea950..867d78e 100644 | |
--- a/ext/session/session.c | |
+++ b/ext/session/session.c | |
@@ -538,9 +538,6 @@ static void php_session_initialize(TSRMLS_D) /* {{{ */ | |
php_session_reset_id(TSRMLS_C); | |
} | |
- /* GC must be done before read */ | |
- php_session_gc(TSRMLS_C); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Use following table | |
CREATE TABLE php_session ( | |
id text UNIQUE NOT NULL, | |
data bytea NOT NULL, | |
updated int8 NOT NULL | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
const NUM_DATA=10000; | |
const DUMMY_BYTES=36000; | |
$db = pg_connect('host=localhost dbname=yohgaki') || die('Failed to connect db'); | |
$dummy = base64_encode(file_get_contents('/dev/urandom', false, null, -1, DUMMY_BYTES)); | |
$dummy = substr($dummy, 0, DUMMY_BYTES); | |
//$dummy = str_repeat('a', DUMMY_BYTES); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
const RECORDS = 1000000; | |
const SEARCHES = 10000; | |
$pgsql = pg_connect('host=localhost dbname=test') or die('Failed to connect PostgreSQL'); | |
$version = pg_version(); | |
!version_compare($version['server'], '9.4', '<') or die('Need PostgreSQL 9.4 or later'); | |
$mongo = (new MongoClient())->test->test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%global pkgname phalcon | |
Name: php-phalcon | |
Version: 1.3.4 | |
Release: 1%{?dist} | |
Summary: PhalconPHP is a web framework delivered as a C extension | |
License: BSD | |
URL: http://phalconphp.com | |
Source0: c%{pkgname}-master.zip |