ID: 39969 Updated by: [EMAIL PROTECTED] Reported By: yahikootje at gmail dot com -Status: Open +Status: Assigned Bug Type: PHP options/info functions Operating System: Linux 2.6.17-gentoo-r8 PHP Version: 6CVS-2006-12-27 (CVS) -Assigned To: +Assigned To: dmitry
Previous Comments: ------------------------------------------------------------------------ [2006-12-30 20:50:00] yahikootje+bugs at gmail dot com While digging a bit deeper I found that zend_post_startup() is only called when ZTS is enabled. This function calls compilers_global_ctor() which in turn calls zend_set_default_compile_time_values(). In that function the values for CG(short_tags) and CG(asp_tags) are reset to the default values, cancelling the effect off setting the ini values. Removing the call to zend_set_default_compile_time_values() in compilers_global_ctor() seems to solve the problem, but I can not say for sure it won't cause any other problems. ------------------------------------------------------------------------ [2006-12-27 23:36:56] yahikootje at gmail dot com Description: ------------ When compiling PHP with --enable-maintainer-zts, setting the "short_open_tag" and "asp_tag" ini settings in php.ini have no effect. Compiling without --enable-maintainer-zts doesn't this problem. The values that are used for these ini settings (when compiled with --enable-maintainer-zts) are the default values that are set in zend_set_default_compile_time_values() I noticed this issue in PHP-5.2.1RC1, but it is also present in current HEAD (and probably also in older PHP versions). If more information is needed, just ask. Reproduce code: --------------- <?php echo "long open php tags" . PHP_EOL ?> <? echo "short open php tags" . PHP_EOL ?> <% echo "asp open php tag" . PHP_EOL %> with php.ini containing: short_open_tag = Off asp_tags = On Expected result: ---------------- long open php tags <? echo "short open php tags" . PHP_EOL ?> asp open php tag Actual result: -------------- long open php tags short open php tags <% echo "asp open php tag" . PHP_EOL %> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39969&edit=1