]> git.pld-linux.org Git - packages/php.git/blobdiff - php-dextension.patch
This commit was manufactured by cvs2git to create branch 'RA-
[packages/php.git] / php-dextension.patch
diff --git a/php-dextension.patch b/php-dextension.patch
new file mode 100644 (file)
index 0000000..97ef3d3
--- /dev/null
@@ -0,0 +1,38 @@
+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-10 01:11:54.000000000 +0200
+@@ -397,7 +397,7 @@
+ }
+ /* }}} */
+-static void define_command_line_ini_entry(char *arg)
++static void define_command_line_ini_entry(char *arg TSRMLS_DC)
+ {
+       char *name, *value;
+@@ -409,7 +409,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);
++      }
+ }
+@@ -656,7 +663,7 @@
+                       switch (c) {
+                       case 'd': /* define ini entries on command line */
+-                              define_command_line_ini_entry(php_optarg);
++                              define_command_line_ini_entry(php_optarg TSRMLS_CC);
+                               break;
+                       case 'h': /* help & quit */
This page took 0.037151 seconds and 4 git commands to generate.