|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-05-21 14:30 UTC] cirox at x-provid dot de
Description: ------------ I compiled PHP 5.2.2 (cgi-bin) and add the extension htscanner like described in readme with phpize from compiled PHP Version. I add the php.ini lines from extension to php.ini file and enable the extension. Each User has a different php.ini. I dont use the standard php.ini values like docroot = "/". So i change the value to "/var/www/" Reproduce code: --------------- change to htscanner dir /usr/local/bin/php5/bin/phpize ./configure \ --enable-htscanner \ --with-php-config=/usr/local/bin/php5/bin/php-config make && make install Expected result: ---------------- I see the extension htscanner enabled in infophp File. And i expect to see the changed values like docroot. Actual result: -------------- htscanner works for some PHP Functions but i can not see the changed settings like docroot in the php.ini file. It always shows the standard values like docroot = "/". PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 13:00:01 2025 UTC |
no its is not set. ok, but at the other site i changed TTL time like described before and nothing is chown in infophp File. the infophp File only shows the default values. But i build the extension on the right way i think, cause i can enable / disbale htscanner in this same php.ini file for each user. The only way to change the values of the extension is to compile it with other values. Then its is chown on infophp File Here is the code i had to change but its useless for me, cause i have only one php binary for all. /* {{{ PHP_INI */ PHP_INI_BEGIN() STD_PHP_INI_ENTRY("htscanner.config_file", ".htaccess", PHP_INI_SYSTEM, OnUpdateString, config_file, zend_htscanner_globals, htscanner_globals) STD_PHP_INI_ENTRY("htscanner.default_docroot", "/", PHP_INI_SYSTEM, OnUpdateString, default_docroot, zend_htscanner_globals, htscanner_globals) #if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 0) STD_PHP_INI_ENTRY("htscanner.default_ttl", "300", PHP_INI_SYSTEM, OnUpdateLong, default_ttl, zend_htscanner_globals, htscanner_globals) STD_PHP_INI_ENTRY("htscanner.stop_on_error", "0", PHP_INI_SYSTEM, OnUpdateLong, stop_on_error, zend_htscanner_globals, htscanner_globals) #else STD_PHP_INI_ENTRY("htscanner.default_ttl", "300", PHP_INI_SYSTEM, OnUpdateInt, default_ttl, zend_htscanner_globals, htscanner_globals) STD_PHP_INI_ENTRY("htscanner.stop_on_error", "0", PHP_INI_SYSTEM, OnUpdateInt, stop_on_error, zend_htscanner_globals, htscanner_globals) #endif PHP_INI_END() /* }}} */Hi, friends, htscanner is great utility, thanks for it. As I see, it's actually required to use full names of variables in php.ini i.e. htscanner.default_docroot just like it is mentioned in source: STD_PHP_INI_ENTRY("htscanner.default_docroot" ..... Prefacing section ([htscanner]) is not sufficient. See e.g. mysql variables in php.ini: mysql.default_port mysql.default_socket and simillary all other extensions. I recommend to fix distributed docs/htscanner.ini file and add prefixes, not to search web for this bug by every new user of htscanner like me :)