|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-02-03 11:56 UTC] wouter at widexs dot nl
Description: ------------ As soon as htscanner.so get's loaded, running `php -v` for example gives no output (on the shell, compiled as CGI) Observe : [user@s02 ~]# php -v [user@s02 ~]# Skipping loading ini files : [user@s02 ~]# php -v PHP 5.2.0 (cgi) (built: Jan 16 2007 20:17:38) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies [user@s02 ~]# Disabling htscanner.ini : mv htscanner.ini htscanner.ini-disabled [user@s02 ~]# php -v PHP 5.2.0 (cgi) (built: Jan 16 2007 20:17:38) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies [user@s02 ~]# I've only verified this on multiple FreeBSD 6.x machines, with PHP 5.2.0 htscanner.ini looks like this : [htscanner] extension="htscanner.so" config_file=".htaccess" default_docroot="/" default.ttl=300 I've tried various options in this file, none had impact. Reproduce code: --------------- php -v Expected result: ---------------- PHP 5.2.0 (cgi) (built: Jan 16 2007 20:17:38) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies Actual result: -------------- (nothing) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 11:00:01 2025 UTC |
It may be due to the lack of document root. Can you try to add: zend_error(E_WARNING, "No path translated, cannot determine the current script\n"); on line 335. You will end with something like: if (doc_root == NULL) { zend_error(E_WARNING, "No path translated, cannot determine the current script\n"); } I cannot test myself before tomorrow. Let me know what you get.Mmm, I couldn't get anything to output with zend_error, but if I add a php_printf("uhohw"), it exactly prints it at line 335 as you mentioned. So doc_root == NULL