[PHP-DEV] Bug #15130 Updated: pathinfo reports extension as bar/baz for /foo/bar.bar/baz
ID: 15130 Updated by: torben Reported By: [EMAIL PROTECTED] Old Status: Bogus Status: Open Bug Type: Filesystem function related Operating System: FreeBSD PHP Version: 4.1.1 New Comment: Reopening. It does appear that pathinfo() reacts badly if: a) the filename portion does not have an extension, AND b) one of the directories has a dot in its name. This is because if the above conditions are met, the extension bit in string.c looks for the last occurrence of '.' in the pathname and takes anything after it as the file's extension. The following patch fixes the problem, if someone with enough karma would like to check it out and check it in (yuk yuk). Torben Index: string.c === RCS file: /repository/php4/ext/standard/string.c,v retrieving revision 1.261 diff -u -r1.261 string.c --- string.c5 Jan 2002 23:49:57 - 1.261 +++ string.c21 Jan 2002 07:48:41 - @@ -1201,11 +1201,18 @@ } if (argc 2 || opt == PHP_PATHINFO_EXTENSION) { - char *p; + char *p, *last_separator; int idx; p = strrchr(Z_STRVAL_PP(path), '.'); - if (p) { + +#ifdef PHP_WIN32 + last_separator = strrchr(Z_STRVAL_PP(path), '\\'); +#else + last_separator = strrchr(Z_STRVAL_PP(path), '/'); +#endif + + if (p p last_separator) { idx = p - Z_STRVAL_PP(path); add_assoc_stringl(tmp, extension, Z_STRVAL_PP(path) + idx + 1, len - idx - 1, 1); } Previous Comments: [2002-01-20 22:29:14] [EMAIL PROTECTED] how can you possibly suggest that bar/baz is the file extension of /foo/bar.bar/baz by that logic recombining the parts gets you /foo/bar.bar/baz.bar/baz as the filename! I've added a comment with a php replacement and some examples of the broken output at http://www.php.net/manual/en/function.pathinfo.php [2002-01-20 22:19:41] [EMAIL PROTECTED] That's the correct output of pathinfo (and print_r). See http://www.php.net/manual/en/function.pathinfo.php Status - Bogus [2002-01-20 20:27:56] [EMAIL PROTECTED] Hi, print_r(pathinfo(/foo/bar.bar/baz)); Array ( [dirname] = /foo/bar.bar [basename] = baz [extension] = bar/baz ) Edit this bug report at http://bugs.php.net/?id=15130edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15135: improving eval() with context
From: [EMAIL PROTECTED] Operating system: Solaris PHP version: 4.1.0 PHP Bug Type: Feature/Change Request Bug description: improving eval() with context Hello, this request is related to #15101. Sample: function a($like){ $id, $name array; $val = select ID, NAME from PEOPLE where NAME like\{$like}\ into $id, $name; $x = getContext(); sql_fetch_array($val, $x); show_result($id, $name); } function sql_fetch_array($query, $context){ ...there we separate into part of query, run i.e.mysql_fetch_array into $result, for each resulting row we run something like this: eval($id[.$index.] = .$result[ID], $context); } The thing logic is, that we can change variables ouside its regular scope. In this example we do it by previously saved context. I propose this type of solution, because I have it already in my previous development tool. Maybe exist any more possibilities, how to do that. This is useful to write many of general functions for (in my case) high quality SQL support. If any other question about this, write me. Best regards, Tomas Polak -- Edit bug report at: http://bugs.php.net/?id=15135edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15136: php stopping after having written 16192 chars
From: [EMAIL PROTECTED] Operating system: windows 2000 PHP version: 4.1.1 PHP Bug Type: Scripting Engine problem Bug description: php stopping after having written 16192 chars using IIS on win2000 sp2 with version of PHP from 4.0.x (don't remenber with which version it started) to 4.1.1 (same bug) after 16192 chars written PHP stops executing. Tried 2 methods : ?php $t = place over 16200 chars here ...; echo $t; ? or html place over 16200 chars here .../html in a php page same result both time : only 12000 chars (approx) were written, yes if i go above the limit less chars are written than the limit ... In the second method i tried putting the html code in a .html file (not used with php) and the whole page was shown. thanks for your help KEvin -- Edit bug report at: http://bugs.php.net/?id=15136edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14972 Updated: Setting 'sendmail_path' leads to PHP not find sendmail
ID: 14972 Updated by: mfischer Old Summary: Setting 'sendmail_path' leads to PHP not find sendmail Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Open Bug Type: PHP options/info functions Operating System: MacOS 10.1.2 (Darwin 5.2) PHP Version: 4.1.1 New Comment: A note to the submitter: since sendmail_path defaults to 'sendmail -t -i', leaving it out should be ok for you. I'm opening this, because the PHP.INI clearly says: ;for unix only, may supply arguments as well (default is 'sendmail -t -i') Either way, it is a bug (doc or something else) Previous Comments: [2002-01-20 18:33:55] [EMAIL PROTECTED] sendmail_path is only for setting the path to the sendmail executable. You can't set command line parameters for sendmail with it. To supply command line parameters, use the fifth parameter to the mail() function, documented at http://www.php.net/mail. [2002-01-10 11:55:05] [EMAIL PROTECTED] If 'sendmail_path' is set in the php.ini like this: sendmail_path = 'sendmail -t -i' I get the following error in the Apache error log: zsh: no such file or directory: /usr/sbin/sendmail -t -i If I run /usr/sbin/sendmail -t -i manually from the zsh it works but if I surround it by quotation marks I get the same error. Edit this bug report at http://bugs.php.net/?id=14972edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Fixes for pcntl - class support.
Well, after half a dozen bug reports that didnt actually work... - this one should, could somebody comment/commit etc. The patch includes a number of changes... - pcntl_zend_extension_active does not appear to be getting set when using modules this little magic trick to get the zval stored in the hash table for callbacks + MAKE_STD_ZVAL(handle_copy); +*handle_copy = **handle; +zval_copy_ctor(handle_copy); I deleted this as it was confusing me alot :) - obviously not essential to the patch old_pcntl_signal_handler(int signo) added a new function pcntl_doevents = works a bit like gtk::do_events(); basically calls any pending signal callbacks. - as the pcntl_zend_extension_statement_handler did not appear to get called when running from a module. best regards alan Index: pcntl.c === RCS file: /repository/php4/ext/pcntl/pcntl.c,v retrieving revision 1.18 diff -u -r1.18 pcntl.c --- pcntl.c4 Jan 2002 14:08:25 -1.18 +++ pcntl.c21 Jan 2002 08:36:05 - @@ -18,7 +18,7 @@ /* $Id: pcntl.c,v 1.18 2002/01/04 14:08:25 hholzgra Exp $ */ -#define PCNTL_DEBUG 0 +#define PCNTL_DEBUG 0 #if PCNTL_DEBUG #define DEBUG_OUT printf(DEBUG: );printf @@ -51,6 +51,7 @@ PHP_FE(pcntl_wtermsig, NULL) PHP_FE(pcntl_wstopsig, NULL) PHP_FE(pcntl_exec, NULL) +PHP_FE(pcntl_doevents, NULL) {NULL, NULL, NULL} }; @@ -208,7 +209,7 @@ PHP_FUNCTION(pcntl_fork) { pid_t id; - +pcntl_zend_extension_active=1; id=fork(); if (id == -1) { php_error(E_ERROR, Error %d in %s, errno, get_active_function_name(TSRMLS_C)); @@ -463,8 +464,9 @@ PHP_FUNCTION(pcntl_signal) { zval **signo, **handle; +zval *handle_copy; char *func_name; - + if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, signo, handle) == FAILURE) { WRONG_PARAM_COUNT; } @@ -474,7 +476,7 @@ /* Special long value case for SIG_DFL and SIG_IGN */ if (Z_TYPE_PP(handle)==IS_LONG) { if (Z_LVAL_PP(handle)!= (long) SIG_DFL Z_LVAL_PP(handle) != (long) SIG_IGN) { - php_error(E_WARNING, Invalid value for handle argument specifEied in %s, get_active_function_name(TSRMLS_C)); + php_error(E_WARNING, Invalid value for handle argument specified in %s, get_active_function_name(TSRMLS_C)); } if (php_signal(Z_LVAL_PP(signo), (Sigfunc *) Z_LVAL_PP(handle))==SIG_ERR) { php_error(E_WARNING, Error assigning singal in %s, get_active_function_name(TSRMLS_C)); @@ -483,22 +485,18 @@ RETURN_TRUE; } -if (Z_TYPE_PP(handle)!=IS_STRING) { -php_error(E_WARNING, Invalid type specified for handle argument in %s, get_active_function_name(TSRMLS_C)); -RETURN_FALSE; -} - -convert_to_string_ex(handle); /* Just in case */ -if (!zend_is_callable(*handle, 0, func_name)) { -php_error(E_WARNING, %s: %s is not a callable function name error, get_active_function_name(TSRMLS_C), func_name); + if (!zend_is_callable(*handle, 0, func_name)) { +php_error(E_WARNING, %s: Argument is not a callable function or method, get_active_function_name(TSRMLS_C), func_name); efree(func_name); RETURN_FALSE; } efree(func_name); - -/* Add the function name to our signal table */ -zend_hash_index_update(PCNTL_G(php_signal_table), Z_LVAL_PP(signo), Z_STRVAL_PP(handle), (Z_STRLEN_PP(handle) + 1) * sizeof(char), NULL); - +MAKE_STD_ZVAL(handle_copy); +*handle_copy = **handle; +zval_copy_ctor(handle_copy); + +zend_hash_index_update(PCNTL_G(php_signal_table), Z_LVAL_PP(signo), handle_copy , sizeof(zval *), NULL); + if (php_signal(Z_LVAL_PP(signo), pcntl_signal_handler)==SIG_ERR) { php_error(E_WARNING, Error assigning singal in %s, get_active_function_name(TSRMLS_C)); RETURN_FALSE; @@ -507,43 +505,14 @@ } /* }}} */ -/* Note Old */ -static void old_pcntl_signal_handler(int signo) -{ -char *func_name; -zval *param, *call_name, *retval; -TSRMLS_FETCH(); - -DEBUG_OUT(Caught signal: %d\n, signo); -if (zend_hash_index_find(PCNTL_G(php_signal_table), (long) signo, (void *) func_name)==FAILURE) { -DEBUG_OUT(Signl handler not fount); -return; -} -/* DEBUG_OUT(Signal handler found, Calling %s\n, func_name); */ -MAKE_STD_ZVAL(param); -MAKE_STD_ZVAL(call_name); -MAKE_STD_ZVAL(retval); -ZVAL_LONG(param, signo); - ZVAL_STRING(call_name, func_name, 1); - -/* Call php singal handler - Note that we do not report errors, and we ignore the return value */ -call_user_function(EG(function_table), NULL, call_name, retval, 1, param TSRMLS_CC); - - zval_dtor(call_name); -efree(call_name); -efree(param); -efree(retval); - -return; -} - + /* Our custom signal
Re: [PHP-DEV] Fixes for pcntl - class support. (patch attached)
Looks like mozilla buggered up the attachment. Alan Knowles wrote: Well, after half a dozen bug reports that didnt actually work... - this one should, could somebody comment/commit etc. The patch includes a number of changes... - pcntl_zend_extension_active does not appear to be getting set when using modules this little magic trick to get the zval stored in the hash table for callbacks + MAKE_STD_ZVAL(handle_copy); +*handle_copy = **handle; +zval_copy_ctor(handle_copy); I deleted this as it was confusing me alot :) - obviously not essential to the patch old_pcntl_signal_handler(int signo) added a new function pcntl_doevents = works a bit like gtk::do_events(); basically calls any pending signal callbacks. - as the pcntl_zend_extension_statement_handler did not appear to get called when running from a module. best regards alan Index: pcntl.c === RCS file: /repository/php4/ext/pcntl/pcntl.c,v retrieving revision 1.18 diff -u -r1.18 pcntl.c --- pcntl.c 4 Jan 2002 14:08:25 - 1.18 +++ pcntl.c 21 Jan 2002 08:36:05 - @@ -18,7 +18,7 @@ /* $Id: pcntl.c,v 1.18 2002/01/04 14:08:25 hholzgra Exp $ */ -#define PCNTL_DEBUG 0 +#define PCNTL_DEBUG 0 #if PCNTL_DEBUG #define DEBUG_OUT printf(DEBUG: );printf @@ -51,6 +51,7 @@ PHP_FE(pcntl_wtermsig, NULL) PHP_FE(pcntl_wstopsig, NULL) PHP_FE(pcntl_exec, NULL) +PHP_FE(pcntl_doevents, NULL) {NULL, NULL, NULL} }; @@ -208,7 +209,7 @@ PHP_FUNCTION(pcntl_fork) { pid_t id; - +pcntl_zend_extension_active=1; id=fork(); if (id == -1) { php_error(E_ERROR, Error %d in %s, errno, get_active_function_name(TSRMLS_C)); @@ -463,8 +464,9 @@ PHP_FUNCTION(pcntl_signal) { zval **signo, **handle; +zval *handle_copy; char *func_name; - + if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, signo, handle) == FAILURE) { WRONG_PARAM_COUNT; } @@ -474,7 +476,7 @@ /* Special long value case for SIG_DFL and SIG_IGN */ if (Z_TYPE_PP(handle)==IS_LONG) { if (Z_LVAL_PP(handle)!= (long) SIG_DFL Z_LVAL_PP(handle) != (long) SIG_IGN) { - php_error(E_WARNING, Invalid value for handle argument specifEied in %s, get_active_function_name(TSRMLS_C)); + php_error(E_WARNING, Invalid value for handle argument +specified in %s, get_active_function_name(TSRMLS_C)); } if (php_signal(Z_LVAL_PP(signo), (Sigfunc *) Z_LVAL_PP(handle))==SIG_ERR) { php_error(E_WARNING, Error assigning singal in %s, get_active_function_name(TSRMLS_C)); @@ -483,22 +485,18 @@ RETURN_TRUE; } -if (Z_TYPE_PP(handle)!=IS_STRING) { - php_error(E_WARNING, Invalid type specified for handle argument in %s, get_active_function_name(TSRMLS_C)); - RETURN_FALSE; - } - - convert_to_string_ex(handle); /* Just in case */ - if (!zend_is_callable(*handle, 0, func_name)) { - php_error(E_WARNING, %s: %s is not a callable function name error, get_active_function_name(TSRMLS_C), func_name); + if (!zend_is_callable(*handle, 0, func_name)) { + php_error(E_WARNING, %s: Argument is not a callable function or +method, get_active_function_name(TSRMLS_C), func_name); efree(func_name); RETURN_FALSE; } efree(func_name); - -/* Add the function name to our signal table */ - zend_hash_index_update(PCNTL_G(php_signal_table), Z_LVAL_PP(signo), Z_STRVAL_PP(handle), (Z_STRLEN_PP(handle) + 1) * sizeof(char), NULL); - +MAKE_STD_ZVAL(handle_copy); +*handle_copy = **handle; +zval_copy_ctor(handle_copy); + +zend_hash_index_update(PCNTL_G(php_signal_table), Z_LVAL_PP(signo), +handle_copy , sizeof(zval *), NULL); + if (php_signal(Z_LVAL_PP(signo), pcntl_signal_handler)==SIG_ERR) { php_error(E_WARNING, Error assigning singal in %s, get_active_function_name(TSRMLS_C)); RETURN_FALSE; @@ -507,43 +505,14 @@ } /* }}} */ -/* Note Old */ -static void old_pcntl_signal_handler(int signo) -{ - char *func_name; - zval *param, *call_name, *retval; - TSRMLS_FETCH(); - - DEBUG_OUT(Caught signal: %d\n, signo); - if (zend_hash_index_find(PCNTL_G(php_signal_table), (long) signo, (void *) func_name)==FAILURE) { - DEBUG_OUT(Signl handler not fount); - return; - } - /* DEBUG_OUT(Signal handler found, Calling %s\n, func_name); */ - MAKE_STD_ZVAL(param); - MAKE_STD_ZVAL(call_name); - MAKE_STD_ZVAL(retval); - ZVAL_LONG(param, signo); -
[PHP-DEV] Bug #15137: get_meta_tags()
From: [EMAIL PROTECTED] Operating system: WIndows 98 SE PHP version: 4.0.6 PHP Bug Type: Unknown/Other Function Bug description: get_meta_tags() Function get_meta_tags() returned bad value while in META tags content is a 1st value and name is second example: META content=abc, dbf, ghi name=keywords with this example get_meta_tags() return content as a name and name as a content. -- Edit bug report at: http://bugs.php.net/?id=15137edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15137 Updated: get_meta_tags()
ID: 15137 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Unknown/Other Function Operating System: WIndows 98 SE PHP Version: 4.0.6 New Comment: IMHO we should re-implement get_meta_tags() using expat? Previous Comments: [2002-01-21 04:43:46] [EMAIL PROTECTED] Function get_meta_tags() returned bad value while in META tags content is a 1st value and name is second example: META content=abc, dbf, ghi name=keywords with this example get_meta_tags() return content as a name and name as a content. Edit this bug report at http://bugs.php.net/?id=15137edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15138: php interprets any non-php extension when file has executable permissions
From: [EMAIL PROTECTED] Operating system: Linux Slackware 8.0.0 PHP version: 4.1.1 PHP Bug Type: Apache related Bug description: php interprets any non-php extension when file has executable permissions I've got php 4.1.1 compiled with apache 1.3.22. In same cases php interprets non php extensions (for example .aaa or something else) as php file if there is a php script inside. This happens when the file has +x permissions for the owner of this file. This is listing of /www/htdocs/users/a/ catalog: -rwxr--r--1 agnieszkak users 17 Jan 18 16:08 index.aaa And a content of index.aaa9I wrote only) ? phpinfo(); ? When I want to see this file in my browser (host/users/a/index.aaa)I should get the content of the index.aaa but I don't. The script is interpreted by php. In httpd.conf I have only: Directory /www/htdocs/users Options Indexes FollowSymLinks ExecCGI AllowOverride None /DIrectory And: DefaultType text/html. I think that it is something wrong with php engine but I'm not sure. -- Edit bug report at: http://bugs.php.net/?id=15138edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15139: php interprets any non-php extension when file has executable permissions
From: [EMAIL PROTECTED] Operating system: Linux Slackware 8.0.0 PHP version: 4.1.1 PHP Bug Type: Apache related Bug description: php interprets any non-php extension when file has executable permissions I've got php 4.1.1 compiled with apache 1.3.22. In same cases php interprets non php extensions (for example .aaa or something else) as php file if there is a php script inside. This happens when the file has +x permissions for the owner of this file. This is listing of /www/htdocs/users/a/ catalog: -rwxr--r--1 agnieszkak users 17 Jan 18 16:08 index.aaa And a content of index.aaa9I wrote only) ? phpinfo(); ? When I want to see this file in my browser (host/users/a/index.aaa)I should get the content of the index.aaa but I don't. The script is interpreted by php. In httpd.conf I have only: Directory /www/htdocs/users Options Indexes FollowSymLinks ExecCGI AllowOverride None /DIrectory And: DefaultType text/html. I think that it is something wrong with php engine but I'm not sure. -- Edit bug report at: http://bugs.php.net/?id=15139edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15137 Updated: get_meta_tags()
ID: 15137 Updated by: elixer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Unknown/Other Function Operating System: WIndows 98 SE PHP Version: 4.0.6 New Comment: This was fixed just after 4.0.6 was branched. See revision 1.164 of ext/standard/string.c. Works in 4.1.1. Previous Comments: [2002-01-21 04:55:12] [EMAIL PROTECTED] IMHO we should re-implement get_meta_tags() using expat? [2002-01-21 04:43:46] [EMAIL PROTECTED] Function get_meta_tags() returned bad value while in META tags content is a 1st value and name is second example: META content=abc, dbf, ghi name=keywords with this example get_meta_tags() return content as a name and name as a content. Edit this bug report at http://bugs.php.net/?id=15137edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14897 Updated: unable to fork - cause solution (well, at least for me)
ID: 14897 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Program Execution Operating System: Windows 2000 PHP Version: 4.1.1 New Comment: Is there a way to enable access to cmd.exe so that it is only available to php.exe? Or a way of stopping php prepending cmd.exe /c in front of any calls to exec? thanks. Previous Comments: [2002-01-17 19:40:26] [EMAIL PROTECTED] this is a suggestion to the developers to do, because the only way for a script writer to solve this is to enabled access to cmd.exe which many would perfer to not have to do. [2002-01-17 05:56:27] [EMAIL PROTECTED] clarification: is this a suggestion of a way to fix the problem myself (so I can call programs), or a suggestion to the developers? [2002-01-06 22:00:12] [EMAIL PROTECTED] in 4.0.6, popen() would just call CreateProcess() with the specified command. this was ok. in 4.1.0 popen() now prepends cmd.exe /c (or command.com /c on win9x). the problem with this, is that many web admins will disable access for the web apps to access cmd.exe (eg, MS's IISLockDown does this), and hence even though the web app may have access to c:\utils\myapp.exe, a command like exec(c:\utils\myapp.exe) now fails on 4.1.0 but works on on 4.0.6. also, the hardcoding of cmd.exe should not be done. it should get it from the enviroment. summary: have commands that prepend the result of an enviroment lookup on %comspec% /c to the front of a command AND have commands that dont, so that I can call exec(c:\utils\myapp.exe); without having to enable access to cmd.exe OR any interpretation of these issues, that allow for a sensible amount of flexibilty. Louis Solomon www.SteelBytes.com Edit this bug report at http://bugs.php.net/?id=14897edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15138 Updated: php interprets any non-php extension when file has executable permissions
ID: 15138 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Apache related Operating System: Linux Slackware 8.0.0 PHP Version: 4.1.1 New Comment: This is a configuration problem. Ask support questions on the appropriate mailinglist. Previous Comments: [2002-01-21 06:07:38] [EMAIL PROTECTED] I've got php 4.1.1 compiled with apache 1.3.22. In same cases php interprets non php extensions (for example .aaa or something else) as php file if there is a php script inside. This happens when the file has +x permissions for the owner of this file. This is listing of /www/htdocs/users/a/ catalog: -rwxr--r--1 agnieszkak users 17 Jan 18 16:08 index.aaa And a content of index.aaa9I wrote only) ? phpinfo(); ? When I want to see this file in my browser (host/users/a/index.aaa)I should get the content of the index.aaa but I don't. The script is interpreted by php. In httpd.conf I have only: Directory /www/htdocs/users Options Indexes FollowSymLinks ExecCGI AllowOverride None /DIrectory And: DefaultType text/html. I think that it is something wrong with php engine but I'm not sure. Edit this bug report at http://bugs.php.net/?id=15138edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15139 Updated: php interprets any non-php extension when file has executable permissions
ID: 15139 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Apache related Operating System: Linux Slackware 8.0.0 PHP Version: 4.1.1 New Comment: Please do NOT submit bugs twice. Previous Comments: [2002-01-21 06:14:44] [EMAIL PROTECTED] I've got php 4.1.1 compiled with apache 1.3.22. In same cases php interprets non php extensions (for example .aaa or something else) as php file if there is a php script inside. This happens when the file has +x permissions for the owner of this file. This is listing of /www/htdocs/users/a/ catalog: -rwxr--r--1 agnieszkak users 17 Jan 18 16:08 index.aaa And a content of index.aaa9I wrote only) ? phpinfo(); ? When I want to see this file in my browser (host/users/a/index.aaa)I should get the content of the index.aaa but I don't. The script is interpreted by php. In httpd.conf I have only: Directory /www/htdocs/users Options Indexes FollowSymLinks ExecCGI AllowOverride None /DIrectory And: DefaultType text/html. I think that it is something wrong with php engine but I'm not sure. Edit this bug report at http://bugs.php.net/?id=15139edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] apache php Authentication security problem
Hi, I am using Basic authentication on my school site. It works as I want, but when I use php, I can read the password form variable $php_auth_pw / $HTTP_SERVER_VARS[PHP_AUTH_PW]. I think it have a security problem when the student can read another one password using php. But I have no ideal how to protect it. Is it the setting of apache or php? why should this be a security problem? you can only read out your OWN user/password and not from others. And I think YOU already know YOUR own password, therefore it's not a secret. besides, you have to be able to run a php script within a protected area. Kind Regards, Daniel Lorch -- @echo Hello, World; -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15140: mcrypt fails for twofish but work properly for all other type of encryption
From: [EMAIL PROTECTED] Operating system: Redhat 7.2 PHP version: 4.1.1 PHP Bug Type: mcrypt related Bug description: mcrypt fails for twofish but work properly for all other type of encryption // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 // 2.4.19 is Broken as it does not pass make check to test // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES and BLOWFISH. // // I do not have a gdb trace sorry :( // // Strange. Testing Script is following ?php // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 (Broken does not pass make check) // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES. // // Strange. // [EMAIL PROTECTED] REMOVE NOSPAM function T ( $user_id, $Encryption ) { $session_serial = $user_id. '-'.time(). '-'.$GLOBALS['REMOTE_ADDR']. '-'.$GLOBALS['HTTP_USER_AGENT']; echo pCypher: . $Encryption; $sessionKey=SessionKeyYouChoose; // Obviously not the one we use:) // Fails with TWOFISH but Works with TripleDES // Code Fail to produce Code. //$td = mcrypt_module_open(MCRYPT_TWOFISH, , MCRYPT_MODE_ECB, ); //$td = mcrypt_module_open(MCRYPT_TripleDES, , MCRYPT_MODE_ECB, ); $td = mcrypt_module_open($Encryption, , MCRYPT_MODE_ECB, ); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size ($td), MCRYPT_RAND); mcrypt_generic_init($td, $sessionKey, $iv); $encrypted_session_serial = mcrypt_generic($td, $session_serial); mcrypt_generic_end($td); $session_serial_hash = md5($encrypted_session_serial.$sessionKey); $session_serial_cookie = base64_encode($encrypted_session_serial).'-'.$session_serial_h ash; return $session_serial_cookie; } // If you don't see the time number increasing it is because Apache child seg fault // Check your apache/logs/error_log that is the problem. echo pIf you don't see the time number increasing it is because Apache child seg fault. br ; echo Check your apache/logs/error_log (tail -f error_log) and you will see the problem every t ime you reload.; echo pTime is: . time(); $user_id=120804; //$test = T($user_id, MCRYPT_TWOFISH); $test = T($user_id, MCRYPT_TripleDES); echo pCookie is : $test; echo pThe End; ? -- Edit bug report at: http://bugs.php.net/?id=15140edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15140 Updated: mcrypt fails for twofish but work properly for all other type of encryption
ID: 15140 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: mcrypt related Operating System: Redhat 7.2 PHP Version: 4.1.1 Edit this bug report at http://bugs.php.net/?id=15140edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15140 Updated: mcrypt fails for twofish but work properly for all other type of encryption
ID: 15140 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: mcrypt related Operating System: Redhat 7.2 PHP Version: 4.1.1 New Comment: The Script as it is will work using Triple DES Uncomment the TWOFISH Line At The Bottom of the code and you will get the Segmentation Fault. Previous Comments: [2002-01-21 07:03:51] [EMAIL PROTECTED] // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 // 2.4.19 is Broken as it does not pass make check to test // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES and BLOWFISH. // // I do not have a gdb trace sorry :( // // Strange. Testing Script is following ?php // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 (Broken does not pass make check) // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES. // // Strange. // [EMAIL PROTECTED] REMOVE NOSPAM function T ( $user_id, $Encryption ) { $session_serial = $user_id. '-'.time(). '-'.$GLOBALS['REMOTE_ADDR']. '-'.$GLOBALS['HTTP_USER_AGENT']; echo pCypher: . $Encryption; $sessionKey=SessionKeyYouChoose; // Obviously not the one we use:) // Fails with TWOFISH but Works with TripleDES // Code Fail to produce Code. //$td = mcrypt_module_open(MCRYPT_TWOFISH, , MCRYPT_MODE_ECB, ); //$td = mcrypt_module_open(MCRYPT_TripleDES, , MCRYPT_MODE_ECB, ); $td = mcrypt_module_open($Encryption, , MCRYPT_MODE_ECB, ); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size ($td), MCRYPT_RAND); mcrypt_generic_init($td, $sessionKey, $iv); $encrypted_session_serial = mcrypt_generic($td, $session_serial); mcrypt_generic_end($td); $session_serial_hash = md5($encrypted_session_serial.$sessionKey); $session_serial_cookie = base64_encode($encrypted_session_serial).'-'.$session_serial_h ash; return $session_serial_cookie; } // If you don't see the time number increasing it is because Apache child seg fault // Check your apache/logs/error_log that is the problem. echo pIf you don't see the time number increasing it is because Apache child seg fault. br ; echo Check your apache/logs/error_log (tail -f error_log) and you will see the problem every t ime you reload.; echo pTime is: . time(); $user_id=120804; //$test = T($user_id, MCRYPT_TWOFISH); $test = T($user_id, MCRYPT_TripleDES); echo pCookie is : $test; echo pThe End; ? Edit this bug report at http://bugs.php.net/?id=15140edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15140 Updated: mcrypt fails for twofish but work properly for all other type of encryption
ID: 15140 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Assigned Bug Type: mcrypt related Operating System: Redhat 7.2 PHP Version: 4.1.1 Old Assigned To: Assigned To: derick New Comment: I'll check this out, please file a bug report for mcrypt too (about not passing make test). Derick Previous Comments: [2002-01-21 07:06:15] [EMAIL PROTECTED] The Script as it is will work using Triple DES Uncomment the TWOFISH Line At The Bottom of the code and you will get the Segmentation Fault. [2002-01-21 07:03:51] [EMAIL PROTECTED] // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 // 2.4.19 is Broken as it does not pass make check to test // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES and BLOWFISH. // // I do not have a gdb trace sorry :( // // Strange. Testing Script is following ?php // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 (Broken does not pass make check) // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES. // // Strange. // [EMAIL PROTECTED] REMOVE NOSPAM function T ( $user_id, $Encryption ) { $session_serial = $user_id. '-'.time(). '-'.$GLOBALS['REMOTE_ADDR']. '-'.$GLOBALS['HTTP_USER_AGENT']; echo pCypher: . $Encryption; $sessionKey=SessionKeyYouChoose; // Obviously not the one we use:) // Fails with TWOFISH but Works with TripleDES // Code Fail to produce Code. //$td = mcrypt_module_open(MCRYPT_TWOFISH, , MCRYPT_MODE_ECB, ); //$td = mcrypt_module_open(MCRYPT_TripleDES, , MCRYPT_MODE_ECB, ); $td = mcrypt_module_open($Encryption, , MCRYPT_MODE_ECB, ); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size ($td), MCRYPT_RAND); mcrypt_generic_init($td, $sessionKey, $iv); $encrypted_session_serial = mcrypt_generic($td, $session_serial); mcrypt_generic_end($td); $session_serial_hash = md5($encrypted_session_serial.$sessionKey); $session_serial_cookie = base64_encode($encrypted_session_serial).'-'.$session_serial_h ash; return $session_serial_cookie; } // If you don't see the time number increasing it is because Apache child seg fault // Check your apache/logs/error_log that is the problem. echo pIf you don't see the time number increasing it is because Apache child seg fault. br ; echo Check your apache/logs/error_log (tail -f error_log) and you will see the problem every t ime you reload.; echo pTime is: . time(); $user_id=120804; //$test = T($user_id, MCRYPT_TWOFISH); $test = T($user_id, MCRYPT_TripleDES); echo pCookie is : $test; echo pThe End; ? Edit this bug report at http://bugs.php.net/?id=15140edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14897 Updated: unable to fork - cause solution (well, at least for me)
ID: 14897 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Program Execution Operating System: Windows 2000 PHP Version: 4.1.1 New Comment: re enable access to cmd.exe for php: if you are using IIS, then PHP will be run using the IWAM_machinename account. so you would have to set the right for cmd.exe to include this account. if you are using a different web server, then I have no idea what account would need access to cmd.exe re stopping php from prepending cmd /c : not that I know of, and hence the bug report that I posted requesting the developers changing it. Previous Comments: [2002-01-21 06:32:42] [EMAIL PROTECTED] Is there a way to enable access to cmd.exe so that it is only available to php.exe? Or a way of stopping php prepending cmd.exe /c in front of any calls to exec? thanks. [2002-01-17 19:40:26] [EMAIL PROTECTED] this is a suggestion to the developers to do, because the only way for a script writer to solve this is to enabled access to cmd.exe which many would perfer to not have to do. [2002-01-17 05:56:27] [EMAIL PROTECTED] clarification: is this a suggestion of a way to fix the problem myself (so I can call programs), or a suggestion to the developers? [2002-01-06 22:00:12] [EMAIL PROTECTED] in 4.0.6, popen() would just call CreateProcess() with the specified command. this was ok. in 4.1.0 popen() now prepends cmd.exe /c (or command.com /c on win9x). the problem with this, is that many web admins will disable access for the web apps to access cmd.exe (eg, MS's IISLockDown does this), and hence even though the web app may have access to c:\utils\myapp.exe, a command like exec(c:\utils\myapp.exe) now fails on 4.1.0 but works on on 4.0.6. also, the hardcoding of cmd.exe should not be done. it should get it from the enviroment. summary: have commands that prepend the result of an enviroment lookup on %comspec% /c to the front of a command AND have commands that dont, so that I can call exec(c:\utils\myapp.exe); without having to enable access to cmd.exe OR any interpretation of these issues, that allow for a sensible amount of flexibilty. Louis Solomon www.SteelBytes.com Edit this bug report at http://bugs.php.net/?id=14897edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14143 Updated: Apache2 PATH_INFO var (was:Segmentation fun)
ID: 14143 User updated by: [EMAIL PROTECTED] Old Summary: Segmentation fun Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Apache2 related Old Operating System: SuSE7.1 Operating System: Mandrake8.1 Old PHP Version: 4.0CVS-2001-11-20 PHP Version: php4-200201202100 New Comment: After some hassle with compilation I tried again w/ a recent snapshot.Path info still doesn't get set :(. Previous Comments: [2002-01-18 02:04:14] [EMAIL PROTECTED] Teo: Can you download a CVS snapshot, and see if it works? http://snaps.php.net [2002-01-17 13:44:09] [EMAIL PROTECTED] to solve the problem related to cgi var setting (PATH_INFO and so on) you need the latest cvs, the one in 4.1.1 has bugs (at least when used with apache-2.0.28). Roberto. [2002-01-17 13:27:12] [EMAIL PROTECTED] Tested again on Mandrake8.1 / php-4.1.1 / Apache-2.0.28-beta. for a page like i.php/something the PATH_INFO still doesn't get set, but least it doesn't segfault anymore. PHP config line: --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-dom --disable-posix --disable-pic --with-zlib --enable-wddx --enable-debug [2002-01-17 06:01:00] [EMAIL PROTECTED] Does the same happen on 4.1.1 or current CVS? [2001-11-20 06:49:34] [EMAIL PROTECTED] related to #12691 Configuration: same as in #12691 except Apache is using prefork mpm. The request: GET /i.php/a Backtrace and request info are: Program received signal SIGSEGV, Segmentation fault. 0x4004bb1e in apr_palloc (a=0x813e4cc, reqsize=10) at apr_pools.c:1214 1214first_avail = blok-h.first_avail; (gdb) bt #0 0x4004bb1e in apr_palloc (a=0x813e4cc, reqsize=10) at apr_pools.c:1214 #1 0x80910d8 in add_any_filter (name=0x80aac34 BYTERANGE, ctx=0x0, r=0x813e51c, c=0x813a5cc, reg_filter_set=0x80ca19c, r_filters=0x813e688, c_filters=0x813a610) at util_filter.c:151 #2 0x809131f in ap_add_output_filter (name=0x80aac34 BYTERANGE, ctx=0x0, r=0x813e51c, c=0x813a5cc) at util_filter.c:201 #3 0x8069f67 in ap_http_insert_filter (r=0x813e51c) at http_core.c:310 #4 0x809ca63 in ap_run_insert_filter (r=0x813e51c) at request.c:120 #5 0x809d23d in ap_process_request_internal (r=0x813e51c) at request.c:279 #6 0x806f779 in ap_process_request (r=0x813e51c) at http_request.c:284 #7 0x8069e96 in ap_process_http_connection (c=0x813a5cc) at http_core.c:289 #8 0x808f2f7 in ap_run_process_connection (c=0x813a5cc) at connection.c:82 #9 0x808f58d in ap_process_connection (c=0x813a5cc) at connection.c:219 #10 0x80804bc in child_main (child_num_arg=0) at prefork.c:803 #11 0x80805b3 in make_child (s=0x80cae44, slot=0) at prefork.c:839 #12 0x8080725 in startup_children (number_to_start=1) at prefork.c:913 #13 0x8080c45 in ap_mpm_run (_pconf=0x80c9cec, plog=0x80fde8c, s=0x80cae44) at prefork.c:1129 #14 0x8087ce6 in main (argc=2, argv=0xb674) at main.c:432 (gdb) f 3 #3 0x8069f67 in ap_http_insert_filter (r=0x813e51c) at http_core.c:310 310 ap_add_output_filter(BYTERANGE, NULL, r, r-connection); (gdb) p *r $8 = {pool = 0x813e4ec, connection = 0x813a5cc, server = 0x80cae44, next = 0x0, prev = 0x0, main = 0x0, the_request = 0x813ecac GET /i.php/a HTTP/1.1, assbackwards = 0, proxyreq = 0, header_only = 0, protocol = 0x813ecfc HTTP/1.1, proto_num = 1001, hostname = 0x813ef6c teo, request_time = 1006255730034262, status_line = 0x0, status = 200, method = 0x813ecc4 GET, method_number = 0, allowed = 0, allowed_xmethods = 0x0, allowed_methods = 0x813e694, sent_bodyct = 0, bytes_sent = 0, mtime = 0, chunked = 0, boundary = 0x0, range = 0x0, clength = 0, remaining = 0, read_length = 0, read_body = 0, read_chunked = 0, expecting_100 = 0, headers_in = 0x813e6c4, headers_out = 0x813ea14, err_headers_out = 0x813ea8c, subprocess_env = 0x813e86c, notes = 0x813eacc, content_type = 0x813f604 application/x-httpd-php, handler = 0x0, content_encoding = 0x0, content_languages = 0x0, vlist_validator = 0x0, user = 0x0, ap_auth_type = 0x0, no_cache = 0, no_local_copy = 0, unparsed_uri = 0x813ecdc /i.php/a, uri = 0x813ecec /i.php/a, filename = 0x813f1d4 /usr/local/apache2/htdocs/i.php, canonical_filename = 0x813f0e4 /usr/local/apache2/htdocs/i.php/a, path_info = 0x813f133 /a, args = 0x0, finfo = {cntxt = 0x813e4ec, valid = 7598448, protection = 1604, filetype = APR_REG, user = 0, group = 0, inode = 314593, device = 773, nlink = 1, size = 17, csize = 24, atime = 100625296900, mtime = 99740411000, ctime = 99740411000, fname = 0x813f1d4
[PHP-DEV] Bug #15140 Updated: mcrypt fails for twofish but work properly for all other type of encryption
ID: 15140 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Assigned Bug Type: mcrypt related Operating System: Redhat 7.2 PHP Version: 4.1.1 Assigned To: derick New Comment: That was quick. I am also sending a Bug Report to mcrypt. Testing with GOST Fail in the Same Way. Works for the others listed below. //T($user_id, MCRYPT_TWOFISH); // Generates Seg Fault. //T($user_id, MCRYPT_GOST); // Crash The System like TWOFISH T($user_id, MCRYPT_TripleDES); // Good T($user_id, MCRYPT_BLOWFISH); // Good T($user_id, MCRYPT_DES);// Good T($user_id, MCRYPT_RC2); // Good Previous Comments: [2002-01-21 07:10:31] [EMAIL PROTECTED] I'll check this out, please file a bug report for mcrypt too (about not passing make test). Derick [2002-01-21 07:06:15] [EMAIL PROTECTED] The Script as it is will work using Triple DES Uncomment the TWOFISH Line At The Bottom of the code and you will get the Segmentation Fault. [2002-01-21 07:03:51] [EMAIL PROTECTED] // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 // 2.4.19 is Broken as it does not pass make check to test // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES and BLOWFISH. // // I do not have a gdb trace sorry :( // // Strange. Testing Script is following ?php // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 (Broken does not pass make check) // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES. // // Strange. // [EMAIL PROTECTED] REMOVE NOSPAM function T ( $user_id, $Encryption ) { $session_serial = $user_id. '-'.time(). '-'.$GLOBALS['REMOTE_ADDR']. '-'.$GLOBALS['HTTP_USER_AGENT']; echo pCypher: . $Encryption; $sessionKey=SessionKeyYouChoose; // Obviously not the one we use:) // Fails with TWOFISH but Works with TripleDES // Code Fail to produce Code. //$td = mcrypt_module_open(MCRYPT_TWOFISH, , MCRYPT_MODE_ECB, ); //$td = mcrypt_module_open(MCRYPT_TripleDES, , MCRYPT_MODE_ECB, ); $td = mcrypt_module_open($Encryption, , MCRYPT_MODE_ECB, ); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size ($td), MCRYPT_RAND); mcrypt_generic_init($td, $sessionKey, $iv); $encrypted_session_serial = mcrypt_generic($td, $session_serial); mcrypt_generic_end($td); $session_serial_hash = md5($encrypted_session_serial.$sessionKey); $session_serial_cookie = base64_encode($encrypted_session_serial).'-'.$session_serial_h ash; return $session_serial_cookie; } // If you don't see the time number increasing it is because Apache child seg fault // Check your apache/logs/error_log that is the problem. echo pIf you don't see the time number increasing it is because Apache child seg fault. br ; echo Check your apache/logs/error_log (tail -f error_log) and you will see the problem every t ime you reload.; echo pTime is: . time(); $user_id=120804; //$test = T($user_id, MCRYPT_TWOFISH); $test = T($user_id, MCRYPT_TripleDES); echo pCookie is : $test; echo pThe End; ? Edit this bug report at http://bugs.php.net/?id=15140edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP Apache2Filter crashes on Win32
Here's a backtrace: ap_save_brigade(ap_filter_t * 0x10d57628, apr_bucket_brigade * * 0x10d56004, apr_bucket_brigade * * 0x10a6fe74, apr_pool_t * 0x10d55b30) line 418 + 49 bytes php_output_filter(ap_filter_t * 0x10d57628, apr_bucket_brigade * 0x10d57790) line 350 + 32 bytes ap_pass_brigade(ap_filter_t * 0x10d57628, apr_bucket_brigade * 0x10d57790) line 390 + 16 bytes default_handler(request_rec * 0x10d55b68) line 2974 ap_run_handler(request_rec * 0x10d55b68) line 186 + 78 bytes ap_invoke_handler(request_rec * 0x10d55b68) line 359 + 9 bytes ap_process_request(request_rec * 0x10d55b68) line 291 + 9 bytes ap_process_http_connection(conn_rec * 0x10cdc140) line 280 + 9 bytes ap_run_process_connection(conn_rec * 0x10cdc140) line 84 + 78 bytes ap_process_connection(conn_rec * 0x10cdc140) line 232 worker_main(int 248) line 934 _threadstartex(void * 0x005f4688) line 212 + 13 bytes Latest CVS of both Apache2 and PHP 4. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] calling other php-functions from extensions..
Is call_user_function_ex() the right way if I want to call standard php functions from my extension, like htmlentities, and such? regards Robin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] calling other php-functions from extensions..
On 21 Jan 2002, Robin Ericsson wrote: Is call_user_function_ex() the right way if I want to call standard php functions from my extension, like htmlentities, and such? Yup. Derick -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] calling other php-functions from extensions..
On 21 Jan 2002, Robin Ericsson wrote: Is call_user_function_ex() the right way if I want to call standard php functions from my extension, like htmlentities, and such? And no :) For most of these functions there is a php_html_enties function, which do not need call_user_function of course. Most of the functions are made available. Derick -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15141: ODBC Error Messages
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.1.1 PHP Bug Type: ODBC related Bug description: ODBC Error Messages The PHP odbc driver doesn't manage errors correctly. Here is the complete explanation the Easysoft team gave me: From: Martin J. Evans [EMAIL PROTECTED] Tomas V.V.Cox wrote: Hi, I'm getting a little bit crazy trying to figure out why I always get the same unclear error: 01S02 Option Value Changed when I do *any* bad action. Ie: SELECT * FROM tableThatDoesNotExist SELECT e FROM phptest (when the e field doesn't exist) instead of the native code/mesage. Note, that all works fine if there is no human error. I'm using php 4.1.1, unixODBC 2.0.8 as client and OOB - Access as server. Thanks for any tip on how to solve this obscure problem. Tomas V.V.Cox 01S02 is the ODBC defined State and the text for that state is option value changed. PHP does not give you the context of the diagnostic because PHP ignores SQL_SUCCESS_WITH_INFO when attempting to change the cursor to a dynamic cursor. i.e. the following code in PHPs php_odbc.c causes it: if (rc == SQL_SUCCESS) { if ((result-fetch_abs = (scrollopts SQL_FD_FETCH_ABSOLUTE))) { /* Try to set CURSOR_TYPE to dynamic. Driver will replace this with other type if not possible. */ if (SQLSetStmtOption(result-stmt, SQL_CURSOR_TYPE, SQL_CURSOR_DYNAMIC) == SQL_ERROR) { odbc_sql_error(conn, result-stmt, SQLSetStmtOption); SQLFreeStmt(result-stmt, SQL_DROP); efree(result); RETURN_FALSE; } } } else { result-fetch_abs = 0; } As PHP uses SQLError() to get diags and PHP is an ODBC 2.0 app the ODBC spec says the diags stay in place until they are retrieved. So, what happens is the above code is executed for each new statement and it generates an informational diagnostic. Then, at some stage later when you get an error, PHP pulls the first diag which is the one above and not the one you want. In order to get the one you want you will have to: [1] Add a call to SQLError to the above code if SQLSetStmtOption returns SQL_SUCCESS_WITH_INFO - this will clear this diag of the ODBC driver (driver manager) stack. [2] Change PHP to allow odbc_error etc to be called repeatedly until all diagnostics are cunsumed and you get the one you want. Martin -- Martin J. Evans Easysoft Ltd, UK Development -- Edit bug report at: http://bugs.php.net/?id=15141edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15142: configure --help for --with-xslt-sablot lacks [=DIR]
From: [EMAIL PROTECTED] Operating system: any PHP version: 4.1.1 PHP Bug Type: Documentation problem Bug description: configure --help for --with-xslt-sablot lacks [=DIR] $ ./configure --help ... --with-xslt-sablot XSLT: Enable the sablotron backend ... after a quick look at configure, i noticed that it actually supports something like --with-xslt-sablot[=DIR] should probably be fixed in ext/xslt/config.m4: 11 PHP_ARG_WITH(xslt-sablot, whether to enable the XSLT Sablotron backend, 12 [ --with-xslt-sablot XSLT: Enable the sablotron backend]) pete. -- Edit bug report at: http://bugs.php.net/?id=15142edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14972 Updated: Setting 'sendmail_path' leads to PHP not find sendmail
ID: 14972 User updated by: [EMAIL PROTECTED] Old Summary: Setting 'sendmail_path' leads to PHP not find sendmail Reported By: [EMAIL PROTECTED] Status: Open Bug Type: PHP options/info functions Operating System: MacOS 10.1.2 (Darwin 5.2) PHP Version: 4.1.1 New Comment: since sendmail_path defaults to 'sendmail -t -i', leaving it out should be ok for you The above setting was just an example... In real: My intranet domain is named unusual so I want to set the envelope sender to something real by using the '-f' switch. Some smtp servers outside will return an error like domain unknown if the envelope sender domain is named incorrect. Previous Comments: [2002-01-21 03:35:46] [EMAIL PROTECTED] A note to the submitter: since sendmail_path defaults to 'sendmail -t -i', leaving it out should be ok for you. I'm opening this, because the PHP.INI clearly says: ;for unix only, may supply arguments as well (default is 'sendmail -t -i') Either way, it is a bug (doc or something else) [2002-01-20 18:33:55] [EMAIL PROTECTED] sendmail_path is only for setting the path to the sendmail executable. You can't set command line parameters for sendmail with it. To supply command line parameters, use the fifth parameter to the mail() function, documented at http://www.php.net/mail. [2002-01-10 11:55:05] [EMAIL PROTECTED] If 'sendmail_path' is set in the php.ini like this: sendmail_path = 'sendmail -t -i' I get the following error in the Apache error log: zsh: no such file or directory: /usr/sbin/sendmail -t -i If I run /usr/sbin/sendmail -t -i manually from the zsh it works but if I surround it by quotation marks I get the same error. Edit this bug report at http://bugs.php.net/?id=14972edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #9738 Updated: odbc_prepare does implicit SQLSetStmtOption (6,2) (sets to dynamic cursor)
ID: 9738 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Old Status: Analyzed Status: Closed Bug Type: ODBC related Operating System: HP-UX 10.20 / Linux PHP Version: 4.0.4pl1 New Comment: Bugs bugs bugs. I hate bugs. As soon as my CVS connection can be completely established this change will be commited to CVS. I still don't like this as the final solution, but it will get things working again. Previous Comments: [2002-01-16 13:12:36] [EMAIL PROTECTED] Hi Dan, I realize it's been a while on this one, but the issue is still causing problems for our users. I took the patched files you gave me last summer, but they were causing other problems I couldn't pinpoint (see emails in July or Aug of '01). The simplest way to get rid of this is by changing the following line in ext/odbc/php_odbc.c : if (SQLSetStmtOption(result-stmt, SQL_CURSOR_TYPE, SQL_CURSOR_DYNAMIC) to if (SQLSetStmtOption(result-stmt, SQL_CURSOR_TYPE, SQL_CURSOR_FORWARD_ONLY) Can you let me know if this would be possible in future releases? -Stephen [2001-07-06 10:38:54] [EMAIL PROTECTED] marking this as analyzed as this will hopefully go away too with the cursor fix, but won't disappear until than... [2001-06-10 16:05:30] [EMAIL PROTECTED] patch sent to you for verification. awaiting response :) http://www.deadmime.org/~dank/odbc.c.diff http://www.deadmime.org/~dank/odbc.h.diff if you didn't get them AGAIN in email... i think it's your mail server btw.. ;-) [2001-03-14 05:17:27] [EMAIL PROTECTED] Since some drivers don't like to perform certain queries with the default setting of the dynamic cursor, it might be nice to use something like odbc_setoption to manually change the type of Statement that the SQL will be prepared on. Problem is, currently when changing a statement option this way (argument of 2 for SQLSetStmtOption), you have to already have prepared a SQL statement: $result = odbc_prepare ($conn, $sql); odbc_setoption ($result, 2, 6, 3); odbc_execute ($result); This implicitly sets the statement option to set a dynamic cursor first, as the following ODBC trace shows: SQLAllocStmt hDbc=DBD0002 phstmt=40073138 SQLAllocStmt: returning SQL_SUCCESS SQLGetInfo hDbc=DBD0002 fInfoType=8 rgbInfoValue=7B03CD68 cbInfoValueMax=4 pcbInfoValue=0 SQLGetInfo: returning SQL_SUCCESS SQLSetStmtOption hStmt=DBD0003 fOption=6 vParam=0002 SQLSetStmtOption: returning SQL_SUCCESS_WITH_INFO SQLPrepare hStmt=DBD0003 szSqlStr=400746F8 cbSqlStr=-3 [SELECT target.description, target_data.layer1_key,target_data.layer2_key, target_data.layer3_key,target_data.layer4_key,target_data.layer5_key,target_data.layer6_key,target_data.company_code,target_data.location_code FROM dw_user_targets JOIN target ON target.target_code = dw_user_targets.target_code JOIN target_data ON target_data.target_code = dw_user_targets.target_code AND target_data.company_code=2 AND target_data.year=1998 AND target_data.period_no=7 WHERE dw_user_targets.dw_userid='mark'] SQLPrepare: returning SQL_ERROR Here's sample script that could reproduce the above. (Just substitute the above query and connect to a Progress 8.3B database with a similar schema to get even closer) ? putenv(ODBCINI=/usr/local/openlink/odbc.ini); $dsn=DSN=OracleLocal; // this is a valid DSN set up in the above odbc.ini file, tested in odbctest $user=scott; //default user for the demo Oracle database $password=tiger; //default password for demo Oracle database $sql=SELECT * FROM EMP; // directly execute mode if ($conn_id=odbc_connect($dsn,,)){ echo connected to DSN: $dsn; if($result=odbc_prepare($conn_id, $sql)) { odbc_execute($result) }else{ echo can not execute '$sql' ; } echo closing connection $conn_id; odbc_close($conn_id); }else{ echo cannot connect to DSN: $dsn ; } ? So, I propose making a new prepare function such as odbc_prepare_clean which doesn't do the implicit SetStmtOption(2,6) for the dynamic cursor. There shouldn't be a problem without the implicit SetStmtOption as the driver will default to what it supports anyway. E.g: $result = odbc_prepare_clean ($conn, $sql); odbc_setoption ($result, 2, 6, 3); odbc_execute ($result); Edit this bug report at http://bugs.php.net/?id=9738edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #8941 Updated: Openlink/ODBC cannot parse complex queries
ID: 8941 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Old Status: Analyzed Status: Closed Bug Type: ODBC related Operating System: HPUX10.20 PHP Version: 4.0.2 New Comment: Patch submitted sort of. Go CVS go! Connect and finish the commit! Previous Comments: [2001-07-06 10:37:42] [EMAIL PROTECTED] moving this to analyzed as hopefully once I work out this cursors patch it will be gone too! [2001-05-09 16:32:57] [EMAIL PROTECTED] this issue is specific to the interaction of the Progress database and the OpenLink Agent-based cursor library once scrollable cursors are not used this is not a problem [2001-04-02 17:01:59] [EMAIL PROTECTED] According to openlink, the issue is caused by the dynamic cursors now used in the php odbc functions. remarking out the #define HAVE_SQL_EXTENDED_FETCH 1 entry in the iodbc section provides a temporary relief from the problem. [2001-04-02 16:55:47] [EMAIL PROTECTED] have you tried updating to the latest OpenLink libraries? They have supposedly been better enhanced and unified with PHP. [2001-02-05 10:36:30] [EMAIL PROTECTED] problem still exists in PHP 404 sp1 The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=8941 Edit this bug report at http://bugs.php.net/?id=8941edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12389 Updated: bad performance of odbc_free_memory with ibm db2
ID: 12389 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: ODBC related Operating System: SuSe 7.1 PHP Version: 4.0.6 New Comment: patch submitted (took long enough, eh?). Please test latest cvs Previous Comments: [2001-07-26 02:02:53] [EMAIL PROTECTED] calling odbc_free_memory frequently causes a delay of 0.3 secs when using ibm db2 udb v7.1 (FP2) when i do not use odbc_free_memory between calls of odbc_exec, then submitting the query takes about 0.3 secs longer or returning from a function which called odbc_exec causes the delay. the time delay seems to be dependent on system memory, because with 384MB (and a single processor system) it is much less then with 1GB (and a dual processor system) the same application using a mysql-database (which is identically to the db2-database) does not suffer any performance problems (and takes some 1/100 secs for the same queries), so i think the problem may be in the unified odbc-functions. maybe this is related to the memory leak problem reported before, but i thought this should be solved in 4.0.6 i applied the limit-memory-patch and configured php-4.0.6 with: ./configure '--enable-safe-mode' '--enable-sysvsem' '--enable-sysvshm' '--enable-trans-sid' '--enable-magic-quotes' '--enable-memory-limit' '--with-ttf' '--with-imap' '--with-gd=yes' '--enable-yp' '--with-jpeg-dir=/usr' '--with-tiff-dir=/usr' '--with-config-file-path=/etc/httpd' '--with-apxs=/usr/sbin/apxs -ltiff -lnsl -lpdf -ljpeg' '--with-exec-dir=/usr/lib/apache/bin' --with-openssl --with-mcrypt '--with-ibm-db2=/home/db2inst1/sqllib' --disable-debug additionally i use a compiled version of the php-scripts, with the zend optimizer 1.1.0, but without compiling the scripts, the problem still persists. Edit this bug report at http://bugs.php.net/?id=12389edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12517 Updated: data base not found or damaged or in use
ID: 12517 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: ODBC related PHP Version: 4.0.6 New Comment: Two things: 1) please try the latest release of PHP. 2) if it persists, please try changing odbc_pconnect to odbc_connect and see if that fixes things. Previous Comments: [2001-08-01 12:02:44] [EMAIL PROTECTED] application developped with php4.0.3I1 worked well on NT4 server / IIS. Since I migrate it under Windows 2000, i get sometimes but not permanently an error when trying to access my database throug ODBC_PCONNECT. The database seems to be in used or damaged... But when I call the page anew, it works well. I try to upgrade to lthe latest PHP versions but I cannot load php_ldap extension. So I came back to the lastest version which runs ldap extension : 4.0.3 Can someone help me Edit this bug report at http://bugs.php.net/?id=12517edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12423 Updated: float point assignment error
ID: 12423 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: ODBC related Operating System: Windows 98 PHP Version: 4.0.6 New Comment: I'm unable to reproduce this using PostgreSQL/ODBC. Previous Comments: [2001-07-27 09:25:40] [EMAIL PROTECTED] It's easy to describe: echo odbc_result($ref, column); $a = (double) odbc_result($ref, column); echo/. $a; output: 55.25 / 55 If I'm assigned result from odbc_result to some variable, it's ALWAYS convertet from DOUBLE to INTEGER. Edit this bug report at http://bugs.php.net/?id=12423edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15143: Large loop doesn't work.
From: [EMAIL PROTECTED] Operating system: Win 2K PHP version: 4.1.1 PHP Bug Type: Apache related Bug description: Large loop doesn't work. This code doesn't seem to work with more than 20 people. I had it working great with 12 and then I added all 61 and the page just sits there and doesn't load. On IE or Netscape so it is the Apache or PHP. I am using the php.exe in apache not the module. I couldn't get the module to work correctly. I am using the latest stable versions of apache, mysql, and php. I also am using the mysql-nt-max. I don't think it is a problem with mysql cause I had a simular problem with a calendar program, yet when I didn't have tables (loop in a loop, just listed it straight out) it worked fine. When I eliminate the tables in this program I get up to about line 20 before it just hangs forever. I waited about 3 hours to see if it loaded and it never stops trying. html head titleFootball Playoff Picks Standings/title /head body bgcolor=#ff ?php $select=select a.nickname, round(sum(pow(2,a.round+1))),sum(1) from user_picks a, actual_wins b where a.round=b.round and a.division=b.division and a.winner=b.winner group by nickname order by 2 desc, 1 desc; $select_tot=select sum(1) from actual_wins; mysql_connect(localhost,root,Ushouldn'tBhere); $result = mysql_db_query(football,$select); $result_tot = mysql_db_query(football,$select_tot); $row_tot = mysql_fetch_array($result_tot); echo centertable border=1; echo trtd/tdthfont size=+2Place/font/ththfont size=+2Nickname/font/ththfont size=+2Points/font/ththfont size=+2Percentage/font/th/tr; $cnt = 1; while($row = mysql_fetch_array($result)) { $select=select winner from user_picks where round=3 and nickname='.$row[nickname].'; $result2 = mysql_db_query(football,$select); $row2 = mysql_fetch_array($result2); $nickname = urlencode($row[nickname]); echo trtdcenterimg src=\images/icons/.$row2[winner]..gif\/center/td; echo tdfont size=+1center.$cnt./center/font/td; echo tdfont size=+1centera href=\picks.php?nickname=.$nickname.\.$row[nickname]./a/center/font/td; echo td align=rightfont size=+1.$row[1]./font/td; $percentage=round($row[2]/$row_tot[0]*100); echo td align=rightfont size=+1.$percentage. %/font/td/tr; mysql_free_result($result2); $cnt++; } echo /table/center; mysql_free_result($result); ? /body /html -- Edit bug report at: http://bugs.php.net/?id=15143edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12166 Updated: SQL_CUR_DEFAULT constant not defined in php_odbc.dll
ID: 12166 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: ODBC related Operating System: Windows ME PHP Version: 4.0.6 New Comment: Should be fixed now. Previous Comments: [2001-08-21 05:30:35] [EMAIL PROTECTED] I meant the PHP Manual entry for odbc_connect(). [2001-08-20 12:03:35] [EMAIL PROTECTED] no feedback. [2001-07-17 08:42:13] [EMAIL PROTECTED] Which docs are you referring to? The ODBC docs for PHP? The ODBC v3 docs? The ODBC v3.5 docs? please note that my name is kalowsky, not kowalsky. [2001-07-16 22:32:16] [EMAIL PROTECTED] Hi Kowalsky If you check in microsoft's sqlext.h you will see that SQL_CUR_DEFAULT is set to SQL_CUR_USE_DRIVER so it is a constant. Also if you check the odbc_connect( ) docs, it says that SQL_CUR_DEFAULT is an acceptable parameter to pass into odbc_connect(). So it should be defined, or the documentation be corrected. Regards, John [2001-07-16 08:31:20] [EMAIL PROTECTED] this is supposed to be defined by your ODBC driver, not by PHP... after all, how is PHP to know what your DB's default cursor is? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=12166 Edit this bug report at http://bugs.php.net/?id=12166edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10181 Updated: odbc_result causes Unexpected network read error
ID: 10181 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Old Status: Analyzed Status: Closed Bug Type: ODBC related Operating System: Linux PHP Version: 4.0.4pl1 New Comment: This should be fixed in CVS now. Previous Comments: [2001-07-05 08:41:03] [EMAIL PROTECTED] This sounds like a problem with the PHP cursor implementation, not OpenLink. Stephan Schadt and I have been working on a solution for this, and should hopefully have one ready in the near future. I'd like to say 4.0.7, but I'm not entirely sure. [2001-07-04 07:01:50] [EMAIL PROTECTED] After some debugging of the ODBC module of php we have discoverd that the SQLExtendedFetch function of the OpenLink-progress driver is buggy. an query like: select * from table where field='text' will give us a valid result set, but an query like: select * from table where field='12345' will give us garbage: The driver does not set the 'result-values' arrays (but it returns SUCCESS and sets the correct number of collumns etc.) this results in variables which are pointing to some non-set, non-terminating strings ... The reason why python and the example programm work is that they don't use the SQLExtendedFetch function but SQLFetch. The fix for this problem is to undefine the HAVE_SQL_EXTENDED_FETCH definition in php_odbc.h at the iODBC definitions (if you use iODBC with openlink) or else at the OpenLink definitions. Maybe the php folks can give an extra option for openlink-progress ? so this can be solved more accurate? Thanks. [2001-06-21 11:20:57] [EMAIL PROTECTED] best way to debug is to build as a CGI and set a break in the function you think might be causing it. then run and step through the code. [2001-06-13 09:03:53] [EMAIL PROTECTED] Version 4.0.5 has exactly the same problem. Could this be a problem with type conversion? How should I debug? [2001-06-10 16:11:35] [EMAIL PROTECTED] you can look in the ext/odbc/php_odbc.c file for what might be causing this. the ext/odbc/php_odbc.h may also be of some help. also you might wish to try the 4.0.5 release of PHP, or possibly the 4.0.6RCs (4.0.5 was in RC for a LONG time). The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=10181 Edit this bug report at http://bugs.php.net/?id=10181edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15143 Updated: Large loop doesn't work.
ID: 15143 Updated by: sander Old Summary: Large loop doesn't work. Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Apache related Operating System: Win 2K PHP Version: 4.1.1 New Comment: Can you simplify the code and track down the problem to only a few lines of code? Previous Comments: [2002-01-21 09:37:25] [EMAIL PROTECTED] This code doesn't seem to work with more than 20 people. I had it working great with 12 and then I added all 61 and the page just sits there and doesn't load. On IE or Netscape so it is the Apache or PHP. I am using the php.exe in apache not the module. I couldn't get the module to work correctly. I am using the latest stable versions of apache, mysql, and php. I also am using the mysql-nt-max. I don't think it is a problem with mysql cause I had a simular problem with a calendar program, yet when I didn't have tables (loop in a loop, just listed it straight out) it worked fine. When I eliminate the tables in this program I get up to about line 20 before it just hangs forever. I waited about 3 hours to see if it loaded and it never stops trying. html head titleFootball Playoff Picks Standings/title /head body bgcolor=#ff ?php $select=select a.nickname, round(sum(pow(2,a.round+1))),sum(1) from user_picks a, actual_wins b where a.round=b.round and a.division=b.division and a.winner=b.winner group by nickname order by 2 desc, 1 desc; $select_tot=select sum(1) from actual_wins; mysql_connect(localhost,root,Ushouldn'tBhere); $result = mysql_db_query(football,$select); $result_tot = mysql_db_query(football,$select_tot); $row_tot = mysql_fetch_array($result_tot); echo centertable border=1; echo trtd/tdthfont size=+2Place/font/ththfont size=+2Nickname/font/ththfont size=+2Points/font/ththfont size=+2Percentage/font/th/tr; $cnt = 1; while($row = mysql_fetch_array($result)) { $select=select winner from user_picks where round=3 and nickname='.$row[nickname].'; $result2 = mysql_db_query(football,$select); $row2 = mysql_fetch_array($result2); $nickname = urlencode($row[nickname]); echo trtdcenterimg src=\images/icons/.$row2[winner]..gif\/center/td; echo tdfont size=+1center.$cnt./center/font/td; echo tdfont size=+1centera href=\picks.php?nickname=.$nickname.\.$row[nickname]./a/center/font/td; echo td align=rightfont size=+1.$row[1]./font/td; $percentage=round($row[2]/$row_tot[0]*100); echo td align=rightfont size=+1.$percentage. %/font/td/tr; mysql_free_result($result2); $cnt++; } echo /table/center; mysql_free_result($result); ? /body /html Edit this bug report at http://bugs.php.net/?id=15143edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15140 Updated: mcrypt fails for twofish but work properly for all other type of encryption
ID: 15140 Updated by: sander Reported By: [EMAIL PROTECTED] Status: Assigned Bug Type: mcrypt related Operating System: Redhat 7.2 PHP Version: 4.1.1 Assigned To: derick New Comment: To be completely clear, Derick asked to file a bugreport in the PHP-bugs-system about mcrypt not passing some PHP-tests, not to send the mcrypt-folks a bugreport. Previous Comments: [2002-01-21 07:22:12] [EMAIL PROTECTED] That was quick. I am also sending a Bug Report to mcrypt. Testing with GOST Fail in the Same Way. Works for the others listed below. //T($user_id, MCRYPT_TWOFISH); // Generates Seg Fault. //T($user_id, MCRYPT_GOST); // Crash The System like TWOFISH T($user_id, MCRYPT_TripleDES); // Good T($user_id, MCRYPT_BLOWFISH); // Good T($user_id, MCRYPT_DES);// Good T($user_id, MCRYPT_RC2); // Good [2002-01-21 07:10:31] [EMAIL PROTECTED] I'll check this out, please file a bug report for mcrypt too (about not passing make test). Derick [2002-01-21 07:06:15] [EMAIL PROTECTED] The Script as it is will work using Triple DES Uncomment the TWOFISH Line At The Bottom of the code and you will get the Segmentation Fault. [2002-01-21 07:03:51] [EMAIL PROTECTED] // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 // 2.4.19 is Broken as it does not pass make check to test // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES and BLOWFISH. // // I do not have a gdb trace sorry :( // // Strange. Testing Script is following ?php // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 (Broken does not pass make check) // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES. // // Strange. // [EMAIL PROTECTED] REMOVE NOSPAM function T ( $user_id, $Encryption ) { $session_serial = $user_id. '-'.time(). '-'.$GLOBALS['REMOTE_ADDR']. '-'.$GLOBALS['HTTP_USER_AGENT']; echo pCypher: . $Encryption; $sessionKey=SessionKeyYouChoose; // Obviously not the one we use:) // Fails with TWOFISH but Works with TripleDES // Code Fail to produce Code. //$td = mcrypt_module_open(MCRYPT_TWOFISH, , MCRYPT_MODE_ECB, ); //$td = mcrypt_module_open(MCRYPT_TripleDES, , MCRYPT_MODE_ECB, ); $td = mcrypt_module_open($Encryption, , MCRYPT_MODE_ECB, ); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size ($td), MCRYPT_RAND); mcrypt_generic_init($td, $sessionKey, $iv); $encrypted_session_serial = mcrypt_generic($td, $session_serial); mcrypt_generic_end($td); $session_serial_hash = md5($encrypted_session_serial.$sessionKey); $session_serial_cookie = base64_encode($encrypted_session_serial).'-'.$session_serial_h ash; return $session_serial_cookie; } // If you don't see the time number increasing it is because Apache child seg fault // Check your apache/logs/error_log that is the problem. echo pIf you don't see the time number increasing it is because Apache child seg fault. br ; echo Check your apache/logs/error_log (tail -f error_log) and you will see the problem every t ime you reload.; echo pTime is: . time(); $user_id=120804; //$test = T($user_id, MCRYPT_TWOFISH); $test = T($user_id, MCRYPT_TripleDES); echo pCookie is : $test; echo pThe End; ? Edit this bug report at http://bugs.php.net/?id=15140edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15145: xmlSubstituteEntitiesDefault(1) to domxml_xslt_process
From: [EMAIL PROTECTED] Operating system: All PHP version: 4.0CVS-2002-01-21 PHP Bug Type: Feature/Change Request Bug description: xmlSubstituteEntitiesDefault(1) to domxml_xslt_process Please add a line xmlSubstituteEntitiesDefault(1); to *domxml_xslt_process* to avoid warnings about nbsp;, copy;, etc... or make this call if when special boolean parameter passed as true to this function. Thanks -- Edit bug report at: http://bugs.php.net/?id=15145edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15127 Updated: I don't get any error messages but it loops
ID: 15127 Updated by: sander Old Summary: I don't get any error messages but it loops Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Session related Operating System: win 98 PHP Version: 4.1.0 New Comment: Not likely to be a bug. Ask support questions on the appropriate mailinglist. Previous Comments: [2002-01-20 19:25:46] [EMAIL PROTECTED] ?php function checkUser() { global $session, $logged_in; $session[logged_in] = false; $ecust_row = getRow( etable, id, $session[id] ); $tt=$ecust_row; if ( !$ecust_row || $ecust_row[duser]!=$session[login] || $ecust_row[dpass]!=$session[password] ) { print $tt; file://header( Location: login.php ); exit; } $session[logged_in] = true; return $ecust_row; } ? Please help me The function code that i have given it dosent give any error messages but It passes all verfication like username and password from the database but after it call the checkuser function withou giving any error messages it return's to login menu. if ( !$ecust_row || $ecust_row[duser]!=$session[login] || $ecust_row[dpass]!=$session[password] ) { print $tt; file://header( Location: login.php ); exit; } It goes through only this verification not $session[logged_in] = true; return $ecust_row; Tuan I have got a c:/tmp directory too. Edit this bug report at http://bugs.php.net/?id=15127edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15142 Updated: configure --help for --with-xslt-sablot lacks [=DIR]
ID: 15142 Updated by: sander Old Summary: configure --help for --with-xslt-sablot lacks [=DIR] Reported By: [EMAIL PROTECTED] Status: Open Old Bug Type: Documentation problem Bug Type: *Compile Issues Operating System: any PHP Version: 4.1.1 New Comment: Reclassified. Previous Comments: [2002-01-21 08:13:45] [EMAIL PROTECTED] $ ./configure --help ... --with-xslt-sablot XSLT: Enable the sablotron backend ... after a quick look at configure, i noticed that it actually supports something like --with-xslt-sablot[=DIR] should probably be fixed in ext/xslt/config.m4: 11 PHP_ARG_WITH(xslt-sablot, whether to enable the XSLT Sablotron backend, 12 [ --with-xslt-sablot XSLT: Enable the sablotron backend]) pete. Edit this bug report at http://bugs.php.net/?id=15142edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15144: Master includes being over ridden by a local include that does not exist..
From: [EMAIL PROTECTED] Operating system: FreeBSD 4.4 STABLE PHP version: 4.1.1 PHP Bug Type: PHP options/info functions Bug description: Master includes being over ridden by a local include that does not exist.. Hi, './configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd' '--without-mysql' '--with-zlib' '--with-mcrypt=/usr/local' '--with-imap=/usr/local' '--with-pgsql=/usr/local' '--with-ldap=/usr/local' '--with-xml' '--with-expat-dir=/usr/local' '--enable-ftp' '--with-gettext=/usr/local' '--with-mcal=/usr/local' '--enable-trans-sid' '--prefix=/usr/local' 'i386--freebsd4.4' I'm running PHP 4.1.1, with the following flags: I've seen similar bugs reported, but mine is defferent enough I think that it warrented it's own posting: I have a number of scripts that do a standard include, ie. include ('includes/config.inc'); that worked fine under 4.0 - 4.0.6 with out issue. As of 4.1.0 and the current version 4.1.1 this statement no longer works. Warning: Failed opening 'includes/config.inc' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/www/horde/mailadmin/index.php on line 3 When I used phpinfo I see that a local include's path (that I never set) is defaulting to ':.::/usr/local/lib/php', when it should be defaulting to the master path that was set '/usr/local/www/phplib:/usr/local/www/horde/mailadmin:.'. now... the other issue that I have noticed... is that the :.: is not getting used contrary to other posts that I have seen both here in the bugs reporting system and as sub-notes on the docs... that's about all I can think of right now... -- Edit bug report at: http://bugs.php.net/?id=15144edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #8537 Updated: Configure of php 4.0.4 dies but 4.03pl1 works fine
ID: 8537 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: *Install and Config Operating System: SUSE Linux 7.0 PHP Version: 4.0.4 New Comment: I got this error attempting to start Apache (1.3.22) with PHP 4.0.4. The --with-openssl=/vol/stage where OpenSSL is installed. I'm using Debian Linux 2.2. Syntax error on line 242 of /vol/stage/apache/conf/httpd.conf: Cannot load /vol/stage/apache/lib/php/libphp4.so into server: /vol/stage/apache/lib/php/libphp4.so: undefined symbol: pthread_getspecific /vol/stage/apache/bin/apachectl sslstart: httpd could not be started Previous Comments: [2001-01-03 12:30:45] [EMAIL PROTECTED] Using the right path (not the path to sources) with --with-openssl solved this problem. --Jani [2001-01-03 11:34:03] [EMAIL PROTECTED] hi, i tried to configure php 4.0.4 with the following command line: ./configure --with-mysql --enable-track-vars --enable-gd-imgstrttf --with-gd=/usr/src/gd-1.8.3 --with-pdflib --with-ttf --with-t1lib --with-png-dir --with-openssl=/usr/src/openssl-0.9.6 --with-zlib --with-jpeg-dir --with-tiff-dir --with-zlib-dir --enable-ftp --enable-dbase --enable-sysvsem --enable-sysvshm --with-apxs=/usr/local/apache/bin/apxs that's what I get: loading cache ./config.cache checking for a BSD compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... i686-pc-linux-gnu checking for gawk... gawk checking for bison... bison -y checking bison version... 1.25 (ok) checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib checking whether gcc and cc understand -c and -o together... yes checking whether ln -s works... yes checking for flex... flex checking for flex... (cached) flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for working const... yes checking for pthreads_cflags... -pthread checking for pthreads_lib... Configuring SAPI modules checking for AOLserver support... no checking for Apache module support via DSO through APXS... yes checking for mod_charset compatibility option... no checking for Apache 2.0 module support via DSO through APXS... no checking for Caudium support... no checking for fhttpd module support... no checking for Zeus ISAPI support... no checking for NSAPI support... no checking for PHTTPD support... no checking for Pi3Web Support... no checking for Roxen/Pike support... no checking for Servlet support... no checking for thttpd... no checking for chosen SAPI module... apache Running system checks checking for missing declarations of reentrant functions... done checking whether compiler supports -R... no checking whether compiler supports -Wl,-rpath,... yes checking for sendmail... /usr/sbin/sendmail checking whether system uses EBCDIC... no checking for socket in -lsocket... no checking for htonl in -lsocket... no checking for yp_get_default_domain... no checking for gethostname in -lnsl... yes checking for crypt in -lcrypt... yes checking for dlopen in -ldl... yes checking for sin in -lm... yes checking for inet_aton in -lbind... no checking for inet_aton in -lresolv... yes checking for res_search in -lsocket... no checking for res_search in -lresolv... yes checking for ANSI C header files... yes checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking for fclose declaration... ok checking for alloca.h... yes checking for arpa/inet.h... yes checking for crypt.h... yes checking for fcntl.h... yes checking for grp.h... yes checking for limits.h... yes checking for locale.h... yes checking for netinet/in.h... yes checking for pwd.h... yes checking for signal.h... yes checking for stdarg.h... yes checking for stdlib.h... yes checking for string.h... yes checking for syslog.h... yes checking for sys/file.h... yes checking for sys/mman.h... yes checking for sys/resource.h... yes checking for sys/select.h... yes checking for sys/socket.h... yes checking for sys/statfs.h... yes checking for sys/statvfs.h... yes
Re: [PHP-DEV] Bug #15140 Updated: mcrypt fails for twofish but workproperly for all other type of encryption
On 21 Jan 2002 [EMAIL PROTECTED] wrote: ID: 15140 Updated by: sander Reported By: [EMAIL PROTECTED] Status: Assigned Bug Type: mcrypt related Operating System: Redhat 7.2 PHP Version: 4.1.1 Assigned To: derick New Comment: To be completely clear, Derick asked to file a bugreport in the PHP-bugs-system about mcrypt not passing some PHP-tests, not to send the mcrypt-folks a bugreport. Erm, I asked him to file a bug report with the mcrypt-folks. It's most certain a bug in mcrypt (all those segfaults), and not in PHP. Derick Previous Comments: [2002-01-21 07:22:12] [EMAIL PROTECTED] That was quick. I am also sending a Bug Report to mcrypt. Testing with GOST Fail in the Same Way. Works for the others listed below. //T($user_id, MCRYPT_TWOFISH); // Generates Seg Fault. //T($user_id, MCRYPT_GOST); // Crash The System like TWOFISH T($user_id, MCRYPT_TripleDES); // Good T($user_id, MCRYPT_BLOWFISH); // Good T($user_id, MCRYPT_DES);// Good T($user_id, MCRYPT_RC2); // Good [2002-01-21 07:10:31] [EMAIL PROTECTED] I'll check this out, please file a bug report for mcrypt too (about not passing make test). Derick [2002-01-21 07:06:15] [EMAIL PROTECTED] The Script as it is will work using Triple DES Uncomment the TWOFISH Line At The Bottom of the code and you will get the Segmentation Fault. [2002-01-21 07:03:51] [EMAIL PROTECTED] // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 // 2.4.19 is Broken as it does not pass make check to test // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES and BLOWFISH. // // I do not have a gdb trace sorry :( // // Strange. Testing Script is following ?php // Problem with TWOFISH and mcrypt under PHP 4.0.6 and 4.1.1 // Tested with libmcrypt 2.4.11 2.4.13 2.4.18 2.4.19 (Broken does not pass make check) // When Loading This Page you should see the time and a Cookie Number. // If you test with TWOFISH It give a Segmentation Failure in the Apache Error Log // But Will Work With 3DES. // // Strange. // [EMAIL PROTECTED] REMOVE NOSPAM function T ( $user_id, $Encryption ) { $session_serial = $user_id. '-'.time(). '-'.$GLOBALS['REMOTE_ADDR']. '-'.$GLOBALS['HTTP_USER_AGENT']; echo pCypher: . $Encryption; $sessionKey=SessionKeyYouChoose; // Obviously not the one we use:) // Fails with TWOFISH but Works with TripleDES // Code Fail to produce Code. //$td = mcrypt_module_open(MCRYPT_TWOFISH, , MCRYPT_MODE_ECB, ); //$td = mcrypt_module_open(MCRYPT_TripleDES, , MCRYPT_MODE_ECB, ); $td = mcrypt_module_open($Encryption, , MCRYPT_MODE_ECB, ); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size ($td), MCRYPT_RAND); mcrypt_generic_init($td, $sessionKey, $iv); $encrypted_session_serial = mcrypt_generic($td, $session_serial); mcrypt_generic_end($td); $session_serial_hash = md5($encrypted_session_serial.$sessionKey); $session_serial_cookie = base64_encode($encrypted_session_serial).'-'.$session_serial_h ash; return $session_serial_cookie; } // If you don't see the time number increasing it is because Apache child seg fault // Check your apache/logs/error_log that is the problem. echo pIf you don't see the time number increasing it is because Apache child seg fault. br ; echo Check your apache/logs/error_log (tail -f error_log) and you will see the problem every t ime you reload.; echo pTime is: . time(); $user_id=120804; //$test = T($user_id, MCRYPT_TWOFISH); $test = T($user_id, MCRYPT_TripleDES); echo pCookie is : $test; echo pThe End; ? Edit this bug report at http://bugs.php.net/?id=15140edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15146: Apache fails to start - lib/php/libphp4.so: undefined symbol: pthread_getspecif
From: [EMAIL PROTECTED] Operating system: Debian Linux 2.2.19 PHP version: 4.1.1 PHP Bug Type: Dynamic loading Bug description: Apache fails to start - lib/php/libphp4.so: undefined symbol: pthread_getspecif Apache 1.3.22 with PHP 4.1.1 fails to start: bash$ /vol/stage/apache/bin/apachectl sslstart Syntax error on line 242 of /vol/stage/apache/conf/httpd.conf: Cannot load /vol/stage/apache/lib/php/libphp4.so into server: /vol/stage/apache/lib/php/libphp4.so: undefined symbol: pthread_getspecific /vol/stage/apache/bin/apachectl sslstart: httpd could not be started Configured as follows: CFLAGS=-DEAPI ./configure --with-mysql --with-axs=/vol/stage/apache/bin/apxs --with-imap --with-libjpeg=/usr/local/lib --enable-ftp --with-servlet=/usr/local/JSDK2.0 --with-openssl=/vol/stage --with-gnu-ld --with-java=/usr/local/java --with-png-dir --with-tiff-dir --prefix=/vol/stage/apache --with-zlib -- Edit bug report at: http://bugs.php.net/?id=15146edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15147: why have so bugs in make ,Have some bugs in Zend?
From: [EMAIL PROTECTED] Operating system: RedHat 7.2 PHP version: 4.1.0 PHP Bug Type: Compile Warning Bug description: why have so bugs in make ,Have some bugs in Zend? both php4.1.1 and php4.1.0 so on when i make error occur can you help me: Making all in Zend make[1]: Entering directory `/usr/local/php-4.1.0/Zend' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../maic /tmp/ccewc7tb.s:10936: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccewc7tb.s:10936: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccewc7tb.s:10936: Error: Rest of line ignored. First ignored character is . make[1]: *** [zend_language_parser.lo] Error make[1]: Leaving directory `/usr/local/php-4.1.0/Zend' make: *** [all-recursive] Error 1 -- Edit bug report at: http://bugs.php.net/?id=15147edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15148: Troubbles with setcookie (on Unix Solaris php)
From: [EMAIL PROTECTED] Operating system: Solaris 5.8 PHP version: 4.1.1 PHP Bug Type: *General Issues Bug description: Troubbles with setcookie (on Unix Solaris php) Hi guys... I had a script (sw.php) who works fine on php 4.1.1 on Windows NT, but when I try to run it on Solaris show me the following error: Warning: Cannot add header information - headers already sent by (output started at /www/htdocs/db-include.old:2) in /www/htdocs/sw.php on line 46 sw.php, call via OCI8 an Oracle8 database through db-include.old file who assigns username, password and string connection: sw.php - $rut=$HTTP_COOKIE_VARS[rut_alum]; require('db-include.old'); $Connection = OCILogon(DB_USER,DB_PASS,DB_NAME); $q_semeinsc = select ...; $statement1 = ociparse($Connection, $q_semeinsc); ociexecute($statement1, OCI_DEFAULT); while (OCIFetchinto($statement1, $semeinsc, OCI_ASSOC+OCI_RETURN_NULLS)) { $vanual = $semeinsc[VAR]; ... } if(!isset($nsemestre)) { $server_name = getenv(SERVER_NAME); $http_host = getenv(HTTP_HOST); setcookie(nsemestre, $vanual, time()+3600); } End - The warning points to the setcookie line. The script fetch the results of Database, but show that ugly warning... Can u help me? I'm very desperated... Greetings Alexis from Chile (sorry for my english) -- Edit bug report at: http://bugs.php.net/?id=15148edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15150: curl_errno() [still] reports strange numbers
From: [EMAIL PROTECTED] Operating system: linux 2.4.16 PHP version: 4.1.1 PHP Bug Type: cURL related Bug description: curl_errno() [still] reports strange numbers curl_errno() returns strange wrong values (very large numbers.. negative numbers etc..) $ch = curl_init (http://www.php.net;); curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_HEADER, 0); $page=curl_exec ($ch); $errore=curl_errno($ch); error_log ( curl_errno: $errore,0); curl_close ($ch); my configure options: './configure' '--enable-trans-sid' '--with-mm=/usr/local/src/mm-1.1.3' '--with-mhash' '--with-apxs=/var/lib/apache/sbin/apxs' '--with-mysql' '--with-curl' libcurl version is libcurl 7.9.2 -- Edit bug report at: http://bugs.php.net/?id=15150edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15123 Updated: strtotime() returns -1 for M d H:i:s Y format same as #13142
ID: 15123 User updated by: [EMAIL PROTECTED] Old Summary: strtotime doesn't work with long date format Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Date/time related Operating System: Linux 2.4.16 2.2.16 PHP Version: 4.1.1 Previous Comments: [2002-01-20 06:42:48] [EMAIL PROTECTED] Perl 4.1.1 compiled as CGI configure line: ./configure test OK. Everything works but this: (the date comes from a logfile) #! /usr/local/bin/php ?php $input = 'Sat Jan 19 00:01:00 2002'; $startdate = strtotime($input); echo (startdate:\n$startdate \n); ? Output: X-Powered-By: PHP/4.1.1 Content-type: text/html startdate: -1 Other dates like 'Fri, Jan 18 00:01:00 2002' -same problem Edit this bug report at http://bugs.php.net/?id=15123edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15146 Updated: Apache fails to start - lib/php/libphp4.so: undefined symbol: pthread_getspecif
ID: 15146 Updated by: yohgaki Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Dynamic loading Operating System: Debian Linux 2.2.19 PHP Version: 4.1.1 New Comment: You cannot specify 2 SAPIs, apache and servlet. BTW, if this typo? --with-axs=/vol/stage/apache/bin/apxs should be --with-apxs=/vol/stage/apache/bin/apxs If you properly configure/compile Apache/ModSSL, CFLASG=-DEAPI is not needed. Previous Comments: [2002-01-21 10:20:34] [EMAIL PROTECTED] Apache 1.3.22 with PHP 4.1.1 fails to start: bash$ /vol/stage/apache/bin/apachectl sslstart Syntax error on line 242 of /vol/stage/apache/conf/httpd.conf: Cannot load /vol/stage/apache/lib/php/libphp4.so into server: /vol/stage/apache/lib/php/libphp4.so: undefined symbol: pthread_getspecific /vol/stage/apache/bin/apachectl sslstart: httpd could not be started Configured as follows: CFLAGS=-DEAPI ./configure --with-mysql --with-axs=/vol/stage/apache/bin/apxs --with-imap --with-libjpeg=/usr/local/lib --enable-ftp --with-servlet=/usr/local/JSDK2.0 --with-openssl=/vol/stage --with-gnu-ld --with-java=/usr/local/java --with-png-dir --with-tiff-dir --prefix=/vol/stage/apache --with-zlib Edit this bug report at http://bugs.php.net/?id=15146edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15148 Updated: Troubbles with setcookie (on Unix Solaris php)
ID: 15148 Updated by: edink Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *General Issues Operating System: Solaris 5.8 PHP Version: 4.1.1 New Comment: Please make sure that nothing is printed from db-include.old. If something gets printed (anything: space, error message) the headers get sent so it is impossible to add cookie headers at that point. Previous Comments: [2002-01-21 10:31:44] [EMAIL PROTECTED] Hi guys... I had a script (sw.php) who works fine on php 4.1.1 on Windows NT, but when I try to run it on Solaris show me the following error: Warning: Cannot add header information - headers already sent by (output started at /www/htdocs/db-include.old:2) in /www/htdocs/sw.php on line 46 sw.php, call via OCI8 an Oracle8 database through db-include.old file who assigns username, password and string connection: sw.php - $rut=$HTTP_COOKIE_VARS[rut_alum]; require('db-include.old'); $Connection = OCILogon(DB_USER,DB_PASS,DB_NAME); $q_semeinsc = select ...; $statement1 = ociparse($Connection, $q_semeinsc); ociexecute($statement1, OCI_DEFAULT); while (OCIFetchinto($statement1, $semeinsc, OCI_ASSOC+OCI_RETURN_NULLS)) { $vanual = $semeinsc[VAR]; ... } if(!isset($nsemestre)) { $server_name = getenv(SERVER_NAME); $http_host = getenv(HTTP_HOST); setcookie(nsemestre, $vanual, time()+3600); } End - The warning points to the setcookie line. The script fetch the results of Database, but show that ugly warning... Can u help me? I'm very desperated... Greetings Alexis from Chile (sorry for my english) Edit this bug report at http://bugs.php.net/?id=15148edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15148 Updated: Troubbles with setcookie (on Unix Solaris php)
ID: 15148 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: *General Issues Operating System: Solaris 5.8 PHP Version: 4.1.1 New Comment: Well, I've revise the code on db-include.old again, and I saw a white line between code and ?...like this: ? DEFINE(user, ...) DEFINE(pass, ...) DEFINE(conn, ...) ? So, I remove that line and code responds fine! :) Thank you Edink! Previous Comments: [2002-01-21 11:28:33] [EMAIL PROTECTED] Please make sure that nothing is printed from db-include.old. If something gets printed (anything: space, error message) the headers get sent so it is impossible to add cookie headers at that point. [2002-01-21 10:31:44] [EMAIL PROTECTED] Hi guys... I had a script (sw.php) who works fine on php 4.1.1 on Windows NT, but when I try to run it on Solaris show me the following error: Warning: Cannot add header information - headers already sent by (output started at /www/htdocs/db-include.old:2) in /www/htdocs/sw.php on line 46 sw.php, call via OCI8 an Oracle8 database through db-include.old file who assigns username, password and string connection: sw.php - $rut=$HTTP_COOKIE_VARS[rut_alum]; require('db-include.old'); $Connection = OCILogon(DB_USER,DB_PASS,DB_NAME); $q_semeinsc = select ...; $statement1 = ociparse($Connection, $q_semeinsc); ociexecute($statement1, OCI_DEFAULT); while (OCIFetchinto($statement1, $semeinsc, OCI_ASSOC+OCI_RETURN_NULLS)) { $vanual = $semeinsc[VAR]; ... } if(!isset($nsemestre)) { $server_name = getenv(SERVER_NAME); $http_host = getenv(HTTP_HOST); setcookie(nsemestre, $vanual, time()+3600); } End - The warning points to the setcookie line. The script fetch the results of Database, but show that ugly warning... Can u help me? I'm very desperated... Greetings Alexis from Chile (sorry for my english) Edit this bug report at http://bugs.php.net/?id=15148edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15143 Updated: Large loop doesn't work.
ID: 15143 User updated by: [EMAIL PROTECTED] Old Summary: Large loop doesn't work. Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Apache related Operating System: Win 2K PHP Version: 4.1.1 Previous Comments: [2002-01-21 09:37:25] [EMAIL PROTECTED] This code doesn't seem to work with more than 20 people. I had it working great with 12 and then I added all 61 and the page just sits there and doesn't load. On IE or Netscape so it is the Apache or PHP. I am using the php.exe in apache not the module. I couldn't get the module to work correctly. I am using the latest stable versions of apache, mysql, and php. I also am using the mysql-nt-max. I don't think it is a problem with mysql cause I had a simular problem with a calendar program, yet when I didn't have tables (loop in a loop, just listed it straight out) it worked fine. When I eliminate the tables in this program I get up to about line 20 before it just hangs forever. I waited about 3 hours to see if it loaded and it never stops trying. html head titleFootball Playoff Picks Standings/title /head body bgcolor=#ff ?php $select=select a.nickname, round(sum(pow(2,a.round+1))),sum(1) from user_picks a, actual_wins b where a.round=b.round and a.division=b.division and a.winner=b.winner group by nickname order by 2 desc, 1 desc; $select_tot=select sum(1) from actual_wins; mysql_connect(localhost,root,Ushouldn'tBhere); $result = mysql_db_query(football,$select); $result_tot = mysql_db_query(football,$select_tot); $row_tot = mysql_fetch_array($result_tot); echo centertable border=1; echo trtd/tdthfont size=+2Place/font/ththfont size=+2Nickname/font/ththfont size=+2Points/font/ththfont size=+2Percentage/font/th/tr; $cnt = 1; while($row = mysql_fetch_array($result)) { $select=select winner from user_picks where round=3 and nickname='.$row[nickname].'; $result2 = mysql_db_query(football,$select); $row2 = mysql_fetch_array($result2); $nickname = urlencode($row[nickname]); echo trtdcenterimg src=\images/icons/.$row2[winner]..gif\/center/td; echo tdfont size=+1center.$cnt./center/font/td; echo tdfont size=+1centera href=\picks.php?nickname=.$nickname.\.$row[nickname]./a/center/font/td; echo td align=rightfont size=+1.$row[1]./font/td; $percentage=round($row[2]/$row_tot[0]*100); echo td align=rightfont size=+1.$percentage. %/font/td/tr; mysql_free_result($result2); $cnt++; } echo /table/center; mysql_free_result($result); ? /body /html Edit this bug report at http://bugs.php.net/?id=15143edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15146 Updated: Apache fails to start - lib/php/libphp4.so: undefined symbol: pthread_getspecif
ID: 15146 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Dynamic loading Operating System: Debian Linux 2.2.19 PHP Version: 4.1.1 New Comment: I have rebuilt using the configure with the following paramewters and still get the same error ./configure --with-mysql --with-apxs=/vol/stage/apache/bin/apxs --with-imap --with-libjpeg=/usr/local/lib --enable-ftp --with-openssl=/vol/stage --with-gnu-ld --with-java=/usr/local/java --with-png-dir --with-tiff-dir --prefix=/vol/stage/apache --with-zlib Re apxs, it wasn't a typo yet the configure script didn't complain. Thanks for catching it. Previous Comments: [2002-01-21 11:15:47] [EMAIL PROTECTED] You cannot specify 2 SAPIs, apache and servlet. BTW, if this typo? --with-axs=/vol/stage/apache/bin/apxs should be --with-apxs=/vol/stage/apache/bin/apxs If you properly configure/compile Apache/ModSSL, CFLASG=-DEAPI is not needed. [2002-01-21 10:20:34] [EMAIL PROTECTED] Apache 1.3.22 with PHP 4.1.1 fails to start: bash$ /vol/stage/apache/bin/apachectl sslstart Syntax error on line 242 of /vol/stage/apache/conf/httpd.conf: Cannot load /vol/stage/apache/lib/php/libphp4.so into server: /vol/stage/apache/lib/php/libphp4.so: undefined symbol: pthread_getspecific /vol/stage/apache/bin/apachectl sslstart: httpd could not be started Configured as follows: CFLAGS=-DEAPI ./configure --with-mysql --with-axs=/vol/stage/apache/bin/apxs --with-imap --with-libjpeg=/usr/local/lib --enable-ftp --with-servlet=/usr/local/JSDK2.0 --with-openssl=/vol/stage --with-gnu-ld --with-java=/usr/local/java --with-png-dir --with-tiff-dir --prefix=/vol/stage/apache --with-zlib Edit this bug report at http://bugs.php.net/?id=15146edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15143 Updated: Large loop doesn't work.
ID: 15143 User updated by: [EMAIL PROTECTED] Old Summary: Large loop doesn't work. Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Apache related Operating System: Win 2K PHP Version: 4.1.1 New Comment: The selects in a loop is what does it. If I remove the select statement it seems to work fine in this program. Is there some kind of limit to how many selects on php page can handle? or am I not releasing the sql functions correctly? I also notice that everytime I have a page loading I see a new process for php.exe in the process tab under task manager. while($row = mysql_fetch_array($result)) { $select=select winner from user_picks where round=3 and nickname='.$row[nickname].'; $result2 = mysql_db_query(football,$select); $row2 = mysql_fetch_array($result2); $nickname = urlencode($row[nickname]); echo trtdcenterimg src=\images/icons/.$row2[winner]..gif\/center/td; echo tdfont size=+1center.$cnt./center/font/td; echo tdfont size=+1centera href=\picks.php?nickname=.$nickname.\.$row[nickname]./a/center/font/td; echo td align=rightfont size=+1.$row[1]./font/td; $percentage=round($row[2]/$row_tot[0]*100); echo td align=rightfont size=+1.$percentage.%/font/td/tr; mysql_free_result($result2); $cnt++; } Previous Comments: [2002-01-21 09:46:16] [EMAIL PROTECTED] Can you simplify the code and track down the problem to only a few lines of code? [2002-01-21 09:37:25] [EMAIL PROTECTED] This code doesn't seem to work with more than 20 people. I had it working great with 12 and then I added all 61 and the page just sits there and doesn't load. On IE or Netscape so it is the Apache or PHP. I am using the php.exe in apache not the module. I couldn't get the module to work correctly. I am using the latest stable versions of apache, mysql, and php. I also am using the mysql-nt-max. I don't think it is a problem with mysql cause I had a simular problem with a calendar program, yet when I didn't have tables (loop in a loop, just listed it straight out) it worked fine. When I eliminate the tables in this program I get up to about line 20 before it just hangs forever. I waited about 3 hours to see if it loaded and it never stops trying. html head titleFootball Playoff Picks Standings/title /head body bgcolor=#ff ?php $select=select a.nickname, round(sum(pow(2,a.round+1))),sum(1) from user_picks a, actual_wins b where a.round=b.round and a.division=b.division and a.winner=b.winner group by nickname order by 2 desc, 1 desc; $select_tot=select sum(1) from actual_wins; mysql_connect(localhost,root,Ushouldn'tBhere); $result = mysql_db_query(football,$select); $result_tot = mysql_db_query(football,$select_tot); $row_tot = mysql_fetch_array($result_tot); echo centertable border=1; echo trtd/tdthfont size=+2Place/font/ththfont size=+2Nickname/font/ththfont size=+2Points/font/ththfont size=+2Percentage/font/th/tr; $cnt = 1; while($row = mysql_fetch_array($result)) { $select=select winner from user_picks where round=3 and nickname='.$row[nickname].'; $result2 = mysql_db_query(football,$select); $row2 = mysql_fetch_array($result2); $nickname = urlencode($row[nickname]); echo trtdcenterimg src=\images/icons/.$row2[winner]..gif\/center/td; echo tdfont size=+1center.$cnt./center/font/td; echo tdfont size=+1centera href=\picks.php?nickname=.$nickname.\.$row[nickname]./a/center/font/td; echo td align=rightfont size=+1.$row[1]./font/td; $percentage=round($row[2]/$row_tot[0]*100); echo td align=rightfont size=+1.$percentage. %/font/td/tr; mysql_free_result($result2); $cnt++; } echo /table/center; mysql_free_result($result); ? /body /html Edit this bug report at http://bugs.php.net/?id=15143edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14972 Updated: Setting 'sendmail_path' leads to PHP not find sendmail
ID: 14972 Updated by: markonen Old Summary: Setting 'sendmail_path' leads to PHP not find sendmail Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: PHP options/info functions Operating System: MacOS 10.1.2 (Darwin 5.2) PHP Version: 4.1.1 New Comment: Okay, I just need to learn to read better. The problem is that php only supports enclosing php.ini parameters in double, not single quotes. So sendmail -t -i should work fine. The configuration page in the manual should probably mention this explicitly, but I think it's quite clear as- is. I'm correcting the example in the ini files and closing. Previous Comments: [2002-01-21 08:14:53] [EMAIL PROTECTED] since sendmail_path defaults to 'sendmail -t -i', leaving it out should be ok for you The above setting was just an example... In real: My intranet domain is named unusual so I want to set the envelope sender to something real by using the '-f' switch. Some smtp servers outside will return an error like domain unknown if the envelope sender domain is named incorrect. [2002-01-21 03:35:46] [EMAIL PROTECTED] A note to the submitter: since sendmail_path defaults to 'sendmail -t -i', leaving it out should be ok for you. I'm opening this, because the PHP.INI clearly says: ;for unix only, may supply arguments as well (default is 'sendmail -t -i') Either way, it is a bug (doc or something else) [2002-01-20 18:33:55] [EMAIL PROTECTED] sendmail_path is only for setting the path to the sendmail executable. You can't set command line parameters for sendmail with it. To supply command line parameters, use the fifth parameter to the mail() function, documented at http://www.php.net/mail. [2002-01-10 11:55:05] [EMAIL PROTECTED] If 'sendmail_path' is set in the php.ini like this: sendmail_path = 'sendmail -t -i' I get the following error in the Apache error log: zsh: no such file or directory: /usr/sbin/sendmail -t -i If I run /usr/sbin/sendmail -t -i manually from the zsh it works but if I surround it by quotation marks I get the same error. Edit this bug report at http://bugs.php.net/?id=14972edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15149 Updated: I don't just insert to oracle db
ID: 15149 Updated by: sander Old Summary: I don't just insert to oracle db Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Old Bug Type: Website problem Bug Type: Oracle related Operating System: solaris8 PHP Version: 4.0.5 New Comment: Ask support questions on the appropriate mailinglist. Previous Comments: [2002-01-21 10:33:02] [EMAIL PROTECTED] I installed to my system with apache1.3.19+php4.0.5+oracle8.1.7 When I tested it I found some problem in Oracle DB. when I used insert command, it didn't work. And there was no error messages. But a select command, there was no problem, and worked well. What should I do in this case. help me please... Edit this bug report at http://bugs.php.net/?id=15149edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14334 Updated: Bug in COM class
ID: 14334 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: COM related Operating System: Windows 2000 Professional PHP Version: 4.0.6 New Comment: I am having the same problem which is a bit stranger though. One time my call is correct while done in another place produces php_OLECHAR_to_char error message. Working: $pdflib = new COM(PDFlib_com.PDF); print $pdflib-get_parameter(version,0); Prints version string as expected. Not working: $pdflib = new COM(PDFlib_com.PDF); print $pdflib-set_parameter(fontwarning,1); print $pdflib-get_parameter(version,0); Produces error message for the get_parameter line and 0 (true !!! in php for PDFlib, -1 is false) for the fontwarning line. Also, to make it even stranger, at least to me: When I switch the line in the non-working example, I both get the version string and 0 for the fontwarning Is there something wrong about the way I connect to PDFLib ? HTH W. Previous Comments: [2001-12-06 22:09:09] [EMAIL PROTECTED] If you mean php code, here goes: - $instance = new COM(WinampCOM.Application); $title = $instance-CurrentSongTitle; - The $title line will produce the error if run via the httpd, but not if pasted in the stdin of php.exe. The WinampCOM.Application com requires a winamp module, which can be found at http://www.adcock8.freeserve.co.uk/gen_com.zip If any more info is needed, please don't hesitate to ask. [2001-12-06 15:07:09] [EMAIL PROTECTED] If you mean php code, here goes: - $instance = new COM(WinampCOM.Application); $title = $instance-CurrentSongTitle; - The $title line will produce the error if run via the httpd, but not if pasted in the stdin of php.exe. The WinampCOM.Application com requires a winamp module, which can be found at http://www.adcock8.freeserve.co.uk/gen_com.zip If any more info is needed, please don't hesitate to ask. [2001-12-06 12:13:41] [EMAIL PROTECTED] please provide the shortest possible code that produces this error. [2001-12-04 02:55:21] [EMAIL PROTECTED] Warning: Error in php_OLECHAR_to_char() in g:\apache\test\index.php on line 65. This error is only returned when the script is run from the httpd. IIS, Apache, and Xitami, all return this error. When I use the script via pasting it to stdin on php.exe, it runs perfectly. The script returns no errors from the stdin. Edit this bug report at http://bugs.php.net/?id=14334edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] if ()
Please, How can i use a similar command of C language as such as if (a==b b==c) ? anyone can help ? thanks, eduardo melo computer programmer _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] if ()
Just like that On Mon, 21 Jan 2002, Eduardo Melo wrote: Please, How can i use a similar command of C language as such as if (a==b b==c) ? anyone can help ? thanks, eduardo melo computer programmer _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] if ()
if ($a == $b $b == $c) Eduardo Melo wrote: Please, How can i use a similar command of C language as such as if (a==b b==c) ? anyone can help ? thanks, eduardo melo computer programmer _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- - Brad House Sr. Developer Main Street Softworks, Inc. [EMAIL PROTECTED] (352) 378-8228 - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15151: Decimals/Numerics stored as int64 always display as xxx.2
From: [EMAIL PROTECTED] Operating system: Windows PHP version: 4.1.1 PHP Bug Type: InterBase related Bug description: Decimals/Numerics stored as int64 always display as xxx.2 Decimals/Numerics that are stored as 64-bit integers always display as xxx.2. The following should fix the problem: Original code (on or about line 1782): val-value.str.len = sprintf(string_data, %Ld.%0*Ld, (ISC_INT64) (*((ISC_INT64 *)data) / (int) pow(10.0, (double) -scale)), -scale, (ISC_INT64) abs((int) (*((ISC_INT64 *)data) % (int) pow(10.0, (double) -scale; Change to: val-value.str.len = sprintf(string_data, %Ld, (ISC_INT64) (*((ISC_INT64 *)data) / (int) pow(10.0, (double) -scale))); val-value.str.len += sprintf(string_data + val-value.str.len, .%0*Ld, -scale, (ISC_INT64) abs((int) (*((ISC_INT64 *)data) % (int) pow(10.0, (double) -scale; The problem is with MSVC++. It doesn't seem to like two int64s in the same sprintf statement. I don't yet have all the pieces to compile the extension so I have not fully tested it, but I have duplicated the problem in a test program and verified that the above code fixes the problem in the test program. -- Edit bug report at: http://bugs.php.net/?id=15151edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15151 Updated: Decimals/Numerics stored as int64 always display as xxx.2
ID: 15151 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: InterBase related Operating System: Windows PHP Version: 4.1.1 New Comment: This is also reported as #13807 Previous Comments: [2002-01-21 13:10:17] [EMAIL PROTECTED] Decimals/Numerics that are stored as 64-bit integers always display as xxx.2. The following should fix the problem: Original code (on or about line 1782): val-value.str.len = sprintf(string_data, %Ld.%0*Ld, (ISC_INT64) (*((ISC_INT64 *)data) / (int) pow(10.0, (double) -scale)), -scale, (ISC_INT64) abs((int) (*((ISC_INT64 *)data) % (int) pow(10.0, (double) -scale; Change to: val-value.str.len = sprintf(string_data, %Ld, (ISC_INT64) (*((ISC_INT64 *)data) / (int) pow(10.0, (double) -scale))); val-value.str.len += sprintf(string_data + val-value.str.len, .%0*Ld, -scale, (ISC_INT64) abs((int) (*((ISC_INT64 *)data) % (int) pow(10.0, (double) -scale; The problem is with MSVC++. It doesn't seem to like two int64s in the same sprintf statement. I don't yet have all the pieces to compile the extension so I have not fully tested it, but I have duplicated the problem in a test program and verified that the above code fixes the problem in the test program. Edit this bug report at http://bugs.php.net/?id=15151edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] if ()
Eduardo Melo wrote: Please, How can i use a similar command of C language as such as if (a==b b==c) ? anyone can help ? Eduardo, please get a clue! You've been told more than once in detail where to find the informations you need and where to ask questions if you have problems with the documentation! [EMAIL PROTECTED] is definetly *not* the place to ask this type of questions -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15120 Updated: Netscape sessions contain no data
ID: 15120 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Session related Operating System: Linux PHP Version: 4.0.6 New Comment: I'm hoping you haven't given up on me...are you still able to help, even with my many limitations? Previous Comments: [2002-01-20 11:04:11] [EMAIL PROTECTED] I wish I could be of more help in this issue. My virtual server is merely leased space on another company's server. I have some control, like access to the http.conf files and mail aliases, etc., but not root access. I wouldn't know how to configure php to run on my own personal computer at home... As far as making a reproducible script, I'm afraid that's beyond my capabilities as well. This software uses modules, class and function folders as well as tying into the MySQL database. Is there any other way I could help, like sending you a couple of the pertinent files (sessions.php)? I'm generally a very good troubleshooter and hacker (being able to figure out how to get a program to do what I want it to), but this one has me stumped. [2002-01-20 09:19:15] [EMAIL PROTECTED] I verified with my Netscape 4.77/U.S., 26-Mar-01; It does not work with my Netscape, but it works with my Mozilla 0.9.7+. I guess you have your PC or test PC, could you reproduce with your PC? If yes, please try if it happens with 4.1.1. Could you make a short reproducible script? [2002-01-20 06:23:57] [EMAIL PROTECTED] I am in a virtual hosting situation where I have telnet access, but not root access...so I haven't been able to install 4.1.1. I have been in touch with the support folks on my server asking if they would upgrade to 4.1.1, but I don't have an answer for that yet. I'm sure they would agree to the upgrade if I could establish that this is definitely a bug with the php version 4.0.6, though. The URL of my customer's shop is http://www.jokesrwild.com/catalog The software itself can be found at http://www.oscommerce.com. It's not a live shop yet, so you can poke around all you want. Thanks [2002-01-20 03:04:13] [EMAIL PROTECTED] What is the URL for downloading your cart? Does this happen with 4.1.1? [2002-01-20 02:05:01] [EMAIL PROTECTED] I have been trying to implement some shopping cart software that uses a MySQL database and sessions to track the shopping carts. When you access the shop using IE and add an item to the cart, everything is fine. But when you access the shop using a Netscape browser (version 4.61) or an AOL or CompuServe browser, try to add an item to the cart, it comes back and tells you the cart is empty. This also happens when you try to login. The sessions are kept in a /tmp directory on my server. When I go in an look at the sessions, there are sessions created for both IE and Netscape, only the Netscape session contains no data. This software is Open Source software and I have gone into many other people's shops and not had this problem which leads me to believe that it may be server/php related. What do you folks think? Edit this bug report at http://bugs.php.net/?id=15120edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15152: SSI output from PHP CGI produces garbage on Netscape browsers
From: [EMAIL PROTECTED] Operating system: Linux 2.4.2-2 RedHat 7.1 PHP version: 4.1.1 PHP Bug Type: Output Control Bug description: SSI output from PHP CGI produces garbage on Netscape browsers I'm calling a PHP CGI script through Apache's mod_include SSI directives. When using Internet Explorer, the output of the PHP script is just fine. However, when using Netscape (4.x and 6.x), I just see garbage as output (similar to what you would see if you were viewing a website in a language that your browser didn't support). I was thinking this was an Apache related problem, but then I decided to try to include a bash shell script cgi using SSI. This worked just fine for both browsers which leads me to believe that it's a PHP specific problem. Here's the scripts that I'm using: -- ssi.shtml -- !--#include virtual=bash-ssi.cgi -- br !--#include virtual=php-ssi.cgi -- -- bash-ssi.cgi -- #!/bin/bash echo X-Powered-By: PHP/4.1.1 echo Content-type: text/html echo echo This is a test string from a Bash Shell CGI script -- php-ssi.cgi -- #!/usr/local/bin/php ?php echo This is a test string from a PHP CGI script.\n; ? Here is the output from the browsers: -- Internet Explorer -- This is a test string from a Bash Shell CGI script This is a test string from a PHP CGI script. -- Netscape -- This is a test string from a Bash Shell CGI script ù- I'm sorry I can't test this on any other systems. This is the only one I have access to right now. Thanks for the help. Adam Taft [EMAIL PROTECTED] -- Edit bug report at: http://bugs.php.net/?id=15152edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] REMOVEING apidoc.txt and apidoc-zend.txt
I think that replacing them with web pointers is a better idea than just plain removing them... Zeev At 04:41 AM 1/16/2002, Yasuo Ohgaki wrote: Hi all. apidoc.txt and apidoc-zend.txt are obsolete. If nobody going to maintain these files, they should be removed, IMO. (It's still useful, though) If we want to keep these, how about make a new directory docs to keep verious text documents that is better to be distributed with source. Any comments? -- Yasuo Ohgaki -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15152 Updated: SSI output from PHP CGI produces garbage on Netscape browsers
ID: 15152 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Old Bug Type: Output Control Bug Type: *Compression related Operating System: Linux 2.4.2-2 RedHat 7.1 PHP Version: 4.1.1 New Comment: I just had a revelation regarding this issue. I realized that the problem might be coming from the fact that I have 'output_handler = ob_gzhandler' in my php.ini file. I disabled this compressed output handler and it seems to have solved the problem! I'm leaving this bug's status in your hands because this might be useful information to somebody else out there using the ob_gzhandler output handler (maybe for the documenation). This is probably a Netscape compression handling issue? Thanks. Adam Taft [EMAIL PROTECTED] Previous Comments: [2002-01-21 15:18:47] [EMAIL PROTECTED] I'm calling a PHP CGI script through Apache's mod_include SSI directives. When using Internet Explorer, the output of the PHP script is just fine. However, when using Netscape (4.x and 6.x), I just see garbage as output (similar to what you would see if you were viewing a website in a language that your browser didn't support). I was thinking this was an Apache related problem, but then I decided to try to include a bash shell script cgi using SSI. This worked just fine for both browsers which leads me to believe that it's a PHP specific problem. Here's the scripts that I'm using: -- ssi.shtml -- !--#include virtual=bash-ssi.cgi -- br !--#include virtual=php-ssi.cgi -- -- bash-ssi.cgi -- #!/bin/bash echo X-Powered-By: PHP/4.1.1 echo Content-type: text/html echo echo This is a test string from a Bash Shell CGI script -- php-ssi.cgi -- #!/usr/local/bin/php ?php echo This is a test string from a PHP CGI script.\n; ? Here is the output from the browsers: -- Internet Explorer -- This is a test string from a Bash Shell CGI script This is a test string from a PHP CGI script. -- Netscape -- This is a test string from a Bash Shell CGI script ù- I'm sorry I can't test this on any other systems. This is the only one I have access to right now. Thanks for the help. Adam Taft [EMAIL PROTECTED] Edit this bug report at http://bugs.php.net/?id=15152edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15153: Php starts writing log in an infinite loop resulting is system DoS
From: [EMAIL PROTECTED] Operating system: Linux 2.2.20 (Redhat 5.2) PHP version: 4.1.1 PHP Bug Type: *Directory/Filesystem functions Bug description: Php starts writing log in an infinite loop resulting is system DoS A piece of code that you have at http://www.php.net/manual/en/function.readdir.php leads to system DoS with php-4.1.1, Linux 2.2.20, apache 1.3.22: Example 1. List all files in the current directory ?php $handle=opendir('.'); echo Directory handle: $handle\n; echo Files:\n; while (false !== ($file = readdir($handle))) { echo $file\n; } closedir($handle); ? When this code is executed, php enters a loop writing this line to the log file an infinite number of times: [date] PHP Warning: Supplied argument is not a valid Directory resource in /path/to/script.php on line 5. Httpd uses all processor time and finally fills the partition in which the log file is located. The problem seems to be the dot in the function call because the script works normally if the dot is replaced with an absolute path name. My apacle 1.3.22 web server includes the following modules: mod_ssl 2.8.5, mod_perl 1.26, php-3.0.18, php-4.1.1. Php-4.1.1 has been compiled as a dynamic module with the following options: --enable-versioning --with-apxs --with-mysql --with-xml --enable-calendar --enable-memory-limit --enable-session --enable-safe-mode --with-openssl --enable-bcmath --with-gd I also tried this with php-4.0.6 and the result is the same. -- Edit bug report at: http://bugs.php.net/?id=15153edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14910 Updated: --with-snmp compile failure
ID: 14910 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Compile Failure Operating System: Red Hat Linux 7.1 PHP Version: 4.1.1 New Comment: I also am receiving the same exact error. Has anyone any idea what I can do to fix the problem? Will downgrading the PHP version have any affect? Previous Comments: [2002-01-10 04:27:24] [EMAIL PROTECTED] In the Zend/Makefile.in, changing this: libZend_la_LDFLAGS = @EXTRA_LIBS@ to this: libZend_la_LDFLAGS = did _not_ fix the compile problems at my side ... there are the same errors as before at some other system this fixed the compile errors but restarting apache coredumped ... (net-snmp 4.2.3, php4.1.1) [2002-01-09 11:52:25] [EMAIL PROTECTED] The same error occurs when using UCD-SNMP 4.2.3. Wiping out any snmp library and header files on the system and rebuilding snmp had no effect. [2002-01-07 09:35:20] [EMAIL PROTECTED] I am running UCD-SNMP 4.2.2. UCD-SNMP libraries are installed in the default locations (/usr/local/...). The snmp daemon, etc, appear to work perfectly. Configure of php suceeds. I think compilation suceeds as well. Linking appears to fail after compilation. Nobody was able to help me on the mailing lists. I have also seen several other people posting this same error to the lists. They have also received no useful answers. The configure options I used: ./configure \ --with-apxs=/opt/apache/bin/apxs \ --with-oci8 \ --with-ldap \ --with-gd=/usr \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-freetype-dir=/usr \ --with-zlib-dir=/usr \ --with-xpm-dir=/usr/X11R6 \ --enable-sigchild \ --with-imap \ --enable-xslt \ --with-xslt-sablot \ --enable-wddx \ --with-snmp \ --enable-ucd-snmp-hack \ --with-openssl A snippet of the error it produced upon make: Making all in . make[1]: Entering directory `/opt/tmp/php-4.1.1' /bin/sh /opt/tmp/php-4.1.1/libtool --silent --mode=link gcc -I. -I/opt/tmp/php-4.1.1/ -I/opt/tmp/php-4.1.1/main -I/opt/ tmp/php-4.1.1 -I/opt/apache/include -I/opt/tmp/php-4.1.1/Zend -I/usr/include/freetype2/freetype -I/usr/local/include -I/ opt/tmp/php-4.1.1/ext/mysql/libmysql -I/opt/oracle/rdbms/public -I/opt/oracle/rdbms/demo -I/opt/tmp/ucd-snmp-4.2.2/inclu de -I/opt/tmp/php-4.1.1/ext/xml/expat -DLINUX=22 -DMOD_SSL=208104 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I/opt/tmp/php-4.1.1 /TSRM -g -O2 -prefer-pic -o libphp4.la -rpath /opt/tmp/php-4.1.1/libs -avoid-version -L/usr/X11R6/lib -L/usr/local/lib -L/opt/oracle/lib -L/opt/tmp/ucd-snmp-4.2.2/lib -R /usr/X11R6/lib -R /usr/local/lib -R /opt/oracle/lib -R /opt/tmp/ucd -snmp-4.2.2/lib stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/zlib/libzlib.la ex t/gd/libgd.la ext/imap/libimap.la ext/ldap/libldap.la ext/mysql/libmysql.la ext/oci8/liboci8.la ext/openssl/libopenssl.l a ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/snmp/libsnmp.la ext/standard/libstandard.la ex t/wddx/libwddx.la ext/xml/libxml.la ext/xslt/libxslt.la TSRM/libtsrm.la -lpam -lc-client -ldl -lsablot -lexpat -lsnmp -l m -ldl -lldap -llber -lcrypt -lpam -lgd -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lresolv -lcrypt -lclntsh /usr/local/lib/libsnmp.a(snmp_client.o): In function `snmp_pdu_create': /opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_client.c:110: multiple definition of `snmp_pdu_create' Zend/.libs/libZend.al(snmp_client.o):/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_client.c:110: first defined here /usr/local/lib/libsnmp.a(snmp_client.o): In function `snmp_add_null_var': /opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_client.c:140: multiple definition of `snmp_add_null_var' Zend/.libs/libZend.al(snmp_client.o):/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_client.c:140: first defined here . . . OUTPUT OMITTED . . . /usr/local/lib/libsnmp.a(snmp_alarm.o): In function `alarm_handler': /opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:164: multiple definition of `alarm_handler' Zend/.libs/libZend.al(snmp_alarm.o):/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:164: first defined here /usr/local/lib/libsnmp.a(snmp_alarm.o): In function `get_next_alarm_delay_time': /opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:170: multiple definition of `get_next_alarm_delay_time' Zend/.libs/libZend.al(snmp_alarm.o):/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:170: first defined here /usr/local/lib/libsnmp.a(snmp_alarm.o): In function `snmp_alarm_register': /opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:204: multiple definition of `snmp_alarm_register' Zend/.libs/libZend.al(snmp_alarm.o):/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:204: first defined here collect2: ld returned 1 exit
[PHP-DEV] Bug #15133 Updated: SSI
ID: 15133 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.1.1 New Comment: Ok, I've run some tests on my server and I can setup another filtered extension. I guess this is one way to run it. Seeing as this was a feature request, I thought it might be useful to be able to control this setting programatically. If this isn't going to be added to the list of things to add, then please put this in some kind of configuration documentation somewhere. This question comes up a lot more than obviously you guys are aware of. Previous Comments: [2002-01-21 02:04:49] [EMAIL PROTECTED] alternatively, why not have your isp make a new filtered extension, like .pssi or something, which has the executable set as php.exe -q ? [2002-01-20 23:56:30] [EMAIL PROTECTED] Well, on UN*X, too you don't have to supply the path to PHP. But as you are implying, a script is either called normally OR from a SSI include. So every script which is called by SSI could have a php -q at the beginning, right? Your set_expose would therefore be redundant (unless -q is not possible from within IIS). Is it possible, or not, to run a PHP-script with -q on IIS? Kind Regards, Daniel Lorch [2002-01-20 22:32:19] [EMAIL PROTECTED] Under IIS, you do not have to supply the path to the executable in every script. That's the nature of windows. It works via file extension association. My solution is to create a function called set_expose(off) or whatever fits in with the php naming conventions so that this can be set at runtime from within the script. Thus forcing php to not send out any headers by itself. [2002-01-20 22:28:34] [EMAIL PROTECTED] But this a completely intended behaviour. On UN*X you have to provide the -q as well in _every script_ which should be used as output called from a SSI directive. Where do you have to make this setting? Globally for all PHP scripts? Or can it be done in every script. I don't know IIS, sorry. Kind Regards, Daniel Lorch [2002-01-20 22:11:59] [EMAIL PROTECTED] Under IIS you specify what script engine runs your php file. Basically says that all files with extension .php are run by c:/php/php.exe or whatever the executable is. You COULD put the -q in there, but that would apply for all users. Can you specify -q at runtime so that my ISP (or any ISP for that matter) doesn't have to set explicit settings for this? That way it gets left up to the programmer HOW they want their php scripts run. Forcing -q on all users would mean that everyone of the ISP's clients would have to output all the headers just to get their scripts running. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=15133 Edit this bug report at http://bugs.php.net/?id=15133edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14798 Updated: session.gc_maxlifetime does not work (Reopen Bug ID #3793)
ID: 14798 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: Session related Operating System: Win 2k PHP Version: 4.1.1 New Comment: Hi, I tested PHP 4.1.0 (release) on Windows XP Professional and there is my report: WWW server: IIS 5.1 Filesystem: NTSF (Compressed) PHP.INI: [Session] session.save_handler = files ; handler used to store/retrieve data session.save_path = C:/Windows/Temp; argument passed to save_handler ; in the case of files, this is the ; path where data files are stored session.use_cookies = 0 ; whether to use cookies session.name = PHPSESSID ; name of the session ; is used as cookie name session.auto_start= 0 ; initialize session on request startup session.cookie_lifetime = 0 ; lifetime in seconds of cookie ; or if 0, until browser is restarted session.cookie_path = / ; the path the cookie is valid for session.cookie_domain = ; the domain the cookie is valid for session.serialize_handler = php ; handler used to serialize data ; php is the standard serializer of PHP session.gc_probability= 100 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime= 600; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned up by the gc process session.referer_check = ; check HTTP Referer to invalidate ; externally stored URLs containing ids session.entropy_length= 0 ; how many bytes to read from the file session.entropy_file = ; specified here to create the session id ; session.entropy_length= 16 ; session.entropy_file = /dev/urandom session.cache_limiter = nocache ; set to {nocache,private,public} to ; determine HTTP caching aspects session.cache_expire = 180 ; document expires after n minutes session.use_trans_sid = 0 ; use transient sid support if enabled ; by compiling with --enable-trans-sid url_rewriter.tags = a=href,area=href,frame=src,input=src,form=fakeentry 1) The ISAPI module doesn't work right (there is some data output error) with ISS 5.1. CGI version works fine. 2) There is still the same problem with session.gc_maxlifetime. 3) session.gc_probability = 100 - there is one change. It deleted all files except last accessed session file in previous versions of PHP, now It do nothing (NO files, including expired files are deleted). 4) Session_destroy() function works fine. I will test CGI ISAPI modules with W2K professional (Apache, IIS 5.0) on FAT32 filesystem tomorrow. -- Kori Previous Comments: [2002-01-13 20:30:28] [EMAIL PROTECTED] Under Windows, session save path's directory is FAT FS and save handler is files, gc call is deleting all session files. Status = Analyzed. (I cannot fix this one, since it's windows specific :) [2002-01-13 17:03:06] [EMAIL PROTECTED] OK, as I thought: The test (see top entry) works on Win with NTFS. What I did: a) I set session.gc_probability = 100 b) I mad a little FAT32 partition on F: and a NTFS partition G: The bug *only appears* when using FAT32: session.save_path = F:\tmp Session works fine when using NTFS: session.save_path = G:\tmp So it MUST be a *atime* related problem. [2002-01-13 16:22:13] [EMAIL PROTECTED] Ok, I'll assume your FAT FS supports mtime. However, I still have to ask you if it work with NTFS. I don't use Windows now . If there is a problem, I think problem is in TSRM code ;) [2002-01-13 16:01:19] [EMAIL PROTECTED] I'm using FAT32 and mtime is working fine! I use mtime in 2 PHP objects I've wrote (a cache system and a extention to PHP's session handling) and mtime is fine! Again: [EMAIL PROTECTED] and I suspect the bug in *atime*!!! NOTE: Fat32 on Win has following effect as described by [EMAIL PROTECTED] under the user comment of fileatime() http://www.php.net/manual/en/function.fileatime.php: Windows *does* track file access times, however it seems (that
[PHP-DEV] Bug #14222 Updated: PHP Crashes with weird output often
ID: 14222 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Apache related Operating System: Windows XP Pro PHP Version: 4.1.1 New Comment: update to newest version ? do you mean one in the cvs repository ? i tried everything: apache 1.3x, apache 2.0 beta and php version 4.05, 4.06, 3.x and 4.11 (the latest official) --- and - i must run php as an apache-module because i use gd-lib. besides - gd lib does not work correctly (gives jpegs with only 16 colors) after version 4.05 of php. is this because now there is an extra feature in gd-lib where you must provide bit-depth ? my resume: apache without php works fine, php in cgi-mode works fine -- so there must be an os-related bug in the interface wich allows using the php-dll as an apache - module. maybe an buffer-problem? i tried the following: i took a normal html-page, tried this with apache -- works fine. then simply renamed it to *.php - strange code-output - the normal html but fragmented with weird-passages, they change after every reload. Previous Comments: [2002-01-19 21:52:17] [EMAIL PROTECTED] Please update PHP version :) [2002-01-19 14:37:34] [EMAIL PROTECTED] I ALSO HAVE THIS PROBLEM !! I tried several combinations of apache ( 1.3x, 2.0beta) and php (4.06, 4.11) and i get too this weird output. and the output is irregular if i reload. i have windows xp german too. this is defenitly a problem caused by windows xp, scince my old configuration under winnt worked fine , but after updating to xp some files fail. it looks like it depends on the php file size, not on the code in the php file. example: www.videofiles.de/andre/dmmain.php - try with netscape, as iexplorer not even loads the page. hope this problem gets fixed soon, as i cannot go back to nt neither win2000 greetz from germany!! (wish i could use linux...) [2002-01-11 08:30:52] [EMAIL PROTECTED] I've a similar probleme with Apache 3.2.22, PHP 4.1.0 and mysql. I obtain a page correctly generated when i call it from localhost but it seem that don't work on the net (Cannot display... or the source of page is not correct some data from mysql database are mixed with the source, and sometime there's a another HTTP-header in the middle of the page. I don't understand why because, if i call the page by the internet address from the server it's work at 100%. I try the same page from a another computer on the LAN, and it's seem work at 60%, sometime i met the same mistakes that there was via internet. So if you can help me ! Thx ! [2001-11-29 14:19:35] [EMAIL PROTECTED] I set up my Computer new, this time with XP German (last time XP eng), still have the problems, but not that hard than last time. Just as info :) btw when php 4.1.0 will be released now? [2001-11-26 07:30:10] [EMAIL PROTECTED] OK, its like i expected. When you fill out a loop (any kind of one) with enough data it happens (a overflow??) ? //create an array with 100 items with different informations for($i=0;$i100;$i++){ srand((double)microtime()*100); $testarray[] = md5(uniqid(rand())); } ? table ? //output from this array, 3 times for enougth data for($i=0;$i100;$i++){ ? tr td font face=Tahoma, Tahoma, Tahoma size=1 color=black style=text-decoration:none a href=# target=top?=$testarray[$i]?/a/font /td td font face=Tahoma, Tahoma, Tahoma size=1 color=black style=text-decoration:none a href=# target=top?=$testarray[$i]?/a/font /td td font face=Tahoma, Tahoma, Tahoma size=1 color=black style=text-decoration:none a href=# target=top?=$testarray[$i]?/a/font /td /tr ? };? /table The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=14222 Edit this bug report at http://bugs.php.net/?id=14222edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15145 Updated: xmlSubstituteEntitiesDefault(1) to domxml_xslt_process
ID: 15145 Updated by: jarkol Reported By: [EMAIL PROTECTED] Old Status: Open Status: Analyzed Bug Type: Feature/Change Request Operating System: All PHP Version: 4.0CVS-2002-01-21 New Comment: Added domxml_substitute_entities_default() function - a wrapper for xmlSubstituteEntititiesDefault() function from libxml2. It expects bool for the new value and returns bool of the previous value. Previous Comments: [2002-01-21 09:49:16] [EMAIL PROTECTED] Please add a line xmlSubstituteEntitiesDefault(1); to *domxml_xslt_process* to avoid warnings about nbsp;, copy;, etc... or make this call if when special boolean parameter passed as true to this function. Thanks Edit this bug report at http://bugs.php.net/?id=15145edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15154: set_error_handler(): some parse errors not caught
From: [EMAIL PROTECTED] Operating system: PLD Linux 2.4.16 PHP version: 4.0CVS-2002-01-21 PHP Bug Type: Scripting Engine problem Bug description: set_error_handler(): some parse errors not caught Some parse errors are caught by assigned error handler, and some are not. I use: error_reporting(E_ALL); set_error_handler('my_error_handler'); For example: ?php i_am_some_parse_error ? is caught by error handler, and: ?php i_am_some_parse_error = 1; ? is not caught and displays: Parse error: parse error in ... on line -- Edit bug report at: http://bugs.php.net/?id=15154edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15155: Mailparse causes segfault in DSO, apxs2
From: [EMAIL PROTECTED] Operating system: RedHat 6.2 PHP version: 4.1.1 PHP Bug Type: Mailparse related Bug description: Mailparse causes segfault in DSO, apxs2 Every time i compile as DSO for Apache2 it segfaults on startup!, also happens on php4-200201211500 snap. configure was: --prefix=/a2 --with-apxs2=/a2/bin/apxs --enable-track-vars --enable-sockets --enable-ftp --enable-magic-quotes --with-mysql --with-zlib --with-gettext --with-imap --with-xml --enable-inline-optimization --with-curl --enable-mailparse -- Edit bug report at: http://bugs.php.net/?id=15155edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] pthread thread support : issues?
After spending yesterday looking at the pcntl library, I did at one point attempt to get create_thread going, It didnt get very far, (it segfaulted on emalloc - perhaps because thread_init had not been called) but I did start wondering about the feasibilty.. Has anybody ever attempted it? The basic task of creating a set of php functions which wrapped the thread library - based perhaps on some of the code in python's thread library didnt seem particulary complex, however can anyone think of any issues that would occur? Would it only work as a built in module rather than a loadable module? anyway, I couldnt find any threads 'on threads:)' on php-dev discussing it - has anybody got any comments? regards alan -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] pthread thread support : issues?
you wanted an ext that wraps the pthread libraries or something? doesn't sound like it should be too hard... I'm not too familiar with do's and dont's of exts ... but doesn't seem like there would be any complications... I could probably whip something up in a few minutes if anyone else is interested in multithreaded programming with PHP (please let me know if it's not possible ;) ) -Brad Alan Knowles wrote: After spending yesterday looking at the pcntl library, I did at one point attempt to get create_thread going, It didnt get very far, (it segfaulted on emalloc - perhaps because thread_init had not been called) but I did start wondering about the feasibilty.. Has anybody ever attempted it? The basic task of creating a set of php functions which wrapped the thread library - based perhaps on some of the code in python's thread library didnt seem particulary complex, however can anyone think of any issues that would occur? Would it only work as a built in module rather than a loadable module? anyway, I couldnt find any threads 'on threads:)' on php-dev discussing it - has anybody got any comments? regards alan -- - Brad House Sr. Developer Main Street Softworks, Inc. [EMAIL PROTECTED] (352) 378-8228 - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15154 Updated: set_error_handler(): some parse errors not caught
ID: 15154 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Scripting Engine problem Operating System: PLD Linux 2.4.16 PHP Version: 4.0CVS-2002-01-21 New Comment: The first one is a runtime warning (Use of undefined constant ...) and not an parser error. Previous Comments: [2002-01-21 18:52:57] [EMAIL PROTECTED] Some parse errors are caught by assigned error handler, and some are not. I use: error_reporting(E_ALL); set_error_handler('my_error_handler'); For example: ?php i_am_some_parse_error ? is caught by error handler, and: ?php i_am_some_parse_error = 1; ? is not caught and displays: Parse error: parse error in ... on line Edit this bug report at http://bugs.php.net/?id=15154edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15155 Updated: Mailparse causes segfault in DSO, apxs2
ID: 15155 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Mailparse related Operating System: RedHat 6.2 PHP Version: 4.1.1 New Comment: Please compile with --enable-debug and provide a backtrace. Also try to minimize the options to configure to those which still reproduce your crash. Previous Comments: [2002-01-21 20:24:37] [EMAIL PROTECTED] Every time i compile as DSO for Apache2 it segfaults on startup!, also happens on php4-200201211500 snap. configure was: --prefix=/a2 --with-apxs2=/a2/bin/apxs --enable-track-vars --enable-sockets --enable-ftp --enable-magic-quotes --with-mysql --with-zlib --with-gettext --with-imap --with-xml --enable-inline-optimization --with-curl --enable-mailparse Edit this bug report at http://bugs.php.net/?id=15155edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] pthread thread support : issues?
If something like this were actually created, would it look anything like the file I just attached. I have yet to put the rest of the headers, etc on... but it technically should be a working pthread_create() function as far as I can tell, if I'm not as stupid as I think I am ;) - Brad House Sr. Developer Main Street Softworks, Inc. [EMAIL PROTECTED] (352) 378-8228 - int le_threadid; int le_pthreadattr; typedef struct function_params { zval **function_name; zval ***args_ptr; } function_params; void *call_user_function(void *params) { function_params *my_params=params; zval *retval; CLS_FETCH(); if (call_user_function_ex(CG(function_table), NULL, *(my_params-function_name), retval, 0, my_params-args_ptr, 0) != SUCCESS) { zend_error(E_ERROR, Function call failed); } return(retval); } /* {{{ proto int pthread_create(int pthread_attr, string function_name, args...) RETURN: Success: resource id of pthread_t (thread id) Fail: -1 INPUT: pthread_attr: resource id for pthread attributes. -1 for none function_name: php function name to call args...: all arguments to be passed to function */ PHP_FUNCTION(pthread_create) { zval **pthread_attr, ***args=NULL; pthread_t *thread; pthread_attr_t *attr=NULL; function_params *my_params; int argcount; int ret; argcount=ZEND_NUM_ARGS(); if (argcount 2) { WRONG_PARAM_COUNT; } args=(zval ***)emalloc(argcount*sizeof(zval **)); if (zend_get_parameters_array_ex(argcount, args) != SUCCESS) { free(args); WRONG_PARAM_COUNT; } if ((*args[1])-type != IS_STRING) { efree(args); zend_error(E_ERROR, Function requires string argument); } my_params=(function_params *)emalloc(1*sizeof(function_params)); my_params-function_name=args[1]; my_params-args_ptr=args+2; thread=(pthread_t *)emalloc(1*sizeof(pthread_t)); if (Z_LVAL_PP(args[0]) != -1) { ZEND_FETCH_RESOURCE(attr, pthread_attr_t *, args[0], -1, pthread_attribute, le_pthreadattr); } ret=pthread_create(thread, attr, (void *)call_user_function, (void *)my_params); if (ret != 0) { efree(my_params); efree(args); efree(thread); RETURN_LONG(-1); } ZEND_REGISTER_RESOURCE(return_value, thread, le_thread); } -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: PHP Apache2Filter crashes on Win32
On Mon, Jan 21, 2002 at 01:23:42PM +0100, Sebastian Bergmann wrote: Here's a backtrace: ap_save_brigade(ap_filter_t * 0x10d57628, apr_bucket_brigade * * 0x10d56004, apr_bucket_brigade * * 0x10a6fe74, apr_pool_t * 0x10d55b30) line 418 + 49 bytes php_output_filter(ap_filter_t * 0x10d57628, apr_bucket_brigade * 0x10d57790) line 350 + 32 bytes ap_pass_brigade(ap_filter_t * 0x10d57628, apr_bucket_brigade * 0x10d57790) line 390 + 16 bytes default_handler(request_rec * 0x10d55b68) line 2974 ap_run_handler(request_rec * 0x10d55b68) line 186 + 78 bytes ap_invoke_handler(request_rec * 0x10d55b68) line 359 + 9 bytes ap_process_request(request_rec * 0x10d55b68) line 291 + 9 bytes ap_process_http_connection(conn_rec * 0x10cdc140) line 280 + 9 bytes ap_run_process_connection(conn_rec * 0x10cdc140) line 84 + 78 bytes ap_process_connection(conn_rec * 0x10cdc140) line 232 worker_main(int 248) line 934 _threadstartex(void * 0x005f4688) line 212 + 13 bytes Latest CVS of both Apache2 and PHP 4. FWIW, I see segfaults in PHP4 all of the time in Unix when it calls ap_save_brigade. I even filed a PHP bug report a month ago today. =) http://bugs.php.net/bug.php?id=14637 I think it is related to inproper use of ap_save_brigade, but I'm not familiar enough with PHP to determine more. I bet it is a boundary condition that it isn't handling. It *could* be something we're doing wrong in ap_save_brigade, but I didn't see that from my cursory examination. The context looks like it has been corrupted. -- justin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15153 Updated: Php starts writing log in an infinite loop resulting in local DoS
ID: 15153 User updated by: [EMAIL PROTECTED] Old Summary: Php starts writing log in an infinite loop resulting is system DoS Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Directory/Filesystem functions Operating System: Linux 2.2.20 (Redhat 5.2) PHP Version: 4.1.1 Edit this bug report at http://bugs.php.net/?id=15153edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15153 Updated: Php starts writing log in an infinite loop resulting in local DoS
ID: 15153 User updated by: [EMAIL PROTECTED] Old Summary: Php starts writing log in an infinite loop resulting is system DoS Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Directory/Filesystem functions Operating System: Linux 2.2.20 (Redhat 5.2) PHP Version: 4.1.1 Edit this bug report at http://bugs.php.net/?id=15153edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #15156: apache segmentation fault (11) with php4
From: [EMAIL PROTECTED] Operating system: RedHat Linux, 2.4.2 kernel PHP version: 4.1.1 PHP Bug Type: Reproducible crash Bug description: apache segmentation fault (11) with php4 I recently installed PHP4 from the tarball distribution as a dynamically loaded module for Apache. It builds cleanly and the server starts. However, I have two serious problems with my server: 1) all requests to the server for .html documents result in a [notice] child pid 15202 exit signal Segmentation fau lt (11) error 2) requests for PHP-containing documents do not return anything to the server. However, an examination of the source shows the text of the document with ?php... tags. If I comment out the LoadModule directive that loads PHP4 in httpd.conf, my server can process the html document requests. PHP 4.1.1 was configured with: --enable-debug --with-mysql=/usr --with-apxs=/usr/sbin/apxs Apache is apache-1.3.22-3 installed from a RawHide RPM MySQL is MySQL-4.0.1-2 installed from a MySQL RPM Here's the gdb backtrace from a request for a non-PHP-including html document: -- Starting program: /usr/sbin/httpd -X -f /etc/httpd/conf/httpd.conf (no debugging symbols found)...[New Thread 1024 (LWP 15221)] (no debugging symbols found)...(no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 15221)] 0x40480108 in php_xbithack_handler (r=0x80df818) at mod_php4.c:777 777 conf = (php_apache_info_struct *) get_module_config(r-per_dir_c onfig, php4_module); (gdb) (gdb) bt #0 0x40480108 in php_xbithack_handler (r=0x80df818) at mod_php4.c:777 #1 0x8054f7a in ap_invoke_handler () #2 0x8068e73 in ap_some_auth_required () #3 0x403d9ea4 in handle_dir () from /etc/httpd/modules/mod_dir.so #4 0x8054f7a in ap_invoke_handler () #5 0x8068e73 in ap_some_auth_required () #6 0x806910e in ap_process_request () #7 0x806113d in ap_child_terminate () #8 0x80613c2 in ap_child_terminate () #9 0x8061449 in ap_child_terminate () #10 0x80620aa in ap_child_terminate () #11 0x8062434 in main () #12 0x40171108 in __libc_start_main () from /lib/i686/libc.so.6 -- I'd appreciate any help you can provide on this. By the way, I'm willing to use an older version of PHP if the bug is fixed there. Thanks a lot. Best regards, Craig -- Edit bug report at: http://bugs.php.net/?id=15156edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]