]> git.pld-linux.org Git - packages/php.git/commitdiff
- backported loading dl extension with -dexetnsion=extension.so in cli
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 9 Dec 2005 22:40:51 +0000 (22:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-dextension.patch -> 1.1

php-dextension.patch [new file with mode: 0644]

diff --git a/php-dextension.patch b/php-dextension.patch
new file mode 100644 (file)
index 0000000..895d55c
--- /dev/null
@@ -0,0 +1,20 @@
+backported loading dl extension with -dexetnsion=extension.so from php5.1-200512091130
+
+--- php-5.0.5/sapi/cli/php_cli.c       2005-03-22 17:09:20.000000000 +0200
++++ php5.1-200512091130/sapi/cli/php_cli.c     2005-12-06 03:38:26.000000000 +0200
+@@ -409,7 +433,14 @@
+       } else {
+               value = "1";
+       }
+-      zend_alter_ini_entry(name, strlen(name)+1, value, strlen(value), PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
++
++      if (!strcasecmp(name, "extension")) { /* load function module */
++              zval extension, zval;
++              ZVAL_STRING(&extension, value, 0);
++              php_dl(&extension, MODULE_PERSISTENT, &zval TSRMLS_CC);
++      } else {
++              zend_alter_ini_entry(name, strlen(name)+1, value, strlen(value), PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
++      }
+ }
This page took 1.081566 seconds and 4 git commands to generate.