[PHP-DEV] PHP 4.0 Bug #9933 Updated: readdir doesn't work see Bug ID # 9058
ID: 9933 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Directory function related Description: readdir doesn't work see Bug ID # 9058 Hi, i think this is the problem (reentrancy.c) int ret; errno = 0; ret = readdir_r(dirp, entry); if (!ret || errno != 0) { *result = NULL; } else { *result = entry; } return errno; thr return value of readdir_r is 0 on success, so the above will return NULL on success. The line should be something like if (ret != 0 || errno != 0) { Thomas Previous Comments: --- [2001-03-22 11:59:49] [EMAIL PROTECTED] Greetings, I have unknowlingly followed the same path that Brian has in bug report # 9058. Namely, HP-UX 10.20, gcc version 2.95, PHP compiled many different ways but latley - ./configure --enable-libgcc --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --disable-posix My application seems to work OK with the execption of no files listed from a readdir call. The example code from readdir returns - Directory handle: Resource id #1 Files: and no file names. Please let me know if there is anything I can do. larry --- Full Bug description available at: http://bugs.php.net/?id=9933 -- 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 #10522: system and exec doesn't return output
From: [EMAIL PROTECTED] Operating system: win32 PHP version: 4.0.2 PHP Bug Type: *Directory/Filesystem functions Bug description: system and exec doesn't return output $r = exec(D:\blah\CGI-Bin\gen_mi.exe .trim($cmd), $result); print $result[0]; It works fine with php3 but not with php4.0 .. 4.2 (win32) it returns nothing. Same problem with system command -- Edit Bug report at: http://bugs.php.net/?id=10522edit=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 4.0 Bug #10343 Updated: Mail function does not work ...
ID: 10343 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Mail related Description: Mail function does not work ... OK, I've found it ! Like i say in the previous message, it was a security problem. By default, only the user root and the user mail were able to use the /var/spool/mail directory ! So, changed the security on this folder and the mail funtion works now ... Previous Comments: --- [2001-04-16 09:33:52] [EMAIL PROTECTED] OK, i know that i'm not the only one to have this little problem whit PHP 4.04pl1. In fact, when you want to use the mail function, it doesn't work : you do not receive any mail or errors ! But when i look at the Syslog, it seems that's a security problem : f3GDFxv24454: SYSERR(apache): Can't create transcript file ./xff3GDFxv24454: Permission denied f3GDFxv24454: SYSERR(apache): Cannot create ./dff3GDFxv24454: Permission denied f3GDFxv24454: from=apache, size=0, class=0, nrcpts=0, relay=apache@localhost Very strange isnt'it ? A mail from apache(the user account used to run http daemon) with no recipient and no mail data ! Can someone help me ? This would be the solution for a lot of people having the same problem. Thanks. Fabian. --- Full Bug description available at: http://bugs.php.net/?id=10343 -- 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 4.0 Bug #10343 Updated: Mail function does not work ...
ID: 10343 User Update by: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Mail related Description: Mail function does not work ... Previous Comments: --- [2001-04-16 09:33:52] [EMAIL PROTECTED] OK, i know that i'm not the only one to have this little problem whit PHP 4.04pl1. In fact, when you want to use the mail function, it doesn't work : you do not receive any mail or errors ! But when i look at the Syslog, it seems that's a security problem : f3GDFxv24454: SYSERR(apache): Can't create transcript file ./xff3GDFxv24454: Permission denied f3GDFxv24454: SYSERR(apache): Cannot create ./dff3GDFxv24454: Permission denied f3GDFxv24454: from=apache, size=0, class=0, nrcpts=0, relay=apache@localhost Very strange isnt'it ? A mail from apache(the user account used to run http daemon) with no recipient and no mail data ! Can someone help me ? This would be the solution for a lot of people having the same problem. Thanks. Fabian. --- Full Bug description available at: http://bugs.php.net/?id=10343 -- 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 #10522 Updated: system and exec doesn't return output
ID: 10522 Updated by: derick Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: *Directory/Filesystem functions PHP Version: 4.0.2 Assigned To: Comments: Can you try php 4.0.5 when it comes out on Tuesday? There where a lot of windows related fixes since 4.0.2 Previous Comments: --- [2001-04-27 03:59:41] [EMAIL PROTECTED] $r = exec(D:blahCGI-Bingen_mi.exe .trim($cmd), $result); print $result[0]; It works fine with php3 but not with php4.0 .. 4.2 (win32) it returns nothing. Same problem with system command --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10522edit=2 -- 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] Fwd: Re: [PHP-INST] AIX
Hey guys, Any idea why HAVE_INT_8_16_32 wasn't defined correctly for this guy configuring PHP on AIX? I don't know the autoconf stuff too well but I couldn't find any test for this in the libmysql source that sits in the PHP CVS. Maybe we are missing something in our CVS? Thanks. Andi Date: Thu, 26 Apr 2001 18:22:37 -0500 To: Andi Gutmans [EMAIL PROTECTED], [EMAIL PROTECTED] From: Jacob Steinberger [EMAIL PROTECTED] Subject: Re: [PHP-INST] AIX Looks like that fixed everything. Now I'm just dealing with user/pass issues so at least its making it to the SQL DB. Simple enough things that I can handle myself. =) Many thanks Andi! At 01:27 AM 4/27/01 +0200, Andi Gutmans wrote: A temporary hack which might work is editing ext/mysql/libmysql/global.h and change all occurances of: #ifndef HAVE_INT_8_16_32 to: #if 0 Andi At 05:22 PM 4/26/2001 -0500, Jacob Steinberger wrote: Apache Configured with generic. Though I don't think that matters just yet. PHP Configured with: ./configure --with-mysql --with-apache=/tmp/AIX/apache_1.3.19 --enable-track-vars I did not specify a path for MySql as I'm not sure if its happy with just the client libs or if it wants the server. I'm still getting the same error with Gnu Make. The error is from the Making all in libmysql. In file included from libmysql.c:9: global.h:525: conflicting types for 'int8' /usr/include/sys/inttypes.h:622: previous delaration of 'int8' global.h:526: warning: redefinition of 'int16' /usr/include/sys/inttypes.h:623: warning: 'int16' previously declared here global.h:536: warning: redefinition of 'int32' /usr/include/sys/inttypes.h:624: warning: 'int32' previously declared here libmysql.c: In function 'connect2': libmysql.c:179: warning: passing arg 5 of 'getsockopt' from incompatible pointer type After this, it just errors out and reports leaving directories. Oy! Jacob -- PHP Install 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] PHP 4.0 Bug #10343 Updated: Mail function does not work ...
Yeah but doesn't this function use sendmail with is suid root? Andi At 08:13 AM 4/27/2001 +, [EMAIL PROTECTED] wrote: ID: 10343 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Mail related Description: Mail function does not work ... OK, I've found it ! Like i say in the previous message, it was a security problem. By default, only the user root and the user mail were able to use the /var/spool/mail directory ! So, changed the security on this folder and the mail funtion works now ... Previous Comments: --- [2001-04-16 09:33:52] [EMAIL PROTECTED] OK, i know that i'm not the only one to have this little problem whit PHP 4.04pl1. In fact, when you want to use the mail function, it doesn't work : you do not receive any mail or errors ! But when i look at the Syslog, it seems that's a security problem : f3GDFxv24454: SYSERR(apache): Can't create transcript file ./xff3GDFxv24454: Permission denied f3GDFxv24454: SYSERR(apache): Cannot create ./dff3GDFxv24454: Permission denied f3GDFxv24454: from=apache, size=0, class=0, nrcpts=0, relay=apache@localhost Very strange isnt'it ? A mail from apache(the user account used to run http daemon) with no recipient and no mail data ! Can someone help me ? This would be the solution for a lot of people having the same problem. Thanks. Fabian. --- Full Bug description available at: http://bugs.php.net/?id=10343 -- 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] wrong post?
Hi, i need resources on how-to build a multiple upload at once featuring something like multiple CTRL selection in combo box when the user get the Open file... window. I don't want a pre-cooked ready-to-use perfect solution,(ok, if u have one I'll appreciate ;) ) ... I'm only looking if it's a reasonable idea or if I'm missing something that make this work a mission:impossible bye -- (p)Ivan Student DIST Bio-Lab Viale Causa 13 16145 Genoa - Italy tel: +39 010 3532789 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] PHP 4.0 Bug #9933 Updated: readdir doesn't work seeBug ID # 9058
On Fri, 27 Apr 2001, Andi Gutmans wrote: Larry, You are right if this code refers to the POSIX semantics of readdir_r. However, this code is in #if defined(HAVE_OLD_READDIR_R) and I don't know what is meant by old readdir_r (different semantics?). Sascha? Can you shed some light on this? It is a non-standard readdir_r commonly found on SysV platforms and derivatives. - Sascha Experience IRCG http://schumann.cx/http://schumann.cx/ircg -- 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 #10523: get_defined_functions inserts a whitespace at the end of each value.
From: [EMAIL PROTECTED] Operating system: Win2k PHP version: 4.0.4pl1 PHP Bug Type: Class/Object related Bug description: get_defined_functions inserts a whitespace at the end of each value. Hi, I spent an hour to understand why this simple code did not work for me: // $functions: an array of the Db specific functions I care of. // they are in form 'connect', 'query' etc... $existing = get_defined_functions(); foreach($functions as $k=$v) { $f = $dbms.$v; printf(%s $fBR, in_array($f, $existing['internal']) ? '+' : '-'); } It did not return me anything at all, although it should. The problem was: get_defined_functions() returns a two dimensional array, in which all the values (functions) are having a (whitespace?) 'ORD(0)' at the end. you can check it with this: $func = get_defined_functions(); echo 'PRE'; foreach($func['internal'] as $k=$v) { printf(ASCII: '%d' \tvalue: '%s'\n, ord(substr($v, -1)), $v); } echo '/PRE'; // the returns the following: ASCII: '0' value: 'zend_version' ASCII: '0' value: 'func_num_args' ASCII: '0' value: 'func_get_arg' and so on... I believe that's a bug, no? Maxim Maletsky, [EMAIL PROTECTED] PHPBeginner.com -- Edit Bug report at: http://bugs.php.net/?id=10523edit=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] PHP 4.0 Bug #9933 Updated: readdir doesn't work see Bug ID # 9058
At 12:34 PM 4/27/2001 +0200, Sascha Schumann wrote: On Fri, 27 Apr 2001, Andi Gutmans wrote: Larry, You are right if this code refers to the POSIX semantics of readdir_r. However, this code is in #if defined(HAVE_OLD_READDIR_R) and I don't know what is meant by old readdir_r (different semantics?). Sascha? Can you shed some light on this? It is a non-standard readdir_r commonly found on SysV platforms and derivatives. So what does that mean? The code is OK there and it isn't reached on systems where readdir_r returns 0 for success? I'm not quite sure what to do with this bug report. Andi -- 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 4.0 Bug #10523 Updated: get_defined_functions inserts a whitespace at the end of each value.
ID: 10523 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Class/Object related Description: get_defined_functions inserts a whitespace at the end of each value. Previous Comments: --- [2001-04-27 06:38:06] [EMAIL PROTECTED] Hi, I spent an hour to understand why this simple code did not work for me: // $functions: an array of the Db specific functions I care of. // they are in form 'connect', 'query' etc... $existing = get_defined_functions(); foreach($functions as $k=$v) { $f = $dbms.$v; printf(%s $fBR, in_array($f, $existing['internal']) ? '+' : '-'); } It did not return me anything at all, although it should. The problem was: get_defined_functions() returns a two dimensional array, in which all the values (functions) are having a (whitespace?) 'ORD(0)' at the end. you can check it with this: $func = get_defined_functions(); echo 'PRE'; foreach($func['internal'] as $k=$v) { printf(ASCII: '%d' tvalue: '%s'n, ord(substr($v, -1)), $v); } echo '/PRE'; // the returns the following: ASCII: '0' value: 'zend_version' ASCII: '0' value: 'func_num_args' ASCII: '0' value: 'func_get_arg' and so on... I believe that's a bug, no? Maxim Maletsky, [EMAIL PROTECTED] PHPBeginner.com --- Full Bug description available at: http://bugs.php.net/?id=10523 -- 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] PHP 4.0 Bug #9933 Updated: readdir doesn't work see Bug ID # 9058
So what does that mean? The code is OK there and it isn't reached on systems where readdir_r returns 0 for success? I'm not quite sure what to do with this bug report. We either need to differentiate between Solaris and HPUX readdir_r or ignore the return value of that system call, as the semantics differ. Solaris return non-zero on success whereas HPUX returns zero. This could be achieved by setting entry-d_name[0] to NUL before the system call and assume that it failed, if the system call does not change the contents of d_name. - Sascha Experience IRCG http://schumann.cx/http://schumann.cx/ircg -- 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 4.0 Bug #9769 Updated: Compile faliure --with-nsapi
ID: 9769 User Update by: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: iPlanet related Description: Compile faliure --with-nsapi I install bison-1.27-sol25-sparc-local, libstdc++-2.8.1-local and gcc-2.95.3-sol25-sparc-local sun packages. I execute ./configure --with-all-my-options. This urn OK. Then i modify the main/php_config.h and i add the line: #define IEEEFP_H And i execute make make install and compile OK. thanks. Previous Comments: --- [2001-03-26 06:23:16] [EMAIL PROTECTED] I installed the last version of gcc and I compiled OK. Now I've got a libphp4.so in /opt/netscape/suitespot/bin. I've modified the obj.conf file and the LD_LIBRARY_PATH in the start script, but the server fails on startup. Error message on startup: Status: [https-intermonPHP4]: pclose() failed. (2: unknown early startup error) [https-intermonPHP4]: server terminated: signal 6 Error An error occurred during startup. The server https-intermonPHP4 was not started This is my obj.conf: # Netscape Communications Corporation - obj.conf # You can edit this file, but comments and formatting changes # might be lost when the admin server makes changes. Init fn=flex-init access=/opt/netscape/suitespot/https-intermonPHP4/logs/access format.access=%Ses-client.ip% - %Req-vars.auth-user% [%SYSDATE%] %Req-reqpb.clf-request% %Req-srvhdrs.clf-status% %Req-srvhdrs.content-length% Init fn=load-types mime-types=mime.types Init fn=load-modules funcs=php4_init,php4_close,php4_execute,php4_auth_trans shlib=/opt/netscape/suitespot/bin/libphp4.so Init fn=php4_init errorString=Failed to initialise PHP ... Object name=default ObjectType fn=type-by-extension ObjectType fn=force-type type=text/plain Service fn=php4_execute type=magnus-internal/x-httpd-php Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common Service fn=CM_Delete method=DELETE /Object Object name=x-httpd-php ObjectType fn=force-type type=magnus-internal/x-httpd-php Service fn=php4_execute /Object --- [2001-03-19 11:43:46] [EMAIL PROTECTED] Are you sure you're compiling with gcc? Check that configure check for it says you're really using gcc. And remember to delete config.cache before configure!! --Jani --- [2001-03-19 11:37:42] [EMAIL PROTECTED] Are you sure you're compiling with gcc? Check that configure check for it says you're really using gcc. And remember to delete config.cache before configure!! --Jani --- [2001-03-19 06:18:23] [EMAIL PROTECTED] I installed GCC 2.7.2.1 and i tried to compile the 15/3/2001 CVS version. ./configure --with-gd=no --with-nsapi=/opt/netscape/suitespot --with-oracle=/disco2/oracle/product/8.0.5 --with-config-file-path=/user/gedweb/www/php --enable-debug=no --without-mysql --enable-libgcc Making all in Zend make[1]: Entering directory `/user/gedweb/php4-200103152245/Zend' /bin/sh ../libtool --silent --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I../main -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -I../TSRM -g -mt -c zend_language_scanner_cc.cc zend_istdiostream.h, line 8: Error: stdiobuf is not defined. zend_istdiostream.h, line 11: Error: Type name expected instead of stdiobuf. zend_istdiostream.h, line 11: Error: No storage class or type for this declaration. zend_istdiostream.h, line 11: Error: , expected instead of *. zend_istdiostream.h, line 10: Error: istream is not a direct base class of istdiostream. zend_istdiostream.h, line 10: Error: Cannot use __FILE* to initialize int. zend_istdiostream.h, line 10: Error: Formal argument sb of type std::basic_streambufchar, std::char_traitschar* in call to std::basic_ioschar, std::char_traitschar::init(std::basic_streambufchar, std::char_traitschar*) is being passed int*. zend_language_scanner_cc.cc, line 2817: Error: stdiofile is not a member of std::basic_streambufchar, std::char_traitschar. zend_language_scanner_cc.cc, line 4050: Warning: String literal converted to char* in assignment. zend_language_scanner_cc.cc, line 4699: Error: Cannot assign std::basic_istreamchar, std::char_traitschar* to istream*. zend_language_scanner_cc.cc, line 4803: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*). zend_language_scanner_cc.cc, line 4907: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*). zend_language_scanner_cc.cc, line 4980: Warning: String literal converted to char*
[PHP-DEV] Re: Fwd: Re: [PHP-INST] AIX
Andi Gutmans writes: Hey guys, Any idea why HAVE_INT_8_16_32 wasn't defined correctly for this guy configuring PHP on AIX? I don't know the autoconf stuff too well but I couldn't find any test for this in the libmysql source that sits in the PHP CVS. Maybe we are missing something in our CVS? Thanks. Andi It should have been. What I do not see is what AIX version it is ?? Some latest AIX's have changed things considerably, so that we have yet to tacle those issues. Also, this is a private list. Please write to some of the public lists. Regards, Sinisa __ _ _ ___ == MySQL AB /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic /*/ /*/ /*/ \*\_ |*| |*||*| mailto:[EMAIL PROTECTED] /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaca, Cyprus /*/ /*/ /*/\*\_/*/ \*\_/*/ |*| /*/^^^\*\^^^ /*/ \*\Developers Team -- 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] function table / hashes
On 2001-04-27 11:27:55, Andi Gutmans [EMAIL PROTECTED] wrote: At 12:03 AM 4/27/2001 -0400, David Croft wrote: Thank you Andi and Andrei. I have noticed that object method callbacks are consistently faster than global function callbacks, and was wondering why: Perhaps because the method only needs to be found in the hash for the object? --Wez. -- 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 #9816 Updated: FATAL: emalloc(): Unable to allocate
ID: 9816 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Status: Open Bug Type: ODBC related PHP Version: 4.0.4pl1 Assigned To: Comments: Another user commented: I just have read the bug-report 9816 at php.net and want to answer your email. Yes, the users are right: I had the same problems with FATAL:emalloc() using the same odbc-queries to get information out of two ms access tables. The first table only contains Customer-ID and pasword, the second contains customer adress and a remark-field (data type memo) Tests: user authentication for login taken from table 1 - OK hello text for user from table 2 - FATAL:emalloc() Result of Test enviroment - after some nights of installation :-) : 1) Win2000, MS Access2000, IIS5 and PHP4.0.4 : FATAL:emalloc() 2) Win2000, MS Access2000 SP1, IIS5 and PHP4.0.4 : FATL:emalloc() 3) Win2000, MS Access2000 SP1, Apache 1.3 and PHP 4.0.4 : FATAL:emalloc() 4) Win NT 4, MS Access2000, IIS4 and PHP 4.0.4: OK, no errors 5) Win NT 4, MS Access2000, Apache 1.3 and PHP 4.0.4: OK, no errors The next days I try to debug the source code to find out what the trigger of emalloc() realy is. Our new Webserver should be a Win2000 Server with Apache and PHP. Therefore we need to know where the emalloc() error comes from. If you want know our results of debugging please send me an email to [EMAIL PROTECTED] Previous Comments: --- [2001-04-16 22:54:23] [EMAIL PROTECTED] Can someone with access to Windows2000 please test this out and either confirm or deny this report? User reports this won't happen under Win98SE and that is currently all I have access to... --- [2001-04-03 07:50:46] [EMAIL PROTECTED] I am sorry but I have no coments on you ... In all versions from 4.0.2 till 4.0.4pl1. Only in win2000 with srvice pack 1 installed. Only, not in 95,98,me,nt and win2000 with out service pack 1. This script ? $a=odbc_connect(oh,,); $r=odbc_prepare($a,SELECT 'a' FROM xx); odbc_execute($r); odbc_free_result($r); odbc_close($a); ? where xx is a table whith 1 integer field and 1 row. and oh is odbc system dsn for ms access file with only one table (xx). I get FATAL: emalloc(): Unable to allocate 2147483599 bytes --- [2001-04-01 20:40:00] [EMAIL PROTECTED] A) Unable to reproduce locally on Win98SE, and MSAccess with 4.0.5RC4 B) which version of PHP are you using? Bug report says 4.0.4pl1, but your sample script suggests 4.0.2 - 4.0.1pl1... which is it? --- [2001-03-23 03:32:10] [EMAIL PROTECTED] win2000 sp1 php4.0.2 - 4.0.4pl1 ? $a=odbc_connect(oh,,); $r=odbc_prepare($a,SELECT 'a' FROM xx); odbc_execute($r); odbc_free_result($r); odbc_close($a); ? xx is a table whith 1 integer field and 1 row. I try to select constant literal. (select * from xx works fine!!!) I get FATAL: emalloc(): Unable to allocate 2147483599 bytes !!! all so 2147483599 bytes --- [2001-03-18 00:00:17] [EMAIL PROTECTED] When I query a Query from access with only 2087 rows( each row is 210 bytes size), I get this error: FATAL: emalloc(): Unable to allocate 2147483599 bytes please help! --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9816edit=2 -- 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 #10523 Updated: get_defined_functions inserts a whitespace at the end of each value.
ID: 10523 Updated by: andrei Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Class/Object related PHP Version: 4.0.4pl1 Assigned To: Comments: This has been fixed for 4.0.5. Previous Comments: --- [2001-04-27 06:38:06] [EMAIL PROTECTED] Hi, I spent an hour to understand why this simple code did not work for me: // $functions: an array of the Db specific functions I care of. // they are in form 'connect', 'query' etc... $existing = get_defined_functions(); foreach($functions as $k=$v) { $f = $dbms.$v; printf(%s $fBR, in_array($f, $existing['internal']) ? '+' : '-'); } It did not return me anything at all, although it should. The problem was: get_defined_functions() returns a two dimensional array, in which all the values (functions) are having a (whitespace?) 'ORD(0)' at the end. you can check it with this: $func = get_defined_functions(); echo 'PRE'; foreach($func['internal'] as $k=$v) { printf(ASCII: '%d' tvalue: '%s'n, ord(substr($v, -1)), $v); } echo '/PRE'; // the returns the following: ASCII: '0' value: 'zend_version' ASCII: '0' value: 'func_num_args' ASCII: '0' value: 'func_get_arg' and so on... I believe that's a bug, no? Maxim Maletsky, [EMAIL PROTECTED] PHPBeginner.com --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10523edit=2 -- 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 #10524: register_shutdown_function request
From: [EMAIL PROTECTED] Operating system: Linux 2.2.19 PHP version: 4.0 Latest CVS (27/04/2001) PHP Bug Type: Feature/Change Request Bug description: register_shutdown_function request It would be helpful if when a script is aborted with CTRL-c while running on the console that PHP would still call the function named in register_shutdown_function instead of just completely stopping. One possible extension could be that the first time CTRL-c is received, jump to the shutdown function and if a second is received abort immediately. I'm not sure if this request is possible, but it certainly would be helpful. -- Edit Bug report at: http://bugs.php.net/?id=10524edit=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 #9872 Updated: Couldn't access all file via gz* functions
ID: 9872 Updated by: sr Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Zlib Related PHP Version: 4.0.4pl1 Assigned To: Comments: Hmm, it really could be a bug in zlib 1.1.2, they fixed some gz...-related bugs with 1.1.3. If possible, try to install 1.1.3 on your box and if it works, please close this bug report. Do you use repeating gzopen($this-file, ab9) calls to write to this file? Maybe it helps if you change it, so that you write the file at once und use only one gzopen($this-file, wb9) call. Appending to gz-files is like concatenating .gz-files which doesn't work very well (and the compression is even worse if you append only small pieces). Previous Comments: --- [2001-04-26 07:58:38] [EMAIL PROTECTED] I have php 4.0.4pl1 under Apache. My zlib is version 1.1.2. I've had problems accessing gz compressed file : This happens in the middle of a file : 'gzeof' don't catch any EOF, but 'gzgetc' returns false as it was the end of the file. Same for 'gzread' which acts exactly as if it had encountered an EOF. I open the compressed file for writing, and write with the lines (and only these one): $zp = gzopen($this-file, ab9); gzwrite($zp, strlen($string) . chr(0) . $string . chr(0) . 0 . chr(0) , strlen($string) + strlen(strlen($string)) + 4); I open the compressed file for reading, and read with the lines (and only these ones): $zp = gzopen($this-file, rb); $char = gzgetc($zp); $string = gzread($zp, $SizeOfString); This simple script can't read all the file : // Note : The file is 68 bytes long uncompressed, and 128 compressed (this info has been read with ls -al) $fd = gzopen($file,rb); echo bin2hex(gzread ($fd, 1000)); gzclose($fd); This happens on ext2 file system, and vfat. But doesn't happen under a foreign server (which I don't know the exact configuration, but has only php 3.16 probably running under apache on a linux 2.2.14 (for more info on this server go : http://neosyris.free.fr/testphp.php3)). Their zlib is version 1.1.3. I've gunzipped the file I couldn't read in PHP, and read it without any problems with gz* function by taking of the 9 in the gzopen function. Although it seems it make the same problems with other compression values. I've opened the gunzziped file, and this one contains only normal caracters except the '00' char. (checked this with 'hexdump showbug -c'). my configure line : --prefix=/usr/apps/apache --with-zlib --with-mysql --with-apxs=/usr/apps/apache/bin/apxs --with-config-file-paht=/usr/apps/apache/conf I hope this could help. Last thing : I placed a file that causes problems on http://neosyris.free.fr/showbug.gz All these bugs could come from zlib version 1.1.2, downloading version 1.1.3 could resolve the issues. Finding zlib source isn't always easy, so there is some addresses : www.freshmeat.net ftpsearch.ntnu.org ** An add from Craig about zlib 1.1.3 on WinME *** I can confirm this bug. I have php4.04pl1 on two seperate linux installs as well as a windows ME installation. (All are with Apache 1.3.14). Using the same scripts and data the gzread and gzfile WILL WORK correctly on the linux installs but NOT on the windows install. ie. Only a portion of the gzfile is read into the script. a phpinfo() on all three installs reports a zlib version 1.1.3 It may be that the 1.1.3 zlib was fixed for the linux install, but not the windows ?? ** --- [2001-03-20 10:22:45] [EMAIL PROTECTED] I have php 4.0.4pl1 under Apache. My zlib is version 1.1.2. I've had problems accessing gz compressed file : This happens in the middle of a file : 'gzeof' don't catch any EOF, but 'gzgetc' returns false as it was the end of the file. Same for 'gzread' which acts exactly as if it had encountered an EOF. I open the compressed file for writing, and write with the lines (and only these one): $zp = gzopen($this-file, ab9); gzwrite($zp, strlen($string) . chr(0) . $string . chr(0) . 0 . chr(0) , strlen($string) + strlen(strlen($string)) + 4); I open the compressed file for reading, and read with the lines (and only these ones): $zp = gzopen($this-file, rb); $char = gzgetc($zp); $string = gzread($zp, $SizeOfString); This simple script can't read all the file : // Note : The file is 68 bytes long uncompressed, and 128 compressed (this info has been read with ls -al) $fd = gzopen($file,rb); echo bin2hex(gzread ($fd, 1000)); gzclose($fd); This happens on ext2 file system, and vfat. But doesn't happen under a foreign server (which I don't know the exact configuration, but has only php 3.16 probably running under apache on a linux
Re: [PHP-DEV] function table / hashes
At 01:10 PM 4/27/2001 +0100, Wez Furlong wrote: On 2001-04-27 11:27:55, Andi Gutmans [EMAIL PROTECTED] wrote: At 12:03 AM 4/27/2001 -0400, David Croft wrote: Thank you Andi and Andrei. I have noticed that object method callbacks are consistently faster than global function callbacks, and was wondering why: Perhaps because the method only needs to be found in the hash for the object? It shouldn't really make a difference because it's a hash table. Andi -- 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 #10525: Session problem with passing array of objects (related to no 8676 and no 9470)
From: [EMAIL PROTECTED] Operating system: Windows 2000 (NT 5) SP1 PHP version: 4.0.4pl1 PHP Bug Type: *Session related Bug description: Session problem with passing array of objects (related to no 8676 and no 9470) I'd a problem of lost informations between two parses of PHP. In the first parse, I'd a clean session which looks like this : -- data_ticker|a:2:{i:0;O:16:newslist_indices:7:{s:5:TITLE;s:9:ACCOR STK;s:4:LAST;s:5:46.88;s:4:CHGT;s:4:1.39;s:4:PRCT;s:4:3.06;s:8:EXCHANGE;s:10:SBF ;s:3:URL;s:60:http://www.cityquote.com/bmp/data_details.php?index_id=43232;s:11:PUBLISHDATE;s:12:26/04/2001 ;}i:1;O:16:newslist_indices:7:{s:5:TITLE;s:15:AIR LIQUIDE STK;s:4:LAST;s:5:162.3;s:4:CHGT;s:4:-0.4;s:4:PRCT;s:5:-0.25;s:8:EXCHANGE;s:10:SBF ;s:3:URL;s:60:http://www.cityquote.com/bmp/data_details.php?index_id=43233;s:11:PUBLISHDATE;s:12:26/04/2001 ;}} --- And then after the second parse (after of course a 'session_start()'), the session looks like this : -- data_ticker|a:2:{i:0;O:16:newslist_indices:8:{s:5:TITLE;s:9:ACCOR STK;s:4:LAST;s:5:46.88;s:4:CHGT;s:4:1.39;s:4:PRCT;s:4:3.06;s:8:EXCHANGE;s:10:SBF ;s:3:URL;s:60:http://www.cityquote.com/bmp/data_details.php?index_id=43232;s:11:PUBLISHDATE;s:12:26/04/2001 ;}i:1;O:16:newslist_indices:8:{s:5:TITLE;s:15:AIR LIQUIDE STK;s:4:LAST;s:5:162.3;s:4:CHGT;s:4:-0.4;s:4:PRCT;s:5:-0.25;s:8:EXCHANGE;s:10:SBF ;s:3:URL;s:60:http://www.cityquote.com/bmp/data_details.php?index_id=43233;s:11:PUBLISHDATE;s:12:26/04/2001 ;}} --- The only thing that changes is the number of properties had changed. It was 7 and then 8, thus, with a print_r functions, I've a __PHP_Incomplete_Class Object : Array ( [0] = __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] = newslist_indices [TITLE] = ACCOR STK [LAST] = 46.88 [CHGT] = 1.39 [PRCT] = 3.06 [EXCHANGE] = SBF [URL] = http://www.cityquote.com/bmp/data_details.php?index_id=43232 [PUBLISHDATE] = 26/04/2001 ) [1] = __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] = newslist_indices [TITLE] = AIR LIQUIDE STK [LAST] = 162.3 [CHGT] = -0.4 [PRCT] = -0.25 [EXCHANGE] = SBF [URL] = http://www.cityquote.com/bmp/data_details.php?index_id=43233 [PUBLISHDATE] = 26/04/2001 )) Austin. -- Edit Bug report at: http://bugs.php.net/?id=10525edit=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 4.0 Bug #10450 Updated: Submitting a form to same php file as the form is in, with a query string
ID: 10450 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Reproduceable crash Description: Submitting a form to same php file as the form is in, with a query string Ok I've worked out now, after many hours, that it is actually an IE6beta problem MS BS... Previous Comments: --- [2001-04-23 08:03:50] [EMAIL PROTECTED] refer to http://forums.devshed.com/showthread.php?threadid=13850forumid=5goto=newpost for more detailed explanation and what I've tried. This shows that on linux with 4.03pl1 it seems to work... but it does not on mine (windows millennium, php4.04pl1) --- [2001-04-23 04:28:58] [EMAIL PROTECTED] I have a php4 file called temp.php with the following *exact* contents: ? mysql_connect(localhost, root, Robbo567); if (!isset($frmAction)) { // If data has not been submitted ?htmlhead/headbody form action=temp.php method=post input type=hidden name=frmAction value=submitted input type=submit /body/html ? } else { ?Form has been submitted? } ? When this file is executed, it works perfectly, unless you supply it with a query string (eg temp.php?hello). As soon as a query string is supplied, PHP4 crashes and a 500 error is produced. I have norrowed it down to two workarounds, comment out the mysql_connect line and it works fine, or change the form method to get and it works fine... but as is it should also work fine alas it does not!! --- [2001-04-23 03:30:20] [EMAIL PROTECTED] I have a single file that does both displaying a form if nothing has been submitted, or process data if data has been submitted. When the file is called with a query string (eg, file.php?hello) the form is displayed properly (as it should be), but as soon as I hit the submit button after completing the form, PHP crashes and I get an error 500 (internal server error). If I remove the query string, everything works fine (but I need the query string for a seperate function). This only happens when the form action is post, it works fine with get. --- Full Bug description available at: http://bugs.php.net/?id=10450 -- 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 #10450 Updated: Submitting a form to same php file as the form is in, with a query string
ID: 10450 Updated by: derick Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Reproduceable crash PHP Version: 4.0.4pl1 Assigned To: Comments: NAPB (Not a PHP Bug) Previous Comments: --- [2001-04-27 10:09:27] [EMAIL PROTECTED] Ok I've worked out now, after many hours, that it is actually an IE6beta problem MS BS... --- [2001-04-23 08:03:50] [EMAIL PROTECTED] refer to http://forums.devshed.com/showthread.php?threadid=13850forumid=5goto=newpost for more detailed explanation and what I've tried. This shows that on linux with 4.03pl1 it seems to work... but it does not on mine (windows millennium, php4.04pl1) --- [2001-04-23 04:28:58] [EMAIL PROTECTED] I have a php4 file called temp.php with the following *exact* contents: ? mysql_connect(localhost, root, Robbo567); if (!isset($frmAction)) { // If data has not been submitted ?htmlhead/headbody form action=temp.php method=post input type=hidden name=frmAction value=submitted input type=submit /body/html ? } else { ?Form has been submitted? } ? When this file is executed, it works perfectly, unless you supply it with a query string (eg temp.php?hello). As soon as a query string is supplied, PHP4 crashes and a 500 error is produced. I have norrowed it down to two workarounds, comment out the mysql_connect line and it works fine, or change the form method to get and it works fine... but as is it should also work fine alas it does not!! --- [2001-04-23 03:30:20] [EMAIL PROTECTED] I have a single file that does both displaying a form if nothing has been submitted, or process data if data has been submitted. When the file is called with a query string (eg, file.php?hello) the form is displayed properly (as it should be), but as soon as I hit the submit button after completing the form, PHP crashes and I get an error 500 (internal server error). If I remove the query string, everything works fine (but I need the query string for a seperate function). This only happens when the form action is post, it works fine with get. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10450edit=2 -- 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 #10526: Possible problem with query
From: [EMAIL PROTECTED] Operating system: Linux 2.4.3 PHP version: 4.0.4pl1 PHP Bug Type: MySQL related Bug description: Possible problem with query Okay, I think I found a bug so please don't chew my head off if I'm wrong. I have written a short script to convert an excel spreadsheet into MySQL. Text format of course. I try to create a table using these lines: $query = CREATE TABLE test3 (Sales_Number varchar(255), Sales_Name varchar(255), Location varchar(255), Amount varchar(255)); $result = mysql_query ($query); It creates the table, but it stops the script with this error message: Query was empty I have never seen this error message before, and I don't think the query is empty because it does create the table... If you want me to email you the script for further analysis, please let me know. Matthew Grigajtis -- Edit Bug report at: http://bugs.php.net/?id=10526edit=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] Re: [PHP-CVS] cvs: php4 /ext/rtfm rtfm.c
once again i did a [reply] where i wanted to do a [reply all] (i don't like the way lists.php.net sets Reply-To: headers) Zeev Suraski wrote: Guys, Aren't we getting just a tad bit carried away with this module? A couple of points: - It implements something that doesn't make too much sense to put in a language (running PHP to get help about a PHP function is, well, not quite the logical way to do it). thats why i made the URLs for Manual and FAQ customizable so that rtfm() can give you the prefered manual and faq links for a local installation - If for some odd reason you do feel it should be implemented in a function, it can be implemented in a couple of lines of PHP code, and gains nothing from being written in C not unless installation of PEAR is mandatory - If for some odd reason we do end up thinking it should be written in C, this tiny function surely doesn't belong in its own module, but in basic_functions.c basic_functions.c and ext/standard are a big pile of mess already and i definetly do not want to add anything to it at this point, especially not stuff marked as experimental (if anything, i would add ctype to it) some reasons for making up extensions for new things - en/disable configure options are there by default - EXPERIMENTAL marking - can easyly be removed ;) all this has been created almost four weeks ago (based on an idea by Peter), but it got lost somewehre for some time. the beginning of this month would have been a far better chance to commit this code :) after all i think this piece of code doesn't harm, doesn't break anything and might be usefull every once in a while for the a-ha effect if you all think it should be removed, than thats ok for me (somehow), but i won't be the one to do so, and when it happens it should be removed from php4/ext and phpdoc at the same time with a sensible announcement or commit message and not just 'without comment' (well, i might trade it in for gamma_tag_correct() from PHP3 ; ) PS: sebastian was right with his request of making this a 'how to extend' extension IMHO, and it helped me to find some quirks in ext_skel, so it isn't all useless after all -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 -- 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 #10527: Declare variables as constants
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: Declare variables as constants PHP 4 doesn't seem to have the capability to define variables of all types as being constants. An example of this could be: $stuff = (const)array('1','2'); or $stuff = const($stuff); An error would be generated if the script later tried to: $stuff = array('3','2'); This is *not* the same as CONSTANTS like TRUE and FALSE. This would be extremely useful with sessions, so other programmers don't clobber important session variables that shouldn't change. -- Edit Bug report at: http://bugs.php.net/?id=10527edit=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] Re: [PHP-CVS] cvs: php4 /ext/rtfm rtfm.c
At 19:33 27/4/2001, Hartmut Holzgraefe wrote: - It implements something that doesn't make too much sense to put in a language (running PHP to get help about a PHP function is, well, not quite the logical way to do it). thats why i made the URLs for Manual and FAQ customizable so that rtfm() can give you the prefered manual and faq links for a local installation How is that related? - If for some odd reason you do feel it should be implemented in a function, it can be implemented in a couple of lines of PHP code, and gains nothing from being written in C not unless installation of PEAR is mandatory So you considered rtfm() to be mission critical? :) Zeev -- 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 #8436 Updated: functions exec() and system() does not work properly (?)
ID: 8436 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Assigned Status: Closed Bug Type: Program Execution PHP Version: 4.0.4 Assigned To: derick Comments: fixed in cvs, wait for 4.0.6 Previous Comments: --- [2001-02-25 10:54:04] [EMAIL PROTECTED] Working on it --- [2000-12-27 08:54:38] [EMAIL PROTECTED] I've found problems with executing this script: ? exec(pkzip vv.zip aaa.dbf); ? (pkzip - dos zip version) In Netscape 4.7. after first execute of it I get information: Unable fork [pkzip vv.zip aaa.dbf] All next executes probably cause suspending Apache. In PHP3 there was no such problems. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8436edit=2 -- 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 #4761 Updated: exec, system all give an error on a fork...
ID: 4761 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Assigned Status: Closed Bug Type: *General Issues PHP Version: 4.0.0 Release Assigned To: derick Comments: fixed in cvs, wait for 4.0.6 Previous Comments: --- [2000-07-31 15:59:47] [EMAIL PROTECTED] just duped to other bugs, appears on w98,win2k,winnt with IIS4 and IIS5 (maybe Xitami too)... --- [2000-07-31 15:51:32] [EMAIL PROTECTED] it´s five bugs now... --- [2000-07-30 08:45:55] [EMAIL PROTECTED] I cannot get ISAPI filter to install in IIS on Win2k Pro. When I install the filter and restart iis, the internet service manager hangs. However, there are 4 separate bugs reports and at least two messages posted to php-win confirming this behavior. --- [2000-06-10 19:28:01] [EMAIL PROTECTED] This is not a crash --- [2000-06-01 18:33:47] [EMAIL PROTECTED] script language=php # for linux #$imageRoot = /home/httpd/html/mrsid/mrsid_images/sample; #$binRoot = /home/httpd/html/mrsid/bin; #exec($binRoot/mrsid_retrieve -quiet -i $file -o d:/temp/out.jpg -icon); # for windows $imageRoot = d:/inetpub/wwwroot/sid/sample; $binRoot = d:/inetpub/wwwroot/sid/bin; $file = $imageRoot/aerial.sid; # exec-ing any command fails with 'could not fork' backticks, and system do the same exec($binRoot/mrsid_extract -i $file -o d:/temp/out.jpg -icon); $fp = fopen(d:/temp/out.jpg, rb); Header (Content-Type: image/jpeg); fpassthru($fp); /script --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=4761edit=2 -- 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 #9069 Updated: Unable to fork error when trying to use external program execution.
ID: 9069 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Assigned Status: Closed Bug Type: Program Execution PHP Version: 4.0.4pl1 Assigned To: derick Comments: fixed in cvs, wait for 4.0.6 Previous Comments: --- [2001-02-25 10:54:49] [EMAIL PROTECTED] Working on it --- [2001-02-02 06:59:07] [EMAIL PROTECTED] I use PHP 4.0.4 pl1 on a machine running Windows NT4 Server, with sp 6 and IIS4 When I try to use any of the functions exec(), system() or passthru(), I receive the following error: Warning: Unable to fork [dir /w c:test.txt] in D:Inetpubwwwrootcooldim.comtest.php on line 2. This error was displayed when trying to run the following code: ? passthru(dir /w c:\test.txt); ? I tried a similar script on a Unix machine which worked fine... Help Please! --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9069edit=2 -- 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 #9371 Updated: system() give unable to fork error
ID: 9371 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Assigned Status: Closed Bug Type: Unknown/Other Function PHP Version: 4.0.4pl1 Assigned To: derick Comments: fixed in cvs, wait for 4.0.6 Previous Comments: --- [2001-02-25 10:55:20] [EMAIL PROTECTED] working on it --- [2001-02-21 08:21:05] [EMAIL PROTECTED] I am running an apache server, which hosts my php pages, on win2k. I am trying to use the system command for some PGP encryption stuff but am getting an unable to fork error! For testing I have created the following script: ? system(C:\notepad.exe); ? NOTE: I have copied notepad.exe over to the root directory. I am running PHP 4.0.5. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9371edit=2 -- 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 #9476 Updated: can't use 'system', 'passthru',... from apache. works when direct php.exe
ID: 9476 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Program Execution PHP Version: 4.0.4pl1 Assigned To: Comments: fixed in cvs, wait for 4.0.6 please note that dir isn't a real command try something like passthru(getenv(COMSPEC) . /c dir); Previous Comments: --- [2001-02-27 06:25:27] [EMAIL PROTECTED] php 4.0.4 AND php 4.0.4pl1 apache 1.3.14 w2k both as cgi and as apache module program execution functions don't work. (warning.. can't fork... ) when using direct php.exe to run the file (i.e. phpphp dir.php) works fine where dir.php contains: ?php passthru(dir); ? regards avi ps it would have been more appropriate to return file not found in php 404, and access forbidden in php 403 :) --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9476edit=2 -- 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 #10410 Updated: display warning BUT update database !!
ID: 10410 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: MySQL related PHP Version: 4.0.4pl1 Assigned To: Comments: Previous Comments: --- [2001-04-19 17:14:57] [EMAIL PROTECTED] config --- Apache 1.3.19 as standalone server PHP 4.0.4pl1 for Win32 platform (standard local developpement station for website creation testing) code - CODE $query = insert into createur (cr_nom, cr_prenom, cr_pseudo, cr_age, cr_email, cr_homepage) values (.$nom., .$prenom., .$pseudo., .$age., .$email., .$homepage.); //create the query string if(($result = mysql_query($query))==FALSE) {...} /CODE message Warning: Supplied argument is not a valid MySQL-Link resource in d:ze_ioioapacheapachewwwaddtodatabase.php on line 44 problem Display the message above but still update database ! things tried - - add $connexion in mysql_query($query, $connexion) = result : same problem - print out the string $query before executing it = query is okay - execute query from mysqlmanager utility = no problem reported by mysqlmanager - cut and paste the working mysqlmanager query into source code = problem is still there Please help ! --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10410edit=2 -- 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 #10342 Updated: TSRM.DSP containing LF instead of CR/LF
ID: 10342 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Compile Problem PHP Version: 4.0 Latest CVS (11/04/2001) Assigned To: Comments: cvs will automatically converting LF/CR to just a LF, so it doesn't matter if you're checking in with LF/CR or just LF. on checkout CVS will use the system's setting to convert the LF. Previous Comments: --- [2001-04-16 00:04:04] [EMAIL PROTECTED] There's allready a bug still open for it from last year ( #8480). The annotation to this bug stated that checking out under win32 does automatic line conversion. Under certain circumstances this doesn't seem to be true because when checking out the file its still in unix style. So, MSVC still isn't able to open (and, altough its easy to fix it locally you first have to find the problem ...) The easiest way would probably to check this file in with CL/LF ? Just :set ff=dos and :w ;-) ty Markus --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10342edit=2 -- 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-CVS] cvs: php4 / NEWS /main SAPI.c php.h win95nt.h
Daniel Beulshausen wrote: +- Fix popen() and the exec family under Win32 (Unable to fork issue) Good work, Daniel. -- sebastian bergmann[EMAIL PROTECTED] http://www.sebastian-bergmann.de bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.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] Bug #10270 Updated: PHP 4.05+ Won't Compile on Win32 Coz of Zend Errors
ID: 10270 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Compile Failure PHP Version: 4.0 Latest CVS (23/04/2001) Assigned To: Comments: unable to reproduce. make sure that you use a recent bison 1.27 or 1.28. also make sure that you do a complete new checkout of both cvs systems ( zend cvs and php cvs ). Previous Comments: --- [2001-04-23 17:38:23] [EMAIL PROTECTED] Here is the M$ VC6 (SP5) - Zend Compilation Log (the Failure Responsible) : Configuration: Zend - Win32 Release Compiling... zend.c zend_alloc.c zend_API.c zend_builtin_functions.c zend_compile.c zend_constants.c zend_execute.c zend_execute_API.c zend_extensions.c zend_hash.c zend_highlight.c zend_indent.c zend_ini.c zend_ini_parser.c /usr/share/bison.simple(249) : warning C4027: function declared without formal parameter list /usr/share/bison.simple(432) : warning C4133: 'function' : incompatible types - from 'struct _zval_struct *' to 'struct _znode *' zend_ini_scanner.c zend_ini_scanner.l(56) : error C2065: 'ini_lineno' : undeclared identifier zend_language_parser.c zend_language_scanner.c zend_language_scanner.c(5482) : warning C4273: 'isatty' : inconsistent dll linkage. dllexport assumed. zend_list.c zend_llist.c zend_opcode.c Generating Code... Compiling... zend_operators.c zend_ptr_stack.c zend_sprintf.c zend_stack.c zend_variables.c Generating Code... Error executing cl.exe. Zend.lib - 1 error(s), 3 warning(s) === This is The 2nd time I Submit this bug/misconfig (the 1st time's # is 10270) , Please Fix it up ! --- [2001-04-16 07:01:19] [EMAIL PROTECTED] Works fine for me make sure you have Zend and TSRM directories in right place and are defining PHP_WIN32 and ZEND_WIN32. -James --- [2001-04-10 15:46:49] [EMAIL PROTECTED] PHP 4.05 RC6 Latest CVS of 10/04/2001 Won't Compile on Win32 (W98ENA_SE) by M$ VC6 (SP5) Because of Zend ZendTS - Missing Files / Configuration !! I've got Compilation Logs , so Just ask if Needed ... --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10270edit=2 -- 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 #10255 Updated: Exec(), System or even backtics dont work
ID: 10255 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Unknown/Other Function PHP Version: 4.0.4pl1 Assigned To: Comments: fixed in cvs, please wait for 4.0.6. also note that dir isn't a real command/executable. you'll have to do cmd.exe /c dir or command.com /c dir you can use getenv(COMSPEC) to determine the command interpreter. Previous Comments: --- [2001-04-09 19:35:29] [EMAIL PROTECTED] Exec(), System or even backtics dont work. i've tried everything. ?php $test = system(dir, $return_value); echo $test; echo $return_value; ? i only get 0 as a $return_value here is a copy of my php.ini [PHP] ;;; ; About this file ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overriden using ; the -c argument in command line mode. ; ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; ; Directives are specified using the following syntax: ; directive = value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL ~E_NOTICE), or a quoted string (foo). ; ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; ; foo = ; sets foo to an empty string ; foo = none ; sets foo to an empty string ; foo = none; sets foo to the string 'none' ; ; If you use constants in your value, and these constants belong to a dynamically ; loaded extension (either a PHP extension or a Zend extension), you may only ; use these constants *after* the line that loads the extension. ; ; All the values in the php.ini-dist file correspond to the builtin ; defaults (that is, if no php.ini is used, or if you delete these lines, ; the builtin defaults will be identical). ; Language Options ; engine = On ; Enable the PHP scripting language engine under Apache short_open_tag = On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags= Off ; allow ASP-style % % tags precision = 14 ; number of significant digits displayed in floating point numbers y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering= Off ; Output buffering allows you to send header lines (including cookies) ; even after you send body content, in the price of slowing PHP's ; output layer a bit. ; You can enable output buffering by in runtime by calling the output ; buffering functions, or enable output buffering for all files ; by setting this directive to On. output_handler = ; You can redirect all of the output of your scripts to a function, ; that can be responsible to process or log it. For example, ; if you set the output_handler to ob_gzhandler, than output ; will be transparently compressed for browsers that support gzip or ; deflate encoding. Setting an output handler automatically turns on
[PHP-DEV] Bug #9747 Updated: Warning: Unable to load dynamic library './msql.dll'
ID: 9747 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: MySQL related PHP Version: 4.0.4pl1 Assigned To: Comments: msql != mysql... mysql support is built-in, you don't need any extension for that. Previous Comments: --- [2001-03-14 16:48:58] [EMAIL PROTECTED] Problem with php/mysql configuration. The php page: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head titleUntitled/title /head body ?php echo Hello world; ? /body /html The error message: PHP Warning: Unable to load dynamic library './msql.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0 My php.ini file: [PHP] ;;; ; About this file ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overriden using ; the -c argument in command line mode. ; ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; ; Directives are specified using the following syntax: ; directive=value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL ~E_NOTICE), or a quoted string (foo). ; ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; ; foo=; sets foo to an empty string ; foo=none; sets foo to an empty string ; foo=none ; sets foo to the string 'none' ; ; If you use constants in your value, and these constants belong to a dynamically ; loaded extension (either a PHP extension or a Zend extension), you may only ; use these constants *after* the line that loads the extension. ; ; All the values in the php.ini-dist file correspond to the builtin ; defaults (that is, if no php.ini is used, or if you delete these lines, ; the builtin defaults will be identical). ; Language Options ; engine=On ; Enable the PHP scripting language engine under Apache short_open_tag=On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags=Off ; allow ASP-style % % tags precision=14; number of significant digits displayed in floating point numbers y2k_compliance=Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering=Off; Output buffering allows you to send header lines (including cookies) ; even after you send body content, in the price of slowing PHP's ; output layer a bit. ; You can enable output buffering by in runtime by calling the output ; buffering functions, or enable output buffering for all files ; by setting this directive to On. output_handler=; You can redirect all of the output of your scripts to a function, ; that can be responsible to process or log it. For example, ; if you set the output_handler to ob_gzhandler, than output ; will be transparently compressed for browsers that support gzip or ; deflate encoding. Setting an output handler automatically turns on ; output buffering. implicit_flush=Off ; Implicit flush tells PHP to tell the output layer to flush itself ; automatically after every output block. This is equivalent to ; calling the PHP function flush() after each and every call to print() ; or echo() and each and every HTML block. ; Turning this option on has serious performance implications, and ; is generally recommended for debugging purposes only. allow_call_time_pass_reference=On ; whether to enable the ability to force arguments to be ; passed by reference at function-call time. This method ; is deprecated, and is likely to be unsupported in future ; versions of PHP/Zend. The encouraged method of specifying
[PHP-DEV] Bug #9485 Updated: Missing libsasl.dll
ID: 9485 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: LDAP related PHP Version: 4.0.4pl1 Assigned To: Comments: nope it doesn't Previous Comments: --- [2001-02-27 12:06:08] [EMAIL PROTECTED] PHP4 Win32 binaries distribution contains a dll called php_ldap.dll, but it needs a missing dll called libsasl.dll --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9485edit=2 -- 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 #6553 Updated: Installing PHP4 on IPlanet 4.x on Win32
ID: 6553 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Analyzed Status: Closed Bug Type: Documentation problem PHP Version: 4.0.2 Assigned To: Comments: install instructions are now in install.txt Previous Comments: --- [2000-11-17 11:25:57] [EMAIL PROTECTED] -- Chaning state --- [2000-11-17 11:25:36] [EMAIL PROTECTED] There are instrunctions on how to install cgi modules here http://docs.iplanet.com/docs/manuals/enterprise/41/pg/1-intro.htm#13286 use these to install PHP. I will add docus to the manual if I get a chance later tonight. --- [2000-11-01 09:36:25] [EMAIL PROTECTED] reclassified --- [2000-09-05 10:36:29] [EMAIL PROTECTED] Trying to find documentation on installing PHP4 on IPlanet 4.X. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6553edit=2 -- 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 #8799 Updated: snmp.dll displays error message on all generated pages
ID: 8799 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Analyzed Status: Closed Bug Type: Documentation problem PHP Version: 4.0.4pl1 Assigned To: Comments: install.txt was updated accordingly. Previous Comments: --- [2001-01-23 17:00:25] [EMAIL PROTECTED] changing status --- [2001-01-19 12:52:44] [EMAIL PROTECTED] user feedback: -- yup that fixed it. is that path a compile time option?? -- I'm not familiar with compilation of the SNMP extension, but I think so. anyway, this note (about the required path) can be found in the readme.first file contained in the distro from php4win.de. I haven't found it in the 'official' release, and it should be there, so I'm reclassifying to 'docuprob'. --- [2001-01-19 11:52:24] [EMAIL PROTECTED] try moving the mibs directory to %DRIVE%:/usr/mibs (%DRIVE% being the drive where PHP is installed), and report back, please. --- [2001-01-19 05:44:45] [EMAIL PROTECTED] Windows NT 4.0 SP6a IIS 4.0 php 4.0.4pl1 Win32 binary distribution packaged as zip, from http://www.php.net/downloads.php using PHP.INI-DIST with two extensions enabled mssql.dll and snmp.dll SNMP appears to work however this appears on the bottom of every php generated page, even when no snmp functions are called. -8-- Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) -8-- ---[php.ini]- [PHP] ;;; ; About this file ; ;;; ; ; This is the 'optimized', PHP 4-style version of the php.ini-dist file. ; For general information about the php.ini file, please consult the php.ini-dist ; file, included in your PHP distribution. ; ; This file is different from the php.ini-dist file in the fact that it features ; different values for several directives, in order to improve performance, while ; possibly breaking compatibility with the standard out-of-the-box behavior of ; PHP 3. Please make sure you read what's different, and modify your scripts ; accordingly, if you decide to use this file instead. ; ; - allow_call_time_pass_reference = Off ; It's not possible to decide to force a variable to be passed by reference ; when calling a function. The PHP 4 style to do this is by making the ; function require the relevant argument by reference. ; - register_globals = Off ; Global variables are no longer registered for input data (POST, GET, cookies, ; environment and other server variables). Instead of using $foo, you must use ; $HTTP_POST_VARS[foo], $HTTP_GET_VARS[foo], $HTTP_COOKIE_VARS[foo], ; $HTTP_ENV_VARS[foo] or $HTTP_SERVER_VARS[foo], depending on which kind ; of input source you're expecting 'foo' to come from. ; - register_argc_argv = Off ; Disables registration of the somewhat redundant $argv and $argc global ; variables. ; - magic_quotes_gpc = Off ; Input data is no longer escaped with slashes so that it can be sent into ; SQL databases without further manipulation. Instead, you should use the ; function addslashes() on each input element you wish to send to a database. ; - variables_order = GPCS ; The environment variables are not hashed into the $HTTP_ENV_VARS[]. To access ; environment variables, you can use getenv() instead. ; Language Options ; engine = On ; Enable the PHP scripting language engine under Apache short_open_tag = On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags= Off ; allow ASP-style % % tags precision = 14 ; number of significant digits displayed in floating point numbers y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering= Off ; Output buffering allows you to send header lines (including cookies) ; even after you send body content, in the price of slowing PHP's ; output layer a bit. ; You can enable output buffering by in runtime by calling the output ; buffering functions, or enable output buffering
[PHP-DEV] multiple php.ini
Netscape iPlanet server 4.0 SP5, Solaris 2.6 Is it possible to have multiple virtual servers, all being controlled by a different php.ini file but the same php.ini NSAPI module binary. Thanks, Mark -- 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] Troubles with DL'ed module
I'm having strange problems with a new DL module I'm trying to write. The most common problem is PHP will coredump after my module has executed in the module cleanup routines (the Zend routines, not my module routines). For instance it will coredump on cleaning up the 10th constant defined by my module. It cores at line 643 of zend_hash.c (the pefree line). Looking in the debugger, the address looks valid, but free doesn't like it. NOTE: The constants are defined with CONST_CS | CONST_PERSISTENT, but taking the Persistent out has no effect (the persistent flag is still set in the struct). If I remove all my constants, or make other alterations it may core in other but related places inside the cleanup. I'm doing most of this on Solaris 2.6 (sparc) with the Workshop compiler (Forte 6.1), but it seems to work ok on Linux and gcc. I'm not to the point of calling this a Zend bug and opening a bug report, but I'm hoping to get a few more pointers of how to proceed. I haven't tried compiling the module yet directly into PHP. I'm rechecking my compile flags, for example I added -KPIC to the compile but that didn't help. BTW, the base PHP I'm building against is 4.0.4p2. Any help would be greatly appreciated... Brian -- 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 #10528: I have been unable to find any documentation on the SAPI interface.
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.4pl1 PHP Bug Type: Documentation problem Bug description: I have been unable to find any documentation on the SAPI interface. I need to incorporate a PHP engine into a program which is very similar to a web server. I am thoroughly familiar with the documentation and I have written normal extensions to PHP to call functions in a library. No problem. Have I overlooked the SAPI docs? Is there a simple example? If not I will have to hack away at the Apache SAPI but I'd rather have a route map! Thanks. -- Edit Bug report at: http://bugs.php.net/?id=10528edit=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 #10529: for() error
From: [EMAIL PROTECTED] Operating system: Windows / Linux PHP version: 4.0.4pl1 PHP Bug Type: Unknown/Other Function Bug description: for() error Trying to make a script that showed the letters from A to Z using the following code: for ($i = 'A'; $i = 'Z'; $i++) { echo $ibr; } I saw that the script outputted the first letters (A-Z) but then it started to display AA, AB, AC [...] YZ. Replacing the 'Z' above to 'Y' (or any other letter between B and Y) makes the script show correctly the letters from A to that letter. Replacing letters to lowercase and/or single quotation marks to double causes the same error. This happened both in PHP 4.0.4pl1 under Windows and in PHP 4.0.1pl1 under Linux. -- Edit Bug report at: http://bugs.php.net/?id=10529edit=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 #10529 Updated: for() error
ID: 10529 Updated by: cnewbill Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Unknown/Other Function PHP Version: 4.0.4pl1 Assigned To: Comments: I'm not even sure that is supposed to work like that. Guys? Why don't you use this instead? for ($i = ord('A'); $i = ord('Z'); $i++) { echo chr($i).br; } Previous Comments: --- [2001-04-27 15:06:25] [EMAIL PROTECTED] Trying to make a script that showed the letters from A to Z using the following code: for ($i = 'A'; $i = 'Z'; $i++) { echo $ibr; } I saw that the script outputted the first letters (A-Z) but then it started to display AA, AB, AC [...] YZ. Replacing the 'Z' above to 'Y' (or any other letter between B and Y) makes the script show correctly the letters from A to that letter. Replacing letters to lowercase and/or single quotation marks to double causes the same error. This happened both in PHP 4.0.4pl1 under Windows and in PHP 4.0.1pl1 under Linux. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10529edit=2 -- 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 #10229 Updated: buffer error in fread
ID: 10229 Updated by: cnewbill Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Filesystem function related PHP Version: 4.0.3pl1 Assigned To: Comments: I assume this is a dead issue. If not reopen. -Chris Previous Comments: --- [2001-04-08 05:04:10] [EMAIL PROTECTED] I have only seen php code once, and I was't able to reproduce it. I suppose it was a case where php code was stored in a variable (for online editing or something). This is only a guess, as it's not my code that I see, but code from someone else on the same server. --- [2001-04-07 20:51:58] [EMAIL PROTECTED] I ran it through a couple hundred times and absolutely no PHP code whatsoever. The only problem I see here is $content is never cleaned up properly and contains BOTH of the fread()s jumbled. Which is very strange. $fp = fopen(http://www.newsplanet.be/;, r); while (!feof($fp)) $content .= fread($fp, 4000); fclose($fp); You would be better off using the above as it works properly. Whomever is handling the fopen-wrappers should probably look at this. -Chris --- [2001-04-07 20:17:03] [EMAIL PROTECTED] I've been testing a bit more and have a clear reproducible codesnippet, it yields the same results in php 4.0.4p1, so I changed the PHP version for this bugreport. ---start--- $fp = fopen(http://www.newsplanet.be/;, r); $content = fread($fp, 10); fclose($fp); $fp = fopen(http://www.google.com/;, r); $content = fread($fp, 10); mail(me@host, topic, $content); ---stop--- In this mail, I see the sourcecode from google.com followed by the rest of the code from newsplanet.be. This does occur in about 1/3 of the mails I try, although I'm unable to see why this isn't always the case. --- [2001-04-07 19:46:47] [EMAIL PROTECTED] Can't reproduce with CVS version. Try upgrading to the newest release 4.04pl1 or grab a CVS snapshot from http://snaps.php.net/ What URL is it that is doing this? Or is it every URL? -Chris --- [2001-04-07 19:25:09] [EMAIL PROTECTED] While running the following code, I got weird results in my mailbox. It seemed like I got the entire buffer of 10 bytes mailed, instead of only the length of the result of the url. And those mails contained php code from another site hosted at the same server. This worries me, and I think this needs a serious checkup. The bug is reproducible :) ---start--- $fp = fopen(http://someurl/;, r); $content = fread($fp, 10); mail(someone@somehost, test, $content); ---stop--- Additional info: './configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-gd' '--with-gettext=/usr' '--enable-safe-mode' '--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/bin' '--with-zlib' '--enable-magic-quotes' '--with-regex=system' '--with-ttf=/usr/lib/libttf.so' '--enable-track-vars' '--enable-xml' '--disable-debug' '--with-db3' '--with-interbase=shared' '--with-pgsql=shared' '--with-ldap' '--with-imap' --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10229edit=2 -- 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 #8671 Updated: Random Warning: Failed opening...
ID: 8671 Updated by: cnewbill Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: *General Issues PHP Version: 4.0.3pl1 Assigned To: Comments: It is advised to upgrade. It is also advised that you do not display warnings and errors on a production site. Append your include()'s and require()'s with an @. Or turn off reporting of warnings in php.ini. -Chris Previous Comments: --- [2001-01-12 05:07:57] [EMAIL PROTECTED] we are running php 4.03pl1 iplanet 4.0. will upgrading to 4.04pl1 help? --- [2001-01-12 05:05:17] [EMAIL PROTECTED] We have a most annoying problem on our site. The Warning: Failed opening... error message appears on a random basis, thus it is not related to rights on the system level. Can anybody advise a workaround on this? I have checked bug reports with similar problems, but none seems to contain the answer. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8671edit=2 -- 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 #10355 Updated: PHP-DEV Mailing list is flaky
ID: 10355 Updated by: cnewbill Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: *General Issues PHP Version: 4.0.4pl1 Assigned To: Comments: Closing since no one has interest. -Chris Previous Comments: --- [2001-04-16 20:35:05] [EMAIL PROTECTED] Okay, this last week my PHP-DEV subscription stopped working. Other people reported it was working fine for them, so I resubscribed. Today it started working again so now I am receiving two copies (I resubscribed under a different address). This is pretty ridiculous and it is obvious something is not right with the list server(s). Wez Furlong reported similar problems with the CVS list about the time I started having problems. Can someone please look into this. Thanks, -Chris --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10355edit=2 -- 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 4.0 Bug #10529 Updated: for() error
ID: 10529 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Unknown/Other Function Description: for() error I agree the code was a bit strange, but I found it weird that it worked with any letter but Z. The suggested code worked. Thanks! Previous Comments: --- [2001-04-27 15:23:07] [EMAIL PROTECTED] I'm not even sure that is supposed to work like that. Guys? Why don't you use this instead? for ($i = ord('A'); $i = ord('Z'); $i++) { echo chr($i).br; } --- [2001-04-27 15:06:25] [EMAIL PROTECTED] Trying to make a script that showed the letters from A to Z using the following code: for ($i = 'A'; $i = 'Z'; $i++) { echo $ibr; } I saw that the script outputted the first letters (A-Z) but then it started to display AA, AB, AC [...] YZ. Replacing the 'Z' above to 'Y' (or any other letter between B and Y) makes the script show correctly the letters from A to that letter. Replacing letters to lowercase and/or single quotation marks to double causes the same error. This happened both in PHP 4.0.4pl1 under Windows and in PHP 4.0.1pl1 under Linux. --- Full Bug description available at: http://bugs.php.net/?id=10529 -- 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] multiple php.ini
No, it isn't; php.ini is global for the entire Web server process. At 21:47 27/4/2001, Mark wrote: Netscape iPlanet server 4.0 SP5, Solaris 2.6 Is it possible to have multiple virtual servers, all being controlled by a different php.ini file but the same php.ini NSAPI module binary. Thanks, Mark -- 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] -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- 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 #10530: shmop.c: shmop_open() with mode a is miscoded
From: [EMAIL PROTECTED] Operating system: Linux 2.4.4-pre5 PHP version: 4.0.4pl1 PHP Bug Type: Unknown/Other Function Bug description: shmop.c: shmop_open() with mode a is miscoded file: php4/ext/shmop/shmop.c The documentation states two modes for shmop_open(). a and c. While c is usefull for creation (and access), a is programmed incorrect and misdocumented (for access and other uses). Currently a is inserting the IPC_EXCL flag for (system) shmget(). This is completly useless, as IPC_EXCL is only operative when IPC_CREAT is set (which isn't). Further a inserts SHM_RDONLY for (system) shmat(). This makes an read-only attach instead of a read-write, which does not need any flags. Proposal: To let the a do what it is intended for remove line 117 and 118 from shmop.c. Furthermore the documentation could be more precise: a does never create a shm segment, while c maybe creates one. Other usefull changes to the code in this respect would brake the interface (as it is _used_ now...). Bye, Robert -- Edit Bug report at: http://bugs.php.net/?id=10530edit=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] multiple php.ini
No, it isn't; php.ini is global for the entire Web server process. Is it possible to have multiple virtual servers, all being controlled by a different php.ini file but the same php.ini NSAPI module binary. Why do you need it? Just add different sections to your apache config (httpd.conf typically) and declare different php options in each one. Works like a wonder. Need an example? mail me. Regards, Soeren Staun-Pedersen - [EMAIL PROTECTED] -- The internet is full, beat it - Me. -- 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] multiple php.ini
Except he's not using Apache... At 23:29 27/4/2001, Soeren Staun-Pedersen wrote: No, it isn't; php.ini is global for the entire Web server process. Is it possible to have multiple virtual servers, all being controlled by a different php.ini file but the same php.ini NSAPI module binary. Why do you need it? Just add different sections to your apache config (httpd.conf typically) and declare different php options in each one. Works like a wonder. Need an example? mail me. Regards, Soeren Staun-Pedersen - [EMAIL PROTECTED] -- The internet is full, beat it - Me. -- 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] -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- 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] multiple php.ini
Except he's not using Apache... Ouch, my apologies. The dangers on not reading the entire thread I guess. :-( Regards, Soeren Staun-Pedersen - [EMAIL PROTECTED] -- The internet is full, beat it - Me. -- 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 #10531: ftp_rawlist dont show list in directory that has spaces in it
From: [EMAIL PROTECTED] Operating system: linux (k2.4.3) PHP version: 4.0.4pl1 PHP Bug Type: *Function Specific Bug description: ftp_rawlist dont show list in directory that has spaces in it i try to get an ftp listing with ftp_rawlist. everything goes well till i want to list within a directory that has spaces in it (like /foo/bar bar/*). the strange thing is : ftp_nlist does work in this situation but i really need to see the file rights and sizes and hidden files so i have to use ftp_rawlist. please take a look in to this and let me know if i am wrong or not clear enough about this bug. thanks in advance, gerard de brieder. -- Edit Bug report at: http://bugs.php.net/?id=10531edit=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] Re: [ZEND-ENGINE] CVS update: TSRM
On Fri, 27 Apr 2001, Daniel Beulshausen wrote: At 19:47 27.04.2001 +0200, Andi Gutmans wrote: Before I get all excited about this have you actually checked it works with the ISAPI module? yep. Yay!!! Well done! now let's get out 4.0.5 so that 4.0.6 hasn't to wait that long too :) PHP 4.0.6-ROCK --Jani -- 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: [ZEND-ENGINE] CVS update: TSRM
On Fri, 27 Apr 2001, Andi Gutmans wrote: Yep. I'd like to RC1 4.0.6 within a few days from releasing 4.0.5. And very very strict NO to any questions about adding new features. --Jani -- 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] intval($resource)
Run into a spot of trouble using Metabase(db wrapper) because of it's use of casting a $var=intval($resource) where OCIFreeCursor fails to function after it has been casted. Guessing that it fails because intval is creating a reference to the resource, in turn OCI does not release the resource because there additional reference exist. I'd like to start working on fixing this, but don't know which behaviour to attack. Does OCI need to be fixed or intval()? Suggestions anyone... -Joe -- 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] Troubles with DL'ed module
Did you compile with debug on or off? Please try without debug in both PHP and your module and let us know if something changes. Also can you try and load it via php.ini (extension=module.so) and not with dl(). Andi At 01:41 PM 4/27/2001 -0500, Brian Foddy wrote: I'm having strange problems with a new DL module I'm trying to write. The most common problem is PHP will coredump after my module has executed in the module cleanup routines (the Zend routines, not my module routines). For instance it will coredump on cleaning up the 10th constant defined by my module. It cores at line 643 of zend_hash.c (the pefree line). Looking in the debugger, the address looks valid, but free doesn't like it. NOTE: The constants are defined with CONST_CS | CONST_PERSISTENT, but taking the Persistent out has no effect (the persistent flag is still set in the struct). If I remove all my constants, or make other alterations it may core in other but related places inside the cleanup. I'm doing most of this on Solaris 2.6 (sparc) with the Workshop compiler (Forte 6.1), but it seems to work ok on Linux and gcc. I'm not to the point of calling this a Zend bug and opening a bug report, but I'm hoping to get a few more pointers of how to proceed. I haven't tried compiling the module yet directly into PHP. I'm rechecking my compile flags, for example I added -KPIC to the compile but that didn't help. BTW, the base PHP I'm building against is 4.0.4p2. Any help would be greatly appreciated... Brian -- 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] intval($resource)
At 06:03 PM 4/27/2001 -0400, Joe Brown wrote: Run into a spot of trouble using Metabase(db wrapper) because of it's use of casting a $var=intval($resource) where OCIFreeCursor fails to function after it has been casted. Guessing that it fails because intval is creating a reference to the resource, in turn OCI does not release the resource because there additional reference exist. I'd like to start working on fixing this, but don't know which behaviour to attack. Does OCI need to be fixed or intval()? Suggestions anyone... Is there a good reason it needs to use intval() on the resource? To be quite honest intval() shouldn't really return a valid value for resources and just by chance it returns the resource id which is probably not a good thing. We can try and look into fixing this problem though. Andi -- 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 #10531 Updated: ftp_rawlist dont show list in directory that has spaces in it
ID: 10531 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: FTP related PHP Version: 4.0.4pl1 Assigned To: Comments: Works for me just fine. Please add a simple script into this bug report which can be used as is to reproduce this. What is the version of the ftp server your connecting to? --Jani Previous Comments: --- [2001-04-27 17:33:41] [EMAIL PROTECTED] i try to get an ftp listing with ftp_rawlist. everything goes well till i want to list within a directory that has spaces in it (like /foo/bar bar/*). the strange thing is : ftp_nlist does work in this situation but i really need to see the file rights and sizes and hidden files so i have to use ftp_rawlist. please take a look in to this and let me know if i am wrong or not clear enough about this bug. thanks in advance, gerard de brieder. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10531edit=2 -- 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 #6426 Updated: system() or exec(): unable to fork
ID: 6426 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: *General Issues PHP Version: 4.0.1pl2 Assigned To: Comments: Fixed in CVS. Wait for PHP 4.0.6. --Jani Previous Comments: --- [2000-09-06 13:10:11] [EMAIL PROTECTED] same as 4761 --- [2000-09-03 06:04:32] [EMAIL PROTECTED] Yes, this doesn't work on win32 until someone gets to fix it. --- [2000-08-29 20:36:08] [EMAIL PROTECTED] Hi, I first got this error on PHP 4.0.1pl2, then on PHP 4.0.2. Something simple like this: $command = mycommand.exe; $output = system(EscapeShellCmd($command)); print (pre$output/pre); Will result in an error like: Warning: Unable to fork [mycommand.exe] in D:docsmyscript.php on line 31 I'm running Windows 2000 Professional with IIS. PHP is running in ISAPI mode. Thanks in advance! --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6426edit=2 -- 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 #6329 Updated: Detecting end tag in a comment.
ID: 6329 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Scripting Engine problem PHP Version: 4.0.1pl2 Assigned To: Comments: Previous Comments: --- [2000-08-24 05:38:47] [EMAIL PROTECTED] this is documented behavior for '//' and '#' style comments, you might consider to use '/*...*/' instead in this case it is done so that for example ? echo $test; // just testing ? works --- [2000-08-24 05:27:32] [EMAIL PROTECTED] I commented this line out with a // but after that ? is interpreted as an end of script remark. Ofcourse this shouldn't happen, to my opinion in a comment nothing should be parsed. ? // onLoad=Javascript:parent.main_view.location='? echo $base_url . $search_page; ?'; ? the output will be: '; ? But if I run: ? /* onLoad=Javascript:parent.main_view.location='? echo $base_url . $search_page; ?'; */ ? there will be no output. I ran this through PHP in CGI mode. It does not happen to comments within /* */ comment markers. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6329edit=2 -- 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 #6542 Updated: exec() and system() cannot fork
ID: 6542 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: *General Issues PHP Version: 4.0.2 Assigned To: Comments: Fixed in CVS. Wait for PHP 4.0.6 Previous Comments: --- [2000-09-06 13:04:47] [EMAIL PROTECTED] same as 4761 --- [2000-09-04 22:15:04] [EMAIL PROTECTED] Both exec() and system() were working in 4.0.1pl2 but now both fail with the message Warning: Unable to fork [zapdir test_dir1gallery_info] in E:Inetpubwwwrootnimagestordir_testdel_dirlp_test.php on line 222 This occurs with either an executable file (.exe) or with a builtin like the del command that is part of the command interpreter. I was using exec() to execute a directory removing program because php rmdir() does not work properly. Warning: RmDir failed (No such file or directory) in E:Inetpubwwwrootnimagestordir_testdel_dir_test.php on line 201 The directory does exist no matter what the error message says. Now nothing works for removing directories. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6542edit=2 -- 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 #6568 Updated: phpMyAdmin 2.1.0/2.1.0.1 No Database Selected
ID: 6568 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Bogus Bug Type: MySQL related PHP Version: 4.0.2 Assigned To: Comments: Previous Comments: --- [2000-09-06 02:10:06] [EMAIL PROTECTED] Recently upgraded to PHP 4.0.2 and got these weird messages from both phpMyAdmin 2.10 and phpMyAdmin 2.1.0.1 from Benjamin Gandon. MySQL version is Ver 9.38 Distrib 3.22.32. BTW, everything works fine with PHP 4.0.1pl2 using the stock ini from the dist file. The left frame of the phpMyAdmin main page shows correctly the existing databases on the server and expands correctly showing the associated tables for each database. However, when clicking on an existing database, it sends a No tables found in database. message with all the correct forms on the page. Also, when clicking on an exiting table underneath an expanded database name it gives a MySQL said: No Database Selected message. Manually typing use mysql; and it says Your SQL-query has been executed successfully and again click on the the mysql database., but always get the same No tables found in database. message. List of modules compiled with apache/PHP 4.01/MySQL: mod_ssl/OpenSSL, imap, XML, ftp, bcmath, mhash, mcrypt, gd1.3, db3 and ldap. Placing the cursor mouse on the left frame with the plus sign and mysql (+ mysql), gives me the URL/query string http://localhost/db_details.php?server=1db=mysql Placed some echo statements on the db_details.php to echo the $db variable like: echo database is ; echo $db nbr; if (isset($db)) { echo (db var has no value, isset is false nbr); } and got this : database is No tables found in database. Checked if isset($db) and it has a blank string as a value. When clicking on an existing table, this URL/query string is used: http://localhost/tbl_properties.php?server=1db=mysqltable=user Placed some echo statements on tbl_properties.php like: echo database is ; echo $db nbr; $mysqlerr = mysql_error(); echo (Last MySQL error is $mysqlerr nbr); Result is: database is Last MySQL error is Error MySQL said: No Database Selected Back Seems like the $db value is not being passed from the left.php script to the db_datails.php somewhere in this vicinity beginning with line 289 of left.php ... (still checking): div ID=el?php echo $j;?Parent CLASS=parent a class=item HREF=db_details.php?server=?php echo $server;?db=?php echo $db;? onClick=expandIt('el?php echo $j;?'); return false; img NAME=imEx SRC=images/plus.gif BORDER=0 ALT=+ width=9 height=9 ID=el?php echo $j;?Img/a a class=item HREF=db_details.php?server=?php echo $server;?db=?php echo $db;? onClick=expandIt('el?php echo $j;?'); font color=black class=heada Wish there is some way to step through these scriptsand inspect the variables as one goes though php and html code. Thans, this maybe a phpMyAdmin and not a PHP 4.02 bug at all. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6568edit=2 -- 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 #6569 Updated: phpMyAdmin 2.1.0/2.1.0.1 No Database Selected
ID: 6569 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Bogus Bug Type: MySQL related PHP Version: 4.0.2 Assigned To: Comments: Previous Comments: --- [2000-09-06 02:11:11] [EMAIL PROTECTED] Recently upgraded to PHP 4.0.2 and got these weird messages from both phpMyAdmin 2.10 and phpMyAdmin 2.1.0.1 from Benjamin Gandon. MySQL version is Ver 9.38 Distrib 3.22.32. BTW, everything works fine with PHP 4.0.1pl2 using the stock ini from the dist file. The left frame of the phpMyAdmin main page shows correctly the existing databases on the server and expands correctly showing the associated tables for each database. However, when clicking on an existing database, it sends a No tables found in database. message with all the correct forms on the page. Also, when clicking on an exiting table underneath an expanded database name it gives a MySQL said: No Database Selected message. Manually typing use mysql; and it says Your SQL-query has been executed successfully and again click on the the mysql database., but always get the same No tables found in database. message. List of modules compiled with apache/PHP 4.01/MySQL: mod_ssl/OpenSSL, imap, XML, ftp, bcmath, mhash, mcrypt, gd1.3, db3 and ldap. Placing the cursor mouse on the left frame with the plus sign and mysql (+ mysql), gives me the URL/query string http://localhost/db_details.php?server=1db=mysql Placed some echo statements on the db_details.php to echo the $db variable like: echo database is ; echo $db nbr; if (isset($db)) { echo (db var has no value, isset is false nbr); } and got this : database is No tables found in database. Checked if isset($db) and it has a blank string as a value. When clicking on an existing table, this URL/query string is used: http://localhost/tbl_properties.php?server=1db=mysqltable=user Placed some echo statements on tbl_properties.php like: echo database is ; echo $db nbr; $mysqlerr = mysql_error(); echo (Last MySQL error is $mysqlerr nbr); Result is: database is Last MySQL error is Error MySQL said: No Database Selected Back Seems like the $db value is not being passed from the left.php script to the db_datails.php somewhere in this vicinity beginning with line 289 of left.php ... (still checking): div ID=el?php echo $j;?Parent CLASS=parent a class=item HREF=db_details.php?server=?php echo $server;?db=?php echo $db;? onClick=expandIt('el?php echo $j;?'); return false; img NAME=imEx SRC=images/plus.gif BORDER=0 ALT=+ width=9 height=9 ID=el?php echo $j;?Img/a a class=item HREF=db_details.php?server=?php echo $server;?db=?php echo $db;? onClick=expandIt('el?php echo $j;?'); font color=black class=heada Wish there is some way to step through these scriptsand inspect the variables as one goes though php and html code. Thanks, this maybe a phpMyAdmin and not a PHP 4.02 bug at all. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6569edit=2 -- 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 #6865 Updated:
ID: 6865 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: IIS related PHP Version: 4.0.0 Assigned To: Comments: Previous Comments: --- [2000-09-23 20:41:50] [EMAIL PROTECTED] we have been create session and register three variable name of variable is session_user_mail,session_password,session_order_no when user login.we try to destroy the register variable using the PHP script which one write below.but the session was not destroy please correct that code. ?php session_save_path(../temp//);//server path session_start(); session_unregister('$session_user_mail'); session_unregister('$session_password'); session_unregister('$session_order_no'); if(session_destroy()) echo session destroy; ? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6865edit=2 -- 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 #6983 Updated: session_destroy() does not remove session
ID: 6983 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: *Session related PHP Version: 4.0.1pl2 Assigned To: Comments: Previous Comments: --- [2000-10-03 00:10:39] [EMAIL PROTECTED] I cannot seem to log a user out using the following script: session_start(); session_unregister('varname'); session_destroy(); Header(Location: homepageurl); The session file does not get deleted and the user is not prompted for username/password upon returning to the protected page. Ta, Phillip. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6983edit=2 -- 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 #7311 Updated: unable to fork when doing a system call
ID: 7311 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Unknown/Other Function PHP Version: 4.0.3pl1 Assigned To: Comments: Solaris? Or windows? As this was marked as duplicate for #4761..that one is fixed in CVS. --Jani Previous Comments: --- [2001-01-03 11:09:38] [EMAIL PROTECTED] Duplicate of #4761 --- [2000-12-07 18:44:55] [EMAIL PROTECTED] Closed due to no response. --- [2000-11-20 01:08:16] [EMAIL PROTECTED] Can you post your current compiler, compile line, and a copy of the error message you recieved and where you recieved it. -Jason --- [2000-10-18 10:08:09] [EMAIL PROTECTED] Every time php has to launch a system call (either with passthru, exec or system), it gives me unable to fork [system call ...] --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7311edit=2 -- 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 #7343 Updated: php_read() problems : more infos
ID: 7343 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Sockets related PHP Version: 4.0.3pl1 Assigned To: Comments: Previous Comments: --- [2000-10-19 11:25:02] [EMAIL PROTECTED] I think this might help : - I'm using nonblocking sockets - I think the old behavior was okay and I don't see the point of changing it (stop reading after CR/LF/ -- 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 #7432 Updated: fgetc() is not bin-safe on Windows
ID: 7432 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Filesystem function related PHP Version: 4.0.3pl1 Assigned To: Comments: Previous Comments: --- [2000-10-24 09:50:17] [EMAIL PROTECTED] If you read a (binary) file character by character with fgetc() you can't read the whole file because you get the EOF before the end of the file. If you try to read the file further with fgetc() you always get the EOF and the variable you read the character into is not set or empty (I don't know which of these, but I think is empty). This appears in the Windows-version (PWS/isapi-PHP and also Apache/apache-PHP-module) but not in the Linux-version (Apache/apache-PHP-module DSO). --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7432edit=2 -- 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 #7497 Updated: imap_fetchbody function fails with forwarded messages.
ID: 7497 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: IMAP related PHP Version: 4.0.0 Assigned To: Comments: Previous Comments: --- [2000-10-27 20:47:21] [EMAIL PROTECTED] Fw from manual Errata: -- [EMAIL PROTECTED] Investigating and fighting with imap functions I think I've discovered that counting parts for imap_fetchbody function fails with forwarded messages. When I count parts (1, 2, 2.1 etc..) it seems that for a forwarded message insert one part more. For example the part counted as 2.1.2 is the part 2.2 for the imap function. With normal multipart messages do it well, but forwarded messages.Could anyone confirm that I think I dicovered? If is true take care about this class of message. - -- [EMAIL PROTECTED] [EMAIL PROTECTED] is right. With forward messages that have a text/plain (2.1.1) and text/html (2.1.2) subparts of a multipart/alternative part (2.1) the imap_fetchbody function returns nothing for parts 2.1.1 and 2,1,2, but returns the parts when a request is made for 2.1 and 2.2. Is this a bug? -- I am not familiar with IMAP and could not verify this but it seems bugish to me. James --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7497edit=2 -- 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 #7525 Updated: exec() does not work
ID: 7525 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: *General Issues PHP Version: 4.0.3pl1 Assigned To: Comments: Fixed in CVS. Wait for PHP 4.0.6 Previous Comments: --- [2000-11-20 02:09:28] [EMAIL PROTECTED] Same as 4761 - Windows popen problem. This is a known issue, and there is already an initiative to resolve it. --- [2000-10-29 22:57:10] [EMAIL PROTECTED] if I run exec(dir,$foo) in a command-line, ( php.exe foo.php), the array $foo will contain all output of the dir dos command but I access the same foo.php under IIS5 web server, $foo is empty. I installed php using the windows installation prog from your site in CGI mode only thanks in advance for the help. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7525edit=2 -- 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 #7865 Updated: exec command
ID: 7865 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: *General Issues PHP Version: 4.0.3pl1 Assigned To: Comments: Fixed in CVS. Wait for PHP 4.0.6 Previous Comments: --- [2000-11-20 02:10:55] [EMAIL PROTECTED] Same as 4761 - Windows popen problem. This is a known issue, and there is already an initiative to resolve it. -Jason --- [2000-11-17 11:44:58] [EMAIL PROTECTED] Cannot exec programs exec, system, shell_exec doesn't do nothing --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7865edit=2 -- 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 #8004 Updated: Failure to create a valid PHP module on Mac OS X Public Beta
ID: 8004 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Compile Failure PHP Version: 4.0.3pl1 Assigned To: Comments: Fixed. Previous Comments: --- [2000-11-29 04:48:25] [EMAIL PROTECTED] Duplicate of #7872 --- [2000-11-29 04:42:03] [EMAIL PROTECTED] reclassified --- [2000-11-28 02:49:43] [EMAIL PROTECTED] I am currently in charge of evaluating/deploying Mac OS X as a front-end platform for our new PHP based site. However, as has been the case for a while, I cannot get PHP 4 to compile. I had filed a bug report earlier (http://bugs.php.net/ bugs.php?id=4764) which went unfulfilled, I just found out, because when I got written back, my email address of my previous employer was no longer in my possession. I had read something, somewhere (that somewhere escapes me) that had said that the libtool that is included with PHP 4 does not recognize/properly act on the Mac OS X Server / Mac OS X. Is it possible that this tool is now broken on the Mac OS X platform? Reason being I tried yet again to create a DSO for Mac OS X, and had the exact same issue as http://bugs.php.net/bugs.php?id=7872. Now, I figured, hey, maybe if I tried to compile it directly into Apache, and then use --enable-shared=max would help some...and I got this when I started the Apache server. I configured the two pieces as follow: PHP: ./configure --with-apache=../apache-641/apache - -enable-track-vars --enable-inline-optimizations --with- mysql=/usr/local/mysql --without-gd --quiet Apache: ./configure --with-layout=opt-mark --activate- module=src/modules/php4/libphp4.a --enable- module=so --enable-shared=max Once compilation is complete, I try to start the server and receive the following message: [localhost:local/src/apache_1.3.14] root# /opt/apache/ sbin/apachectl start dyld: /opt/apache/sbin/httpd multiple definitions of symbol _ThNormalize /opt/apache/sbin/httpd definition of _ThNormalize /opt/apache/libexec/libphp4.so definition of _ThNormalize /opt/apache/sbin/apachectl start: httpd could not be started Same exact thing happened with the Apache source tree available from Apple at publicsource.apple.com. I noticed the following: [localhost:src/apache-641/apache] root# nm /opt/ apache/sbin/httpd | grep ThNorma 000653b0 T _ThNormalize [localhost:src/apache-641/apache] root# nm /opt/ apache/libexec/libphp4.so | grep ThNorma 000c0d28 T _ThNormalize -- Now, I will say this now as I need this done sooner than later, and I believe there are many Mac OS X / Darwin users who would love to be running PHP 4 but they can't, but I can arrainge for anyone who needs it, access to a stock Mac OS X Public Beta box with developer tools installed and everything. Thank you for your great product, and I await your speedy attention. Mark J. Hershenson [EMAIL PROTECTED] http://green-ant.com/ --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8004edit=2 -- 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 #8077 Updated: Exec, passthru, system bugs for php ISAPI CGI
ID: 8077 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Program Execution PHP Version: 4.0.1pl2 Assigned To: Comments: Fixed in CVS. Wait for PHP 4.0.6 Previous Comments: --- [2001-04-16 06:25:05] [EMAIL PROTECTED] Duplicate of 4761 --- [2000-12-02 09:23:30] [EMAIL PROTECTED] I have been playing with php for quite long, and have many chances answering people question in www.experts-exchange.com But, this is a question that noone can answer yet : When you install PHP4 in Win98 (I install both in Apache for Win and PWS, and some has similar problem in IIS) : file : try.php ? system(dir/w c:\dir.txt); print join(,file(c:\dir.txt); ? The execution of system() runs ok, but the 2'nd statement is never executed (the browser simply hang). But if I do : C:php try.php it runs ok !! When I do exec() or system() or variant of it, PHP always open a new window (DOS) to perform the task, but then it failed to kill that process (or failed to return the handler to web server itself)... If this is a really bug, then Zend must consider this is a serious bug since many people have asked how to delete a file in Win/PWS - NT/IIS simply because they can't do unlink() and using exec() always fail ... Oh ya, you may also notice if() statement : if ($x=1 $myname=alex || $x=2) print $x $myname; it will print 1 1 ?? whereas in Perl (and other prog language) should print 1 alex ... it may cause bug if someone write : function f1() {if (???) return 1; else return a;} function f2() {if (???) return 2; else return b;} function f3() {if (???) return 3; else return c;} if ($x=f1() || $x=f2() || $x=f3()) print function(s) debug value : $x; It will do wrongly ... rgds, Alexander Yanuar Koentjara System Developer www.globalsources.com --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8077edit=2 -- 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 #8259 Updated: LC_MESSAGES not defined
ID: 8259 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Compile Failure PHP Version: 4.0 Latest CVS (14/12/2000) Assigned To: Comments: Previous Comments: --- [2000-12-14 10:57:42] [EMAIL PROTECTED] Actually, I am trying to build php4-latest from snaps.php.net as of php4-200012131745... In ext/standard/string.c, line 63, inside function register_string_constants(), the code that reads #if !PHP_WIN32 REGISTER_LONG_CONSTANT(LC_MESSAGES, LC_MESSAGES, CONST_CS | CONST_PERS ISTENT); # endif should probably be changed to #ifdef LC_MESSAGES REGISTER_LONG_CONSTANT(LC_MESSAGES, LC_MESSAGES, CONST_CS | CONST_PERS ISTENT); #endif like what line 2381 of PHP_FUNCTION(setlocale) in the same file does. For whatever reason, in MacOS X Public Beta, LC_MESSAGES is not defined in locale.h. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8259edit=2 -- 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 #8400 Updated: Problem with exec(), system(), passthru() and backtick operator
ID: 8400 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Program Execution PHP Version: 4.0.4 Assigned To: Comments: Fixed in CVS. Wait for PHP 4.0.6 Previous Comments: --- [2001-01-03 11:10:33] [EMAIL PROTECTED] Duplicate of 4761 --- [2000-12-24 07:01:27] [EMAIL PROTECTED] With the Apache module version of PHP (I use Apache 1.3.14), the binary download (so I didn't compile it myself), I have the problem that all program execution functions (and operator) fail with a warning like: [24-Dec-2000 12:08:46] PHP Warning: Unable to fork [at 12:13:46 D:Winnt4BatchkillTmpDownload.cmd 3a45d93e0e367] in e:/richy.dyndns.org/download/download.php3 on line 139 I haven't as yet tried program execution when running PHP as CGI, but my guess is that it WILL work as it has since long done. For the rest, I'm very happy that finally I have the possibility to run PHP as Apache module on NT! --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8400edit=2 -- 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] SMTP support under UNIX?
Is there a reason why its not possible to use an SMTP server for mail() under UNIX? Just no one has got to it yet I am guessing? -- === Sean Bright [EMAIL PROTECTED] / [EMAIL PROTECTED] / http://www.seanbright.com/ === -- 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 #10041 Updated: Unable to fork
ID: 10041 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Unknown/Other Function PHP Version: 4.0.4pl1 Assigned To: Comments: This is fixed in CVS. Wait for PHP 4.0.6 to be released. Previous Comments: --- [2001-03-28 14:11:39] [EMAIL PROTECTED] This is a known problem --- [2001-03-28 14:08:39] [EMAIL PROTECTED] DESCRIPTION: I write a little script: ?php $rt = exec(dir) ; echo $rt ; ? I run it on Windows NT, using Apache, it says:Unable to fork[dir] in f:/htdocs/Test/execdos.php on line 2 I tried shell_exec, system, and passthru, same problem. I installed PHP4.0.4pl for IIS, and run it again, It works. But several days later, When I execute this script using browser, there are no results shows up and no erro msg. I wrote some echo stmts after that, they showed up. It works when I type: php f:htdocsTestexecdos.php on dos command. I use exec, shell_exec under linux and Apache, they works just as I want. My php.ini in c:Winnt [PHP] ;;; ; About this file ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overriden using ; the -c argument in command line mode. ; ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; ; Directives are specified using the following syntax: ; directive = value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL ~E_NOTICE), or a quoted string (foo). ; ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; ; foo = ; sets foo to an empty string ; foo = none ; sets foo to an empty string ; foo = none; sets foo to the string 'none' ; ; If you use constants in your value, and these constants belong to a dynamically ; loaded extension (either a PHP extension or a Zend extension), you may only ; use these constants *after* the line that loads the extension. ; ; All the values in the php.ini-dist file correspond to the builtin ; defaults (that is, if no php.ini is used, or if you delete these lines, ; the builtin defaults will be identical). ; Language Options ; engine = On ; Enable the PHP scripting language engine under Apache short_open_tag = On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags= Off ; allow ASP-style % % tags precision = 14 ; number of significant digits displayed in floating point numbers y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering= Off ; Output buffering allows you to send header lines (including cookies) ; even after you send body content, in the price of slowing PHP's ; output layer a bit. ; You can enable output buffering by in runtime by calling the output ; buffering functions, or enable output buffering for all files ; by setting this directive to On. output_handler = ; You can redirect all of the output of your scripts to a function, ; that can be responsible to process or log it. For example,
[PHP-DEV] PHP 4.0 Bug #10390 Updated: PHP CGI with AOLServer displays shebang
ID: 10390 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Other web server Description: PHP CGI with AOLServer displays shebang Previous Comments: --- [2001-04-18 21:03:00] [EMAIL PROTECTED] This bug seems related to 9475. When using perl, sh, etc on aolserver as a cgi, the output is normal. However, if I use PHP compiled as a CGI (with #!/path/to/php as the first line), the shebang is displayed as the first line of the response after the headers are sent. Configure line: './configure' '--prefix=/usr/local/rf_php' '--with-config-file-path=/usr/local/rf_php/lib' '--with-exec-dir=/usr/local/rf_php/bin' '--with-imap' '--with-gd=/usr/local' '--with-mysql=/usr/local/mysql' '--with-db' '--enable-discard-path' Ryan Finnie --- Full Bug description available at: http://bugs.php.net/?id=10390 -- 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 #5694 Updated: system(), exec(), passthru() pass the command, but do not output anything
ID: 5694 Updated by: derick Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Unknown/Other Function PHP Version: 4.0.1pl2 Assigned To: Comments: This is fixed in CVS, and will be in 4.0.6 Previous Comments: --- [2000-07-31 15:57:47] [EMAIL PROTECTED] This is a known issue and is currently under investigation. --- [2000-07-20 14:29:30] [EMAIL PROTECTED] PHP 4.0.1pl2 running as CGI under IIS 5/Windows 2000 (the same is valid for IIS 4/Win NT 4) system(), exec(), passthru() do not output any response of the command. (it worked from version 3.0.12 thru 3.0.16) for e.g. intranet applications this feature is pretty important, and it does work for unix platforms. But we have to develop apps for both platforms due to certain conditions and we love PHP4 and would like to fully use it under WIN32 too. Is this an item to be fixed easily? Do we have to stick to 3.0.16? thanx bye Carsten --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=5694edit=2 -- 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 #8039 Updated: build process doesn't use apxs CFLAGS
ID: 8039 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Apache related PHP Version: 4.0.3pl1 Assigned To: Comments: This is fixed. Previous Comments: --- [2000-12-04 08:34:33] [EMAIL PROTECTED] Duplicate of #7211 --- [2000-11-29 18:10:28] [EMAIL PROTECTED] Hi, I have apache compiled with -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 and apxs has this in it's CFLAGS line and also displays it. But when building php4 with apxs it ignores this and it must be compiled as make CFLAGS= else it crashes apache (as expected). Petr Cech --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8039edit=2 -- 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 #8530 Updated: system, exec and friends unable to fork
ID: 8530 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Program Execution PHP Version: 4.0.4 Assigned To: Comments: Fixed in CVS. Wait for 4.0.6 Previous Comments: --- [2001-01-03 11:12:38] [EMAIL PROTECTED] Duplicate of 4761 --- [2001-01-03 11:12:23] [EMAIL PROTECTED] Duplicate of 4761 --- [2001-01-03 09:11:20] [EMAIL PROTECTED] ?php system(dir); ? This causes apache to hang until you kill the request handling process using the task manager; the script then completes and produces the output: Warning: Unable to fork [dir] in i:/cms.wwwroot/test/test.php on line 2 The same effect is evident with exec and popen. The backtick operator causes Apache to GPF. If you use the CGI version, things work as expected. The binaries are those from php4win.de (php4.0.4-win32-20001210). This sounds like a deadlock -- there is that mutex for chdir in the exec/popen code - maybe it's related to that somehow? Or perhaps it's more of an issue with Apache itself. If you need more info, just let me know. --Wez. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8530edit=2 -- 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 #6387 Updated: gettimeofday, microtime
ID: 6387 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Date/time related PHP Version: 4.0.2 Assigned To: Comments: fixed Previous Comments: --- [2001-01-13 20:42:32] [EMAIL PROTECTED] Duplicate of #4968 --- [2000-08-30 08:30:59] [EMAIL PROTECTED] Bug persists in PHP4.0.2 --- [2000-08-27 23:24:53] [EMAIL PROTECTED] Configuration... php-4.0.2-dev-Win32-24-8-2000.zip WinNT4 SP6a HTTP Server: WebSitePro/2.5.4 mySQL: 3.23.22-beta Reference Bug id #4968 Detailed analysis... 1. gettimeofday[usec] rolls over at 2^28 (268435456), 0x1000. 2. gettimeofday[sec] matches the sec part of microtime. 3. microtime usec part doesn't make sense. Step gettimeofday gettimeofday microtime() [sec] [usec] 0967420710 2115388130.59538100 967420710 1967420710 2345639480.61163700 967420710 2967420710 2575936630.63787700 967420710 3967420710 123748180.41981500 967420710 4967420710 355203020.57713500 967420710 5967420710 585849740.6400 967420710 6967420710 818631170.90895600 967420710 7967420710 1050746100.11944100 967420710 8967420710 1282431730.28740700 967420710 9967420710 1524686880.51729200 967420710 10967420710 1763157290.37172700 967420710 11967420710 1993855140.43058200 967420710 12967420711 2226863940.73147500 967420711 13967420711 2457126560.75936400 967420711 149674207113296440.37217300 967420711 15967420711 234904340.54617500 967420711 16967420711 464271580.47022600 967420711 17967420711 699870430.03922000 967420711 18967420711 932766610.33045300 967420711 19967420711 1164112440.46147700 967420711 20967420711 1395071240.55288700 967420711 21967420711 1624218520.46674600 967420711 22967420711 1855226970.56657600 967420711 23967420711 2087922110.83706300 967420711 24967420711 2315527850.59555600 967420711 25967420712 2544101870.46185000 967420712 --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6387edit=2 -- 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 #7075 Updated: Contador no busca los demás registros
ID: 7075 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Bogus Bug Type: MySQL related PHP Version: 4.0.3RC2 Assigned To: Comments: Previous Comments: --- [2000-10-06 19:02:55] [EMAIL PROTECTED] Disculpe-- la versión que utilizo es PHP· ?php for ($n=0; $n=10; $n++){ } $result = mysql_query(SELECT * FROM Empresa where Actividad ='$Actividad' Revisar ='1' ORDER BY Empresa LIMIT $n); if ($row = mysql_fetch_array($result,$n)){ echo tdp align='center'Se han encontrado $n registros relacionados con $Actividad...!/p/td; do { echo (Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Razón Social/Bnbsp;nbsp;nbsp;nbsp;nbsp;:nbsp;nbsp;TD$row-Empresa/TDn); echo(br); echo (Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Dirección/Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;:nbsp;nbsp;TD$row-Direccion/TDn); echo(br); echo (Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Teléfono/Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;:nbsp;nbsp;TD$row-Telefono/TDn); echo(br); echo (Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Email/Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;:nbsp;nbsp;TDA href=mailto:$row-Email$row-Email/A/TDn); echo(br); echo (Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Página Web/Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;:nbsp;nbsp;TDA href=http://$row-Pagina$row-Pagina/A/TDn); echo(br); echo(Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Actividad/Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;:nbsp;nbsp;TD$row-Actividad/TDn); echo(br); echo (Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Ciudad/Bnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;:nbsp;nbsp;TD $row-Ciudad/TDn); echo(hr); }//do while ($row = mysql_fetch_array($result,$n)); }//if while ( list($row_number, $row_array) = each($query_result_array){ echo(A HREF=buscar.php3?Actividad=$ActividadPróximos 10/a/p/td); } ? html div align=centercenter table border=0 cellpadding=0 cellspacing=0 tr tda href = idatos.htmIngresa tu empresa a nuestro directorioa/td td width=100p align=center a href=index.html target=_topimg src=Graficos_aps/portal.gif border=0 width=26 height=30/a/td tda href = tuempresa.htmlHaz click aquí para modificar tus datos/a/td /tr tr td/td td width=100smallp align=center/small smallPrincipal/small/td td/td /tr /table /center/div /html --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7075edit=2 -- 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 #6984 Updated: problems w/ session_destroy() function
ID: 6984 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: *Session related PHP Version: 4.0.2 Assigned To: Comments: fixed Previous Comments: --- [2000-10-03 02:56:52] [EMAIL PROTECTED] this is dup without further information, #5231 reopened --- [2000-10-03 00:19:59] [EMAIL PROTECTED] Categorized bug report under correct type. --- [2000-10-03 00:18:22] [EMAIL PROTECTED] I have the same issue as stated in Bug ID# 6693. Since I could not figure out how to add a comment to that bug report, I've created a new bug report. I'm including a sample script, output of the sample script, listing of temp files created by session functions, and php.ini file. Here we go I use PHP w/PWS 4.0 under Win95. I also installed PHP under NT and ran a demo script via PHP.EXE w/the same results. Under both Win95(OSR2/FAT32) and NT 4.0 (SP6/NTFS), session_destroy() produces a Session object destruction failed message and session files are not removed from the temp directory. Demo script - ?php session_start(); echo Session ID: .session_id(); session_destroy(); echo Session ID: .session_id(); ? Result of script - X-Powered-By: PHP/4.0.2 Set-Cookie: PHPSESSID=a0481b2d0e44fdfbeea095e3c687c018; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-cache, post-check=0, pre-check=0 Pragma: no-cache Content-type: text/html Session ID: a0481b2d0e44fdfbeea095e3c687c018br bWarning/b: Session object destruction failed in bsesstest.php/b on line b4/bbr Session ID: Directory listing of c:tmp - Volume in drive C is MICPII26601 Volume Serial Number is 373A-DD15 Directory of C:TMP 10/02/00 11:59aDIR . 10/02/00 11:59aDIR .. 10/02/00 11:59a 0 list 10/02/00 11:53a 0 sess_7e64bac0ef207f70e44fcba11d7ed47f 10/02/00 11:45a 0 sess_8e835332d0631e306e8d1c4fb714f697 10/02/00 11:58a 0 sess_a0481b2d0e44fdfbeea095e3c687c018 10/02/00 11:55a 0 sess_dfd93ae2bc95274d107758a3b4bcd057 7 File(s) 0 bytes 1,720,855,040 bytes free PHP.INI settings -- [Session] session.save_handler = files ; handler used to store/retrieve data session.save_path = c:tmp; argument passed to save_handler ; in the case of files, this is the ; path where data files are stored session.use_cookies = 1 ; 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= 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime= 1440; 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 --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6984edit=2 -- 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 #7937 Updated: error_**pend_string in phpinfo shows off even when on
ID: 7937 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Bogus Bug Type: PHP options/info functions PHP Version: 4.0 Latest CVS (22/11/2000) Assigned To: Comments: Previous Comments: --- [2000-11-23 05:01:10] [EMAIL PROTECTED] #7227 (why not edit old report??) --- [2000-11-22 21:37:24] [EMAIL PROTECTED] Cosmetic: I turn the error messages red with an opening and closing font tag, but phpinfo always shows error_prepend_string and error_append_string as off. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7937edit=2 -- 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 #8465 Updated: Cannot exec, system, passthru, backticks
ID: 8465 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Program Execution PHP Version: 4.0.4 Assigned To: Comments: This is fixed in CVS. Wait for PHP 4.0.6 to be released. Previous Comments: --- [2001-01-03 11:11:53] [EMAIL PROTECTED] Duplicate of 4761 --- [2000-12-28 18:17:14] [EMAIL PROTECTED] echo is not a command under windows, rather something built into the shell (cmd.exe). Hence the error message is correct - you can't run a command that doesn't exist. You should use something like cmd /c echo hello world. I'll do us both a favour and ignore your other comments --- [2000-12-28 17:27:44] [EMAIL PROTECTED] ?php print `echo hello world`; ? I have tried exec, backticks, system, passthru, and they all do not work. When running the CGI version, there is no message displayed. When running the isapi version, I get the error message Warning: Unable to fork [echo hello world] in c:inetpubwwwroothorus.atlantic.nettest.php on line 3. It seems that this has been going on for a while now. CreateProcess is a very simple Windows API call. If PHP is going to beat ASP, this needs to be resolved. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8465edit=2 -- 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 #9354 Updated: Doesn't support UNC paths
ID: 9354 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Directory function related PHP Version: 4.0.3pl1 Assigned To: Comments: This is fixed in CVS. Wait for PHP 4.0.6 to be released. Previous Comments: --- [2001-02-21 04:21:18] [EMAIL PROTECTED] Duplicate of #6554 --- [2001-02-20 11:32:37] [EMAIL PROTECTED] On Win32, this does not work; $d = dir(//machine_name/share_name); echo Handle: .$d-handle.brn; echo Path: .$d-path.brn; while($entry=$d-read()) { echo $entry.brn; } $d-close(); On Win32, UNC paths are the expected format for networked filesystems, especially for any software running as a service (i.e. webservers) --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9354edit=2 -- 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 #6693 Updated: problems with session_destroy() function
ID: 6693 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: *Session related PHP Version: 4.0.2 Assigned To: Comments: fixed in 4.0.4 Previous Comments: --- [2000-10-03 02:59:45] [EMAIL PROTECTED] this is dup without further information, #5231 reopened --- [2000-09-30 03:00:06] [EMAIL PROTECTED] Does it unlink the session file (aka object)? --- [2000-09-12 18:38:25] [EMAIL PROTECTED] I tried several times to use session_destroy() in Windows NT environment with both IIS4 and Apache but it doesn't work returning the warning message Session object destruction failed (but It works perfectly in Linux environment). Configuration of session environment is: session.auto_start Off session.cache_expire 180 session.cache_limiter nocache session.cookie_domain no value session.cookie_lifetime 0 session.cookie_path / session.entropy_file no value session.entropy_length 0 session.gc_maxlifetime 1440 session.gc_probability 1 session.name PHPSESSID session.referer_check no value session.save_handler files session.save_path C:TEMP session.serialize_handler php session.use_cookies On --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6693edit=2 -- 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 #5987 Updated: PHP crashes when using mktime()
ID: 5987 Updated by: jmoore Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Feedback Bug Type: Scripting Engine problem PHP Version: 4.0.1 Assigned To: Comments: This works fine for me now. Please retest with latest win32 binaries from php4win.de or the 4.0.5 binaries and give feedback. - James Previous Comments: --- [2000-08-08 08:57:48] [EMAIL PROTECTED] this is a dup of 4096 --- [2000-08-07 07:19:36] [EMAIL PROTECTED] checked again in NT with latest CVS - doesn't crash both in release debug mode. Could someone provide a backtrace? --- [2000-08-07 00:17:28] [EMAIL PROTECTED] crashes me too an W2K --- [2000-08-06 23:46:20] [EMAIL PROTECTED] negative timestamp (before 1970 that is) seem to crash windows time functions ... see also #4096 --- [2000-08-06 16:28:34] [EMAIL PROTECTED] I tried the binary-version of PHP 4.0.1pl2 from http://www.php.net and got the same result. Any hints? --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=5987edit=2 -- 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-CVS] cvs: php4 /ext/rtfm rtfm.c
Peter Petermann wrote: this is not for people looking for the manul, this is for people who are to lazy to read manual and ask questions, and if they get the answer rtfm try to use this as function i think adding this function, will make php more newbie more helpers friendly I don't see a point in having a rtfm() function in PHP just to point me to some URL. Besides, I think Hartmut and you should use the source of ext/rtfm as a base to write a tutorial about Extending PHP. The basic API functions could be explained, etc. Just my thoughts, Sebastian -- sebastian bergmann[EMAIL PROTECTED] http://www.sebastian-bergmann.de bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.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] Bug #9012 Updated: PHP don't execute UNC path
ID: 9012 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Scripting Engine problem PHP Version: 4.0.4pl1 Assigned To: Comments: Fixed in CVS. Wait for PHP 4.0.6 to be released. Previous Comments: --- [2001-02-04 12:54:45] [EMAIL PROTECTED] Duplicate of #6554 --- [2001-01-30 16:57:56] [EMAIL PROTECTED] When I try to configure IIS to run PHP use the UNC nomenclature \computer_nemsharearchive.php php returns a error CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: and the program is ? hello world if I execute this program with the path c:inetpupwwwrootprueba.php don't have problem, I did some tests from command line I type c:PHPphp.exe c:inetpupwwwrootprueba.php and i don't have problems but when I Try to do c:php \webntwwwprueba.php don't appear nothing, I think that is aproblem with the kinp of path that I use and PHP don't recognise it I hope you can help? Regards Gaspar --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9012edit=2 -- 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 #7828 Updated: PHP has encountered an Access Violation at 012C1AC3
ID: 7828 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: IIS related PHP Version: 4.0.3pl1 Assigned To: Comments: It's hard to know what might cause these. Try updating to 4.0.5 when it is released. --Jani Previous Comments: --- [2001-04-16 06:20:35] [EMAIL PROTECTED] ANonother duplicate IIS access violation. --- [2000-11-15 07:31:54] [EMAIL PROTECTED] *** This bug report related to BUG #7570 *** Problem: Random errors of the type PHP has encountered an Access Violation at 012C1AC3 where the physical address can change (and for the same error swaps on 2 addresses when refreshing the screen). Sometimes, the PHP simply stops responding (HTML pages still work fine, on PHP pages the browser times out). Refreshing many times like in bug report #7570 does not function: after a random number of refreshes, PHP stops responding as indicated above. Environment: - IIS 5.0 on W2K Server (not Advanced) - MySQL 3.2323 - PHP 4.0.3pl1 as ISAPI module Workaround (well...): - Wait for about 30 minutes and try again - Reboot server (restarting IIS with net stop iisadmin will return an error like Sytem error 1051 occurred.) --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7828edit=2 -- 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 #8678 Updated: microtime() does not work very well
ID: 8678 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Date/time related PHP Version: 4.0.4 Assigned To: Comments: Fixed in CVS. --Jani Previous Comments: --- [2001-01-13 20:43:05] [EMAIL PROTECTED] Duplicate of #4968 --- [2001-01-12 11:52:15] [EMAIL PROTECTED] Under Windows ME microtime() does not work very well. Example output: 979317843.96524 979317843.9754 979317843.98553 979317843.99569 979317843.9 979317843.01011 979317843.0202 979317843.03033 979317843.04045 979317843.05056 979317843.06069 979317843.07079 979317843.08082 979317843.09089 979317843.10126 979317844.10589 979317844.11597 979317844.13162 979317844.14164 979317844.1518 979317844.16193 It is almost as if 2 completely different clocks are used. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8678edit=2 -- 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 #5624 Updated: Can't make sessions work
ID: 5624 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: *Session related PHP Version: 4.0.1pl2 Assigned To: Comments: this should be fixed.. Previous Comments: --- [2000-08-02 09:06:30] [EMAIL PROTECTED] Thanks for the reply. I have also found that 4377 article but I have found some differences (no input vs. error-reporting in my version). Please investigate the problem asap. :) Keep up the good work. David --- [2000-08-02 01:18:53] [EMAIL PROTECTED] it seems, that it´s a dup of 5507, both appearing on ISAPI and .exe --- [2000-08-02 00:50:53] [EMAIL PROTECTED] This is at least a dup of 4377 --- [2000-08-02 00:49:42] [EMAIL PROTECTED] This is possibly a mix of two bugs, one possibly fixed the other one not. If it still doesn´t work, you should regard it as a not-fixed ISAPI-only problem for now. --- [2000-07-16 09:46:18] [EMAIL PROTECTED] Hi! My problem is that I can't make sessions work. I have the following script: ? session_start(); session_register('count'); $count++; echo PYou have been here $count times. Thanks!/P; ? And php returns: Warning: open(/tmp/sess_e1aa51f9a5c92f30bc18b2ae9eb153e4, O_RDWR) failed: m (2) in Unknown on line 0 /tmp is created and read/write/execute/script are all allowed. After 3 times of refreshing the page php reports: Warning: Nesting level too deep - recursive dependency? in Unknown on line 0 And it keeps on reporting this untill I stop the hole IIS service and start it again. I am using the ISAPI module of php. What can be the problem? Please help me if you can reproduce the failure or not and tell me about all the possible solutions. Thanks, David Szilagyi --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=5624edit=2 -- 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 #9094 Updated: Microseconds seem to be untrue values
ID: 9094 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Date/time related PHP Version: 4.0.4pl1 Assigned To: Comments: Fixed in CVS. Wait for PHP 4.0.5. --Jani Previous Comments: --- [2001-02-04 06:36:46] [EMAIL PROTECTED] unfortunately this is a bug for a long time now Duplicate of #4968 --- [2001-02-04 06:33:01] [EMAIL PROTECTED] unfortunately this is a bug for a long time now Duplicate of #4968 --- [2001-02-03 20:24:43] [EMAIL PROTECTED] I wanted to measure script execution time, using microtime(). So I store a value at the beginning of the script, and one near the end, and subtract first from the second value (after converting). And sometimes (i.e. on an irregular basis, maybe every 3rd or 4th try), the result is negative. I mean, my scripts may be fast, but surely not *that* fast :-) Here the relevant snippet: ?php // start marker $mt = explode(' ', microtime() ); $benchmark1 = $mt[1] . substr($mt[0], 1); // some code // ... // end marker $mt2 = explode(' ', microtime() ); $benchmark2 = $mt2[1] . substr($mt2[0], 1); $extime = $benchmark2 - $benchmark1; // this alternative did the same: // $extime = bcsub ($benchmark2, $benchmark1); ? I am using php4.0.4pl1 as an apache module in apache 1.3.14 r2, running on win2k sp1. I just hope it's a bug and not the result of staying up late trying to do some programming ;) cu keep up the good work. PHP is way cool. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9094edit=2 -- 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]