[PHP-DEV] Re: Debugging tool needed for Win32
such a tool was available at http://www.sysinternals.com , but i don't remember the name and i don't know if it is still there. harald Sebastian Bergmann [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... I'm searching for a Win32 tool that shows which process wants to open what files. I used to have a tool like this about two years ago. It was a freeware tool, but I don't remember the name :-( Any ideas/suggestions? I hope this is not too off-topic here, but since I need this for work on the Servlet SAPI it should be okay :-) Thanks, Sebastian -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #13885 Updated: gmdate(r); adds timezone instead of 'GMT'.
ID: 13885 Updated by: jmoore Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Date/time related Operating System: Windows 2000 SP2 PHP Version: 4.0.6 New Comment: Fixed in CVS Previous Comments: [2001-10-31 07:18:06] [EMAIL PROTECTED] Ah, ok. Too early in the morning here. Looks like a Windows-specific issue as your test displays this on my Linux box: Wed, 31 Dec 1969 16:00:01 -0800 Thu, 1 Jan 1970 00:00:01 + [2001-10-31 07:11:04] [EMAIL PROTECTED] print(date(r, 1)); Prints: Thu, 1 Jan 1970 01:00:01 +0100 This is correct, the local timezone is GMT+1. print(gmdate(r,1)); Prints: Thu, 1 Jan 1970 00:00:01 +0100 This is wrong, it outputs the GMT date time, but with the timezone +0100 instead of GMT. Thus equaling a date of Wed, 31 Dec 1969 23:00:01 GMT, which is obviously not 1 second after the start of the unix epoch. [2001-10-31 07:00:49] [EMAIL PROTECTED] I must be missing something here. date('r') is intended to display an RFC822 date string. Section 5.1 of RFC822 clearly states that +0100 is a perfectly valid way to represent the timezone. So how is this function not working as expected? [2001-10-31 06:45:57] [EMAIL PROTECTED] The 'r' format string doesn't work as expected: print(date(r, 1)); Prints: Thu, 1 Jan 1970 01:00:01 +0100 print(gmdate(r,1)); Prints: Thu, 1 Jan 1970 00:00:01 +0100 I think the '+0100' should've been 'GMT'. (Done on a system with GMT+1) Edit this bug report at http://bugs.php.net/?id=13885edit=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] »ú²»¿Éʧ--½ô¼±ÇÀ×¢.info
»ú²»¿Éʧ--½ô¼±ÇÀ×¢.info ×÷ΪÐÅϢʱ´ú×îÃ÷È·±êÖ¾,.INFOµÄ·¢Õ¹¿Õ¼äÎãÓ¹¶à˵£¬Ëü½«³ÉΪÍøÂçÐÅÏ¢·þÎñµÄÊ×Ñ¡ÓòÃû¡£ .INFOΪͨÓö¥¼¶ÓòÃû£¬.INFO´ú±íÒ»°ãµÄÐÅÏ¢·þÎñʹÓá£Ëü×î´óµÄÌصãÊÇÈ«ÇòͨÓÃ,Ò×ÓÚʹÓà £¬ºÜÇ¿µÄʶ±ðÐÔ£¬¿ÉÒÔÌæ´ú.COMµÄͨÓö¥¼¶ÓòÃû£¬·Ç³£ÊÊÓÃÓÚÌṩÐÅÏ¢·þÎñµÄÆóÒµ¡£ http://www.now.net.cn ʱ´´ÍøÂçÕýʽÍƳö.infoÓòÃûÕýʽע²á£¬×¢²áÁ÷³Ìͬ¹ú¼ÊÓòÃû £¨.com/.net/.org£©Ò»Ñù¼òµ¥£¬²¢¿É¿ìËٳɹ¦£¬×¢²á³É¹¦ºóÂíÉÏ¿ÉÒÔʹÓᣠ(1) ËÓÐ×ʸñÉêÇë.infoÓòÃû .infoÊÇΨһûÓÐ×¢²áÏÞÖƵÄ×îйú¼Ê¶¥¼¶ÓòÃû£¬ËùÒÔÈκÎÈ˶¼¿ÉÒÔÉêÇë (2) .infoÓòÃûÓë.ccºÍ.tv .infoÊÇͨÓùú¼Ê¶¥¼¶ÓòÃû£¬ËüÓë.com .net .org ÊôÓÚͬÀàÓòÃû£¬ÓÉICANNͳһ½øÐйÜÀí£» ¶ø. cc,.tvÊǹú¼Ò´úÂë¹ú¼Ê¶¥¼¶ÓòÃû£¬ºÍ.cn .caÊôͬÀàÓòÃû£¬ .cnÕâÑùµÄÓòÃûÊǹéÏà¹ØµÄ ¹ú¼Ò½øÐйÜÀíµÄ£¬Ò»°ãÖ»¶Ô±¾¹ú½øÐÐÏúÊÛ£¬Ö»Óзdz£ÌØÊâµÄ¾ßÓкܸßÉÌÒµ¼ÛÖµµÄÓòÃû²Å¶Ô¹ú¼Ê ÆäËü¹ú¼Ò½øÐÐÏúÊÛ¡£ (3) .infoÓòÃûµÄ×¢²á¼Û¸ñºÍÆÚÏÞÊÇʲô .infoÓòÃûÊÇ420Ôª/Á½Ä꣬¹ú¼ÊÓòÃû¹ÜÀí»ú¹¹¹æ¶¨ÐÂ×¢²á×îÉÙ×¢²á2Äê¡£ (4) ÎÒ¿ÉÒԺܿìµÄʹÓÃ.infoÓòÃûÂð ÎÒÃÇÈ·ÈÏÄú½»¿îºó»áÁ¢¼´ÎªÄúÕýʽע²á£¬²¢ÔÚ24СʱºóÈ«ÇòÉúЧ£¡ (5) ж¥¼¶¹ú¼ÊÓòÃûµÄ×¢²á¹æÔòºÍÒÔÍùµÄ¹ú¼ÊÓòÃû×¢²á¹æÔòÒ»ÑùÂ𣿠´ð£ºÐ¶¥¼¶¹ú¼ÊÓòÃûµÄ×¢²á¹æÔòºÍÒÔÍùÏà±ÈÓкܴóµÄ²»Í¬£¬ÒÔÏ»áÓзÖÀà˵Ã÷£¬ÇëÄúÏêϸ¹Ø×¢¡£ (6)µ½ÄĶù¿ÉÉêÇëµ½.info×îйú¼Ê¶¥¼¶ ´ð£ºwww.now.net.cnʱ´´ÍøÂçÊǹúÄÚ¹ú¼Ê¶¥¼¶ÓòÃû×¢²á»ú¹¹£¬¶ÀÓÐVDNSϵͳÄÜ·½±ãµØ¹ÜÀíÄúµÄ´Î¼¶ÓòÃû£¬½¨Á¢×ÓÍøÕ¾£¬ ÔÚ´Ë×¢²áÓòÃû¼Û¸ñ¿ÕÇ°ÓŻݣ¬ÁíÍâÎÒÃÇÅ䱸¾«Á¼¼¼ÊõÖ§³Ö£¬¿É°éÄúÇáËɲ½ÈëÉÌÎñÖ®Âᣠ»¶ÓÄúÖÂÐÅ [EMAIL PROTECTED] »¶ÓÄú·ÃÎÊ http://www.now.net.cn Ö麣Ì컥¿Æ¼¼ÓÐÏÞ¹«Ë¾ ÁªÏµÈË£ºÇñС½ã¡¡»ÆС½ã ¹«Ë¾µç»°£º 0756--2125583 2125593 2125523 2252872 ¹«Ë¾´«Õæ: 0756--2229669 -- 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 #13914: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip));
From: [EMAIL PROTECTED] Operating system: Windows 2000 SP 2 PHP version: 4.0.6 PHP Bug Type: Output Control Bug description: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip)); There are two examples in PHP MANUAL of ip2long() usage. The first one is based on echo output and the second - on printf() function. These are examples with output: ? $ip = gethostbyname(www.php.net); $out = The following URLs are equivalent:br\n; $out .= http://www.php.net/, http://.$ip./, and http://.ip2long($ip)./br\n; echo $out; ? The output of above is: The following URLs are equivalent: http://www.php.net/, http://208.210.50.161/, and http://-791530847/ I was confused on $ip output (i supposed ip-numbers are unsigned integers and cannot contain negative values like -791530847, echoed above). So, i've tryed to run the second example, wich uses printf() function: ?php $ip = gethostbyname(www.php.net); printf (%u\n, ip2long ($ip)); echo $out; ? The output is: /// 3503436449 /// I've changed code different ways, 've restarted machine, Apache server, but the difference remains. So, i've decided it's a bug either of echo or of ip2long() functions. -- Edit bug report at: http://bugs.php.net/?id=13914edit=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 #13916: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip));
From: [EMAIL PROTECTED] Operating system: Windows 2000 SP 2 PHP version: 4.0.6 PHP Bug Type: Output Control Bug description: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip)); There are two examples in PHP MANUAL of ip2long() usage. The first one is based on echo output and the second - on printf() function. These are examples with output: ? $ip = gethostbyname(www.php.net); $out = The following URLs are equivalent:br\n; $out .= http://www.php.net/, http://.$ip./, and http://.ip2long($ip)./br\n; echo $out; ? The output of above is: The following URLs are equivalent: http://www.php.net/, http://208.210.50.161/, and http://-791530847/ I was confused on $ip output (i supposed ip-numbers are unsigned integers and cannot contain negative values like -791530847, echoed above). So, i've tryed to run the second example, wich uses printf() function: ?php $ip = gethostbyname(www.php.net); printf (%u\n, ip2long ($ip)); echo $out; ? The output is: /// 3503436449 /// I've changed code different ways, 've restarted machine, Apache server, but the difference remains. So, i've decided it's a bug either of echo or of ip2long() functions. -- Edit bug report at: http://bugs.php.net/?id=13916edit=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 #13915: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip));
From: [EMAIL PROTECTED] Operating system: Windows 2000 SP 2 PHP version: 4.0.6 PHP Bug Type: Output Control Bug description: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip)); There are two examples in PHP MANUAL of ip2long() usage. The first one is based on echo output and the second - on printf() function. These are examples with output: ? $ip = gethostbyname(www.php.net); $out = The following URLs are equivalent:br\n; $out .= http://www.php.net/, http://.$ip./, and http://.ip2long($ip)./br\n; echo $out; ? The output of above is: The following URLs are equivalent: http://www.php.net/, http://208.210.50.161/, and http://-791530847/ I was confused on $ip output (i supposed ip-numbers are unsigned integers and cannot contain negative values like -791530847, echoed above). So, i've tryed to run the second example, wich uses printf() function: ?php $ip = gethostbyname(www.php.net); printf (%u\n, ip2long ($ip)); echo $out; ? The output is: /// 3503436449 /// I've changed code different ways, 've restarted machine, Apache server, but the difference remains. So, i've decided it's a bug either of echo or of ip2long() functions. -- Edit bug report at: http://bugs.php.net/?id=13915edit=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 #13917: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip));
From: [EMAIL PROTECTED] Operating system: Windows 2000 SP 2 PHP version: 4.0.6 PHP Bug Type: Network related Bug description: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip)); There are two examples in PHP MANUAL of ip2long() usage. The first one is based on echo output and the second - on printf() function. These are examples with output: ? $ip = gethostbyname(www.php.net); $out = The following URLs are equivalent:br\n; $out .= http://www.php.net/, http://.$ip./, and http://.ip2long($ip)./br\n; echo $out; ? The output of above is: The following URLs are equivalent: http://www.php.net/, http://208.210.50.161/, and http://-791530847/ I was confused on $ip output (i supposed ip-numbers are unsigned integers and cannot contain negative values like -791530847, echoed above). So, i've tryed to run the second example, wich uses printf() function: ?php $ip = gethostbyname(www.php.net); printf (%u\n, ip2long ($ip)); echo $out; ? The output is: /// 3503436449 /// I've changed code different ways, 've restarted machine, Apache server, but the difference remains. So, i've decided it's a bug either of echo or of ip2long() functions. -- Edit bug report at: http://bugs.php.net/?id=13917edit=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 #13915 Updated: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip));
ID: 13915 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Output Control Operating System: Windows 2000 SP 2 PHP Version: 4.0.6 New Comment: Multiple submissions = bogus Previous Comments: [2001-11-03 11:28:10] [EMAIL PROTECTED] There are two examples in PHP MANUAL of ip2long() usage. The first one is based on echo output and the second - on printf() function. These are examples with output: ? $ip = gethostbyname(www.php.net); $out = The following URLs are equivalent:br\n; $out .= http://www.php.net/, http://.$ip./, and http://.ip2long($ip)./br\n; echo $out; ? The output of above is: The following URLs are equivalent: http://www.php.net/, http://208.210.50.161/, and http://-791530847/ I was confused on $ip output (i supposed ip-numbers are unsigned integers and cannot contain negative values like -791530847, echoed above). So, i've tryed to run the second example, wich uses printf() function: ?php $ip = gethostbyname(www.php.net); printf (%u\n, ip2long ($ip)); echo $out; ? The output is: /// 3503436449 /// I've changed code different ways, 've restarted machine, Apache server, but the difference remains. So, i've decided it's a bug either of echo or of ip2long() functions. Edit this bug report at http://bugs.php.net/?id=13915edit=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 #13916 Updated: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip));
ID: 13916 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Output Control Operating System: Windows 2000 SP 2 PHP Version: 4.0.6 New Comment: Multiple submissions = Bogus Previous Comments: [2001-11-03 11:28:11] [EMAIL PROTECTED] There are two examples in PHP MANUAL of ip2long() usage. The first one is based on echo output and the second - on printf() function. These are examples with output: ? $ip = gethostbyname(www.php.net); $out = The following URLs are equivalent:br\n; $out .= http://www.php.net/, http://.$ip./, and http://.ip2long($ip)./br\n; echo $out; ? The output of above is: The following URLs are equivalent: http://www.php.net/, http://208.210.50.161/, and http://-791530847/ I was confused on $ip output (i supposed ip-numbers are unsigned integers and cannot contain negative values like -791530847, echoed above). So, i've tryed to run the second example, wich uses printf() function: ?php $ip = gethostbyname(www.php.net); printf (%u\n, ip2long ($ip)); echo $out; ? The output is: /// 3503436449 /// I've changed code different ways, 've restarted machine, Apache server, but the difference remains. So, i've decided it's a bug either of echo or of ip2long() functions. Edit this bug report at http://bugs.php.net/?id=13916edit=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 #13917 Updated: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip));
ID: 13917 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Network related Operating System: Windows 2000 SP 2 PHP Version: 4.0.6 New Comment: Multiple submissions bogus Previous Comments: [2001-11-03 11:28:46] [EMAIL PROTECTED] There are two examples in PHP MANUAL of ip2long() usage. The first one is based on echo output and the second - on printf() function. These are examples with output: ? $ip = gethostbyname(www.php.net); $out = The following URLs are equivalent:br\n; $out .= http://www.php.net/, http://.$ip./, and http://.ip2long($ip)./br\n; echo $out; ? The output of above is: The following URLs are equivalent: http://www.php.net/, http://208.210.50.161/, and http://-791530847/ I was confused on $ip output (i supposed ip-numbers are unsigned integers and cannot contain negative values like -791530847, echoed above). So, i've tryed to run the second example, wich uses printf() function: ?php $ip = gethostbyname(www.php.net); printf (%u\n, ip2long ($ip)); echo $out; ? The output is: /// 3503436449 /// I've changed code different ways, 've restarted machine, Apache server, but the difference remains. So, i've decided it's a bug either of echo or of ip2long() functions. Edit this bug report at http://bugs.php.net/?id=13917edit=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] Bug #13917 Updated: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip));
Wtf, I thought this has been fixed ? :) - Markus ps: not the bug but multiple submission causes by pressing reload -- 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 3.0 Bug Summary Report
PHP 3.0 Bug Database summary - http://bugs.php.net Num Status Summary (539 total including feature requests) ===[*General Issues]== 4180 Open is_link returns false when target doesnt exist (should return true) 9610 Bogus Dead link 9820 Open File upload with any input tag 10101 Bogus apache + mysqld + php3 == libphp3.so incorrect symbol... 10457 Bogus ALKHOBAR ===[*Install and Config]== 7386 Feedback referenced symbol not found when starting Apache ===[Compile Failure]== 1145 Open Ypu cannot compile with --with-ldap using the Solaris7 bundled ldap-libs/header 1298 Open need to use -taso with Netscape LDAP libs 1461 Open won't compile with Stronghold 2.2 or 2.3 1933 Open Unable to compile PHP3 with Oracle8 support 1997 Open Compilation Problems 2225 Open Compile error in ldap.c 2282 Open Compile failure with Stronghold 2.4.1 2490 Open Perl regular expression functions not available in windows binary 2585 Open Error linking Oracle 7.3.2 libraries on SCO OpenServer 5.0.4 2658 Open error while compiling PHP as apache module 2729 Open Fatal error: Unable to open ??? in - on line 0 2751 Open Storage size of buf isn't known 2823 Open undefined symbol: SQLParamData 2824 Open Inconsistent parameter list declaration for... 2903 Open fails to compile ifx.ec, report a syntax-error 3033 Open Fatal compile error on functions/ldap.c 3185 Open Undefined symbol 3217 Open ld error when compiling as Apache DSO and --with-mysql 3218 Open Can't compile php_ftp.dll 3426 Open make with iodbc failed and I've found the problem 3501 Open Compiling errors with Oracle-Funktions 3528 Open Can't compile php 3.0.14 with Oracle support 3677 Open files not found 3766 Open configure doesn't allow for the Oracle N32 client SDK to be used 3776 Open functions/db.c:107: parse error before '*' 4028 Open wrong directories included for oracle 8.1.6 4217 Open IBM DB2 will not compile. 4233 Open The Interbase module won't compile. 4266 Open Undeclared variables in function/imap.c starting ar line 435 4392 Open Compile failure with GD 1.7, possibly others 4412 Open xml failure 4417 Open Informix specific parse error in functions/ifx.ec 4544 Open Incompatiblility with latest (3.0) version of PDFlib 4899 Open PHP Core Dumps With Apache 1.3.12 7734 Open missing php3_ifx.h ===[Compile Warning]== 3151 Open php.exe compile warnings because of arpa/inet.h 6942 Open php sockets unusable with irix-OS ===[dBase related] 3091 Open dbase_replace_record miscounts number of fields 3429 Open Warning: Unable to open database... 4802 Open php.exe crashes while trying to execute the get_record function ===[DBM/DBA related]== 2890 Open DBM extension on win32 does not valid database identifier error 3371 Open dbmfetch reurns an empty string 3423 Open dbmopen() not thread-safe 3809 Duplicate DBM extension for Win32 PHP3 is malfunctioning and/or has a flaw 3862 Open dbmReplace dbmDelete return inverse value 6720 Open persistent Warning: driver initialization failed on db_open db2 2.7.7 ===[Documentation problem] 11155 Bogus bogus report ===[Dynamic loading related]== 1188 Open Configuration not work 1586 Open In the compiled Win32 package, the php3_ldap doesn't load. 1993 Open Startup failure of liphp3.so 2027 Open Can't dynamicly load any extension dll file 2250 Open nt-service problem 2414 Open php3_vmailmgr.so refuses to load 2862 Open LDAP in Win32 Bin dist is linked to MSVCRTD.DLL 3168 Open cannot start apache 1.3.9 if mysql is compiled in, but can RESTART successfully 3292 Open MySQL module causes DSO to fail. 3321 Open Apache Complaining about undefined symbol: dlst_first 3659 Open mod_php + apache w/mod_so hangs in sched_yield 3680 Open Apache won't start after install php3 3752 Open Apache configtest dumps core with DSO versioning 3781 Open Cannot load /libexec/libphp3.so 3861 Open php as a dyn. mod. configured with IBM db2 support prevents svr startup 9565 Open php3_ldap.dll is compiled as DEBUG ===[Feature/Change Request]=== 2393 Open Can't use parse_url for url validation ===[IMAP related]= 2816 Open
[PHP-DEV] Bug #13918: PHP can't find mysql.sock
From: [EMAIL PROTECTED] Operating system: OS-X PHP version: 4.0.6 PHP Bug Type: MySQL related Bug description: PHP can't find mysql.sock Hi, OS-X stores this in /Private/tmp/mysql.sock - the configure script just needs to search that dir too. Any php script comes up with can't find /tmp/mysql.sock (unsurprisingly). I recompiled and reinstalled with that added in and it works fine now. Thanks, John -- Edit bug report at: http://bugs.php.net/?id=13918edit=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 #13131 Updated: Bad results with fbsql_num_rows
ID: 13131 Updated by: mj Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: FrontBase related Operating System: Sun OS PHP Version: 4.0.6 New Comment: Please try the latest version of PHP from CVS or the latest snapshot from http://snaps.php.net/. There was a patch regarding your problem a few days ago. Previous Comments: [2001-09-04 09:03:56] [EMAIL PROTECTED] The number of rows returned by fbsql_num_rows is wrong when used with 'select DISTINCT' query. This script shows differences between fbsql_num_rows function and a while over all rows. This problem doesn't appear if you don't use the 'distinct' option. Greetings --- $conn=fbsql_connect(127.0.0.1,myname,mypassword); fbsql_select_db(mybase,$conn) ; $sql = select distinct id_actor from actor_table;; $result=fbsql_query($sql,$conn) ; $num_rows = fbsql_num_rows($result); echo $num_rows Rows\n;// displays 2147483647 Rows $i=0; while ($row=fbsql_fetch_array($result)) $i++; echo $i Rows\n; // displays 5 Rows @fbsql_free_result($result); @fbsql_close($conn); Edit this bug report at http://bugs.php.net/?id=13131edit=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] [PATCH] pgsql async query functions
I really need async query functions for pgsql, so I wrote it. All functions are *simple* libpq wrapper. This patch is safe to apply. Async query can be very useful to improve performance, since pg_sendquery() returns immediately, then user can use pg_getresult() to get result later. (Especially when user have multiple db server) Missing feature is that raise warning or prohibit async query on persistent connection, since it can cause problems. I haven't implemented this, yet. Could anyone apply this patch? Thank you. -- Yasuo Ohgaki Index: pgsql.c === RCS file: /repository/php4/ext/pgsql/pgsql.c,v retrieving revision 1.130 diff -u -r1.130 pgsql.c --- pgsql.c 11 Oct 2001 23:33:40 - 1.130 +++ pgsql.c 3 Nov 2001 18:19:20 - @@ -94,6 +94,17 @@ PHP_FALIAS(pg_clientencoding, pg_client_encoding, NULL) PHP_FALIAS(pg_setclientencoding,pg_set_client_encoding, NULL) #endif + /* asyncronous query interface */ + PHP_FE(pg_sendquery, NULL) + PHP_FE(pg_setnonblocking, NULL) + PHP_FE(pg_isnonblocking, NULL) + PHP_FE(pg_getresult, NULL) + PHP_FE(pg_isbusy, NULL) + PHP_FE(pg_flush, NULL) + PHP_FE(pg_socket, NULL) + PHP_FE(pg_consumeinput, NULL) + PHP_FE(pg_requestcancel, NULL) + PHP_FE(pg_notifies, NULL) {NULL, NULL, NULL} }; /* }}} */ @@ -195,8 +206,9 @@ PGG(ignore_notices) = 1; PQexec(link,BEGIN;ROLLBACK;); + PQflush(link); PGG(ignore_notices) = 0; - + return 0; } /* }}} */ @@ -226,7 +238,8 @@ PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN(pgsql.allow_persistent, 1,PHP_INI_SYSTEM, OnUpdateInt,allow_persistent, php_pgsql_globals, pgsql_globals) STD_PHP_INI_ENTRY_EX(pgsql.max_persistent,-1, PHP_INI_SYSTEM, OnUpdateInt,max_persistent, php_pgsql_globals, pgsql_globals, display_link_numbers) - STD_PHP_INI_ENTRY_EX(pgsql.max_links, -1, PHP_INI_SYSTEM, OnUpdateInt,max_links, php_pgsql_globals, pgsql_globals, display_link_numbers) + STD_PHP_INI_ENTRY_EX(pgsql.max_links, -1, PHP_INI_SYSTEM, + OnUpdateInt,max_links, php_pgsql_globals, + pgsql_globals, display_link_numbers) + STD_PHP_INI_BOOLEAN(pgsql.allow_async_persistent, 0,PHP_INI_SYSTEM, + OnUpdateInt,allow_async_persistent, php_pgsql_globals, +pgsql_globals) PHP_INI_END() /* }}} */ @@ -1962,7 +1975,291 @@ } /* }}} */ #endif + +/* Following functions are for asyncronous query + Note: It is PHP programmers' responsibilty making sure getting consistent result + when async query function is used for persistent connection. +*/ + +#define PHP_PG_ASYNC_ISNONBLOCKING 1 +#define PHP_PG_ASYNC_CONSUMEINPUT 2 +#define PHP_PG_ASYNC_ISBUSY3 +#define PHP_PG_ASYNC_FLUSH 4 +#define PHP_PG_ASYNC_REQUESTCANCEL 5 + +void php_pgsql_async_query(INTERNAL_FUNCTION_PARAMETERS, int type) +{ + zval **pgsql_link = NULL; + int id = -1; + PGconn *pgsql; + + switch(ZEND_NUM_ARGS()) { + case 0: + id = PGG(default_link); + CHECK_DEFAULT_LINK(id); + break; + case 1: + if (zend_get_parameters_ex(1, pgsql_link)==FAILURE) { + RETURN_FALSE; + } + break; + default: + WRONG_PARAM_COUNT; + break; + } + + ZEND_FETCH_RESOURCE2(pgsql, PGconn *, pgsql_link, id, PostgreSQL link, +le_link, le_plink); + + switch(type) { + case PHP_PG_ASYNC_ISNONBLOCKING: + Z_LVAL_P(return_value) = PQisnonblocking(pgsql); + Z_TYPE_P(return_value) = IS_LONG; + break; + case PHP_PG_ASYNC_CONSUMEINPUT: + Z_LVAL_P(return_value) = PQconsumeInput(pgsql); + Z_TYPE_P(return_value) = IS_LONG; + break; + case PHP_PG_ASYNC_ISBUSY: + Z_LVAL_P(return_value) = PQisBusy(pgsql); + Z_TYPE_P(return_value) = IS_LONG; + break; + case PHP_PG_ASYNC_FLUSH: + Z_LVAL_P(return_value) = PQflush(pgsql); + Z_TYPE_P(return_value) = IS_LONG; + case PHP_PG_ASYNC_REQUESTCANCEL: + Z_LVAL_P(return_value) = PQrequestCancel(pgsql); + Z_TYPE_P(return_value) = IS_LONG; + default: +
[PHP-DEV] Bug #11259 Updated: please add move file in filesystem functions
ID: 11259 Updated by: mj Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Feature/Change Request Operating System: windows PHP Version: 4.0.5 New Comment: There is already the function rename(), that does exactly what you want. Previous Comments: [2001-06-03 12:50:20] [EMAIL PROTECTED] please add move file in filesystem functions.. I know move can be done by first copy and then delete.. but moving files directly is a lot faster. --David Edit this bug report at http://bugs.php.net/?id=11259edit=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 #8301 Updated: Mail doesn't support -f
ID: 8301 Updated by: mj Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Feature/Change Request Operating System: Linux Redhat 6.2 PHP Version: 4.0.3pl1 New Comment: Since PHP 4.0.5 you can use the following syntax: mail([EMAIL PROTECTED], Subject, Hello world!, From: [EMAIL PROTECTED] (My Name), -f [EMAIL PROTECTED]); Previous Comments: [2000-12-17 10:32:36] [EMAIL PROTECTED] You should use Errors-To and Return-Path headers, it'll help. [2000-12-17 10:28:35] [EMAIL PROTECTED] The current mail function /sendmail setting doesn't support the -f flag for sendmail. This means that when an email is sent out by a php script it doesn't bounce back to the from or reply-to address it bounces back to the web server. In a virtual hosting situation this is a nightmare. I wasn't sure how to handle all the regular expression stuff in c but I have a basic outline for the change needed in mail.c: if (strstr(senmail_path,-f)!=NULL (strstr(headers,Reply-To:)!=NULL||strstr(headers,From:)!=NULL)) { int failure=0; /* They want to override * They have a valid header * Need to build up sendmail_path * First copy out the Reply-To: or From: * / if (strstr(headers,Reply-To:)!=NULL) { /* Reply-To takes precidence */ /* find out the reply-to address */ } else if (strstr(headers,From:)!=NULL) { /* find the From address */ } if (no_match==1) { sendmail = popen(sendmail_path, w); } else { /*copy the modify the sendmail path so that -f is overriden by -f reply-to address or -f from_address */' sendmail = popen(new_sendmail_path, w); } } else { sendmail = popen(sendmail_path, w); } Edit this bug report at http://bugs.php.net/?id=8301edit=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 #6406 Updated: request: fork() function
ID: 6406 Updated by: mj Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Feature/Change Request Operating System: Redhat 6.1 (linux 2.2.12) PHP Version: 4.0.1pl2 New Comment: Did you have a look at the pcntl extension, that has been commited to PHP about 4 months ago? If also implements a function pcntl_fork(), that should do exactly what you want. Previous Comments: [2000-08-28 15:49:15] [EMAIL PROTECTED] I checked the bug database and did not see this anywhere... what is the feasability of creating a fork() implementation in PHP? Obviously this would be useless as an Apache module, but for those of use who use PHP for shell script and administration scripts, this would be a boon. Edit this bug report at http://bugs.php.net/?id=6406edit=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 #13914 Updated: echo ip2long($ip) differs from printf (%u\n, ip2long ($ip));
ID: 13914 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Output Control Operating System: Windows 2000 SP 2 PHP Version: 4.0.6 New Comment: This is actually not a bug. PHP only has signed integers (32 bit), that means that an IP address doesn't fit into that. echo $ipaddy; will show the number, ie. the signed integer. However, the 'special' modifier %u does circumvent this problem, but just outputting the number in unsigned form. Derick Previous Comments: [2001-11-03 11:27:20] [EMAIL PROTECTED] There are two examples in PHP MANUAL of ip2long() usage. The first one is based on echo output and the second - on printf() function. These are examples with output: ? $ip = gethostbyname(www.php.net); $out = The following URLs are equivalent:br\n; $out .= http://www.php.net/, http://.$ip./, and http://.ip2long($ip)./br\n; echo $out; ? The output of above is: The following URLs are equivalent: http://www.php.net/, http://208.210.50.161/, and http://-791530847/ I was confused on $ip output (i supposed ip-numbers are unsigned integers and cannot contain negative values like -791530847, echoed above). So, i've tryed to run the second example, wich uses printf() function: ?php $ip = gethostbyname(www.php.net); printf (%u\n, ip2long ($ip)); echo $out; ? The output is: /// 3503436449 /// I've changed code different ways, 've restarted machine, Apache server, but the difference remains. So, i've decided it's a bug either of echo or of ip2long() functions. Edit this bug report at http://bugs.php.net/?id=13914edit=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 #13918 Updated: PHP can't find mysql.sock
ID: 13918 Updated by: cnewbill Reported By: [EMAIL PROTECTED] Status: Open Old Bug Type: MySQL related Bug Type: Feature/Change Request Operating System: OS-X PHP Version: 4.0.6 New Comment: ehh so where's the bug? -Feature Request Previous Comments: [2001-11-03 12:56:01] [EMAIL PROTECTED] Hi, OS-X stores this in /Private/tmp/mysql.sock - the configure script just needs to search that dir too. Any php script comes up with can't find /tmp/mysql.sock (unsurprisingly). I recompiled and reinstalled with that added in and it works fine now. Thanks, John Edit this bug report at http://bugs.php.net/?id=13918edit=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 #13918 Updated: PHP can't find mysql.sock
ID: 13918 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Feature/Change Request Operating System: OS-X PHP Version: 4.0.6 New Comment: Fixed in CVS. Will be in 4.2.0. Derick Previous Comments: [2001-11-03 15:19:00] [EMAIL PROTECTED] ehh so where's the bug? -Feature Request [2001-11-03 12:56:01] [EMAIL PROTECTED] Hi, OS-X stores this in /Private/tmp/mysql.sock - the configure script just needs to search that dir too. Any php script comes up with can't find /tmp/mysql.sock (unsurprisingly). I recompiled and reinstalled with that added in and it works fine now. Thanks, John Edit this bug report at http://bugs.php.net/?id=13918edit=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 #13690 Updated: using com object to assign into a char property but got php_OLECHAR_to_char()
ID: 13690 Updated by: phanto Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Bogus Bug Type: COM related Operating System: win2000 PHP Version: 4.0.6 New Comment: no feedback, no failure description Previous Comments: [2001-10-17 09:13:15] [EMAIL PROTECTED] could you descirbe your issue more detailed please. warning, code-snippet, which component, ... [2001-10-16 08:53:13] [EMAIL PROTECTED] using com object to assign into a char property but got php_OLECHAR_to_char() but the same thing works on asp...:( Edit this bug report at http://bugs.php.net/?id=13690edit=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 #13918 Updated: PHP can't find mysql.sock
ID: 13918 Updated by: sander Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Feature/Change Request Operating System: OS-X PHP Version: 4.0.6 New Comment: Why not in 4.1.0? You can consider this a bug: PHP doesn't work well without this fix. Although it's not a bug in PHP, it is a bug in the configure-script, which is a part of the PHP-distro. Previous Comments: [2001-11-03 15:27:09] [EMAIL PROTECTED] Fixed in CVS. Will be in 4.2.0. Derick [2001-11-03 15:19:00] [EMAIL PROTECTED] ehh so where's the bug? -Feature Request [2001-11-03 12:56:01] [EMAIL PROTECTED] Hi, OS-X stores this in /Private/tmp/mysql.sock - the configure script just needs to search that dir too. Any php script comes up with can't find /tmp/mysql.sock (unsurprisingly). I recompiled and reinstalled with that added in and it works fine now. Thanks, John Edit this bug report at http://bugs.php.net/?id=13918edit=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 #13918 Updated: PHP can't find mysql.sock
ID: 13918 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Feature/Change Request Operating System: OS-X PHP Version: 4.0.6 New Comment: Hi, I agree - OS-X users can't use it otherwise as there's no means of manually setting that directory within configure that I could see. I'd think it would save you a whole load of hassle to offload that sort of simple change as early as possible. Regards, John Previous Comments: [2001-11-03 15:32:35] [EMAIL PROTECTED] Why not in 4.1.0? You can consider this a bug: PHP doesn't work well without this fix. Although it's not a bug in PHP, it is a bug in the configure-script, which is a part of the PHP-distro. [2001-11-03 15:27:09] [EMAIL PROTECTED] Fixed in CVS. Will be in 4.2.0. Derick [2001-11-03 15:19:00] [EMAIL PROTECTED] ehh so where's the bug? -Feature Request [2001-11-03 12:56:01] [EMAIL PROTECTED] Hi, OS-X stores this in /Private/tmp/mysql.sock - the configure script just needs to search that dir too. Any php script comes up with can't find /tmp/mysql.sock (unsurprisingly). I recompiled and reinstalled with that added in and it works fine now. Thanks, John Edit this bug report at http://bugs.php.net/?id=13918edit=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 #13918 Updated: PHP can't find mysql.sock
ID: 13918 Updated by: derick Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Feature/Change Request Operating System: OS-X PHP Version: 4.0.6 New Comment: Ok, it will be in 4.1.0 too Derick Previous Comments: [2001-11-03 16:12:01] [EMAIL PROTECTED] Hi, I agree - OS-X users can't use it otherwise as there's no means of manually setting that directory within configure that I could see. I'd think it would save you a whole load of hassle to offload that sort of simple change as early as possible. Regards, John [2001-11-03 15:32:35] [EMAIL PROTECTED] Why not in 4.1.0? You can consider this a bug: PHP doesn't work well without this fix. Although it's not a bug in PHP, it is a bug in the configure-script, which is a part of the PHP-distro. [2001-11-03 15:27:09] [EMAIL PROTECTED] Fixed in CVS. Will be in 4.2.0. Derick [2001-11-03 15:19:00] [EMAIL PROTECTED] ehh so where's the bug? -Feature Request [2001-11-03 12:56:01] [EMAIL PROTECTED] Hi, OS-X stores this in /Private/tmp/mysql.sock - the configure script just needs to search that dir too. Any php script comes up with can't find /tmp/mysql.sock (unsurprisingly). I recompiled and reinstalled with that added in and it works fine now. Thanks, John Edit this bug report at http://bugs.php.net/?id=13918edit=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: [PATCH] pgsql async query functions
Yasuo Ohgaki wrote: I really need async query functions for pgsql, so I wrote it. All functions are *simple* libpq wrapper. This patch is safe to apply. Async query can be very useful to improve performance, since pg_sendquery() returns immediately, then user can use pg_getresult() to get result later. (Especially when user have multiple db server) Missing feature is that raise warning or prohibit async query on persistent connection, since it can cause problems. I haven't implemented this, yet. It seems there is problem with my mail client (or news.php.net?) This mail is for those who get the patch as inline... After this patch is committed (by someone hopefully). I'll send another patch that get rid of zend_get_parameters() and make pgsql module use zend_parse_parameters(), if nobody objects. -- Yasuo Ohgaki Index: pgsql.c === RCS file: /repository/php4/ext/pgsql/pgsql.c,v retrieving revision 1.130 diff -u -r1.130 pgsql.c --- pgsql.c 11 Oct 2001 23:33:40 - 1.130 +++ pgsql.c 3 Nov 2001 18:19:20 - @@ -94,6 +94,17 @@ PHP_FALIAS(pg_clientencoding, pg_client_encoding, NULL) PHP_FALIAS(pg_setclientencoding,pg_set_client_encoding, NULL) #endif + /* asyncronous query interface */ + PHP_FE(pg_sendquery, NULL) + PHP_FE(pg_setnonblocking, NULL) + PHP_FE(pg_isnonblocking, NULL) + PHP_FE(pg_getresult, NULL) + PHP_FE(pg_isbusy, NULL) + PHP_FE(pg_flush, NULL) + PHP_FE(pg_socket, NULL) + PHP_FE(pg_consumeinput, NULL) + PHP_FE(pg_requestcancel, NULL) + PHP_FE(pg_notifies, NULL) {NULL, NULL, NULL} }; /* }}} */ @@ -195,8 +206,9 @@ PGG(ignore_notices) = 1; PQexec(link,BEGIN;ROLLBACK;); + PQflush(link); PGG(ignore_notices) = 0; - + return 0; } /* }}} */ @@ -226,7 +238,8 @@ PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN(pgsql.allow_persistent, 1,PHP_INI_SYSTEM, OnUpdateInt,allow_persistent, php_pgsql_globals, pgsql_globals) STD_PHP_INI_ENTRY_EX(pgsql.max_persistent,-1, PHP_INI_SYSTEM, OnUpdateInt,max_persistent, php_pgsql_globals, pgsql_globals, display_link_numbers) - STD_PHP_INI_ENTRY_EX(pgsql.max_links, -1, PHP_INI_SYSTEM, OnUpdateInt,max_links, php_pgsql_globals, pgsql_globals, display_link_numbers) + STD_PHP_INI_ENTRY_EX(pgsql.max_links, -1, PHP_INI_SYSTEM, + OnUpdateInt,max_links, php_pgsql_globals, + pgsql_globals, display_link_numbers) + STD_PHP_INI_BOOLEAN(pgsql.allow_async_persistent, 0,PHP_INI_SYSTEM, + OnUpdateInt,allow_async_persistent, php_pgsql_globals, +pgsql_globals) PHP_INI_END() /* }}} */ @@ -1962,7 +1975,291 @@ } /* }}} */ #endif + +/* Following functions are for asyncronous query + Note: It is PHP programmers' responsibilty making sure getting consistent result + when async query function is used for persistent connection. +*/ + +#define PHP_PG_ASYNC_ISNONBLOCKING 1 +#define PHP_PG_ASYNC_CONSUMEINPUT 2 +#define PHP_PG_ASYNC_ISBUSY3 +#define PHP_PG_ASYNC_FLUSH 4 +#define PHP_PG_ASYNC_REQUESTCANCEL 5 + +void php_pgsql_async_query(INTERNAL_FUNCTION_PARAMETERS, int type) +{ + zval **pgsql_link = NULL; + int id = -1; + PGconn *pgsql; + + switch(ZEND_NUM_ARGS()) { + case 0: + id = PGG(default_link); + CHECK_DEFAULT_LINK(id); + break; + case 1: + if (zend_get_parameters_ex(1, pgsql_link)==FAILURE) { + RETURN_FALSE; + } + break; + default: + WRONG_PARAM_COUNT; + break; + } + + ZEND_FETCH_RESOURCE2(pgsql, PGconn *, pgsql_link, id, PostgreSQL link, +le_link, le_plink); + + switch(type) { + case PHP_PG_ASYNC_ISNONBLOCKING: + Z_LVAL_P(return_value) = PQisnonblocking(pgsql); + Z_TYPE_P(return_value) = IS_LONG; + break; + case PHP_PG_ASYNC_CONSUMEINPUT: + Z_LVAL_P(return_value) = PQconsumeInput(pgsql); + Z_TYPE_P(return_value) = IS_LONG; + break; + case PHP_PG_ASYNC_ISBUSY: + Z_LVAL_P(return_value) = PQisBusy(pgsql); + Z_TYPE_P(return_value) = IS_LONG; + break; + case PHP_PG_ASYNC_FLUSH: +
Re: [PHP-DEV] Bug #13918 Updated: PHP can't find mysql.sock
FYI: php.ini has this directive to set mysql.sock path: mysql.default_socket=/Private/tmp/mysql.sock ie. you don't set it in configure but in php.ini. And the fix committed now only affects the builtin mysql libs. If you're using external libs, they should know about the location. --Jani On 3 Nov 2001 [EMAIL PROTECTED] wrote: ID: 13918 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Feature/Change Request Operating System: OS-X PHP Version: 4.0.6 New Comment: Hi, I agree - OS-X users can't use it otherwise as there's no means of manually setting that directory within configure that I could see. I'd think it would save you a whole load of hassle to offload that sort of simple change as early as possible. Regards, John Previous Comments: [2001-11-03 15:32:35] [EMAIL PROTECTED] Why not in 4.1.0? You can consider this a bug: PHP doesn't work well without this fix. Although it's not a bug in PHP, it is a bug in the configure-script, which is a part of the PHP-distro. [2001-11-03 15:27:09] [EMAIL PROTECTED] Fixed in CVS. Will be in 4.2.0. Derick [2001-11-03 15:19:00] [EMAIL PROTECTED] ehh so where's the bug? -Feature Request [2001-11-03 12:56:01] [EMAIL PROTECTED] Hi, OS-X stores this in /Private/tmp/mysql.sock - the configure script just needs to search that dir too. Any php script comes up with can't find /tmp/mysql.sock (unsurprisingly). I recompiled and reinstalled with that added in and it works fine now. Thanks, John Edit this bug report at http://bugs.php.net/?id=13918edit=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 #12001 Updated: Apache 1.3.6 + RedHat 6
ID: 12001 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Apache related Operating System: Linux PHP Version: 4.0.6 New Comment: 1. Update your Apache 2. Fixed in next release of PHP (4.1.0) --Jani Previous Comments: [2001-07-10 05:05:51] [EMAIL PROTECTED] 1. Some older versions of Apache (like 1.3.6) does not support -S option in apxs tool and PHP 4.0.6 cannot make his lib file instead of this, I managed to compile it manually with -I/dir option 2. Just before that it was strange to me that when I installed libtool 1.4 (because there wasn't version 1.3.3 or newer) ./buildconf (used for compiling with dbg debugger) says: libtool version 1.4 found (ok) libtool version 1.3.3 or newer required Edit this bug report at http://bugs.php.net/?id=12001edit=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 #12399 Updated: Linking against OS X port of libdl causes problems
ID: 12399 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Apache related Operating System: MacOSX PHP Version: 4.0.6 New Comment: Please check this instructions: http://www.entropy.ch/software/macosx/php/#build Previous Comments: [2001-07-26 09:44:49] [EMAIL PROTECTED] Just to clarify, libdl for OS X is a separate library, not included with the OS, that provides the standard dlopen API to OS X software. It is part of a package called dlcompat. This bug is not at all a bug with dlcompat/libdl, just with the problem that PHP includes the dlopen function from both libdl and Apache's built-in dlopen that is enabled on the OS X port. [2001-07-26 09:40:46] [EMAIL PROTECTED] When compiling PHP under Mac OS X, you currently must move the OS X port of libdl to libdl.a.old and libdl.dylib.old to prevent PHP from using them. Apache on Darwin/OS X already defines it's own version of the dlopen functions, and if PHP links against the libdl from the OS X dlcompat library, Apache will fail to run, complaining about multiple definitions of dlopen. This may be more of an Apache issue than a PHP issue? I haven't tried compiling Apache yet using dlcompat's libdl instead of it's built-in dlopen stuff, but I might try that just to see if it works. Edit this bug report at http://bugs.php.net/?id=12399edit=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 #12673 Updated: virtual function
ID: 12673 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Apache related Operating System: freebsd 4.3-stable PHP Version: 4.0.6 New Comment: For the called script or for the calling script? Can you add some example here? Previous Comments: [2001-08-09 06:24:16] [EMAIL PROTECTED] Calling the function virtual with relative path as a parameter changes current working dirrectory Edit this bug report at http://bugs.php.net/?id=12673edit=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 #12691 Updated: Apache 2: Server variables don't get set
ID: 12691 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Summary: Server variables don't get set Status: Open Bug Type: Apache related Operating System: SuSE7.1 PHP Version: 4.0CVS-2001-08-10 New Comment: updated short desc. Previous Comments: [2001-08-10 11:08:15] [EMAIL PROTECTED] hi alindeman, erm, you missed the essential 2 :) it's with Apache2 (apxs2) Additional note: printenv from /cgi-bin shows them just right. [2001-08-10 10:49:39] [EMAIL PROTECTED] works fine for me (Apache 1.3.20 + PHP Latest CVS). Try running ?phpinfo()? and see what variables are defined.. [2001-08-10 10:42:38] [EMAIL PROTECTED] Apache 2.0.24-dev PHP4-200108091635 CFLAGS='-O6 -fomit-frame-pointer' \ './configure' \ '--with-apxs2=/usr/local/apache2/bin/apxs' \ '--with-mysql' \ '--disable-posix' \ '--disable-pic' \ '--with-zlib' \ '--enable-wddx' \ Looks like PHP doesn't import SERVER_* environment variables: e.g. ?php print getenv('SERVER_NAME')? or ?php print $_SERVER['SERVER_NAME']? yeilds nothin' -- tedor Edit this bug report at http://bugs.php.net/?id=12691edit=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 #12989 Updated: php sets the wrong default header (use not mimetypes)
ID: 12989 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Apache related Operating System: PHP Version: 4.0.6 New Comment: You can use this php.ini directive to set the mimetype: default_mimetype = text/vnd.wap.wml This can also be set within httpd.conf / .htaccess files: php_value default_mimetype text/vnd.wap.wml --Jani Previous Comments: [2001-08-28 02:37:53] [EMAIL PROTECTED] i want to parse .wml sites with php, the problem is the default header. when i not have added AddType application/x-httpd-php .wml in the httpd.conf, then everything its fine and apache returned the korrekt header in pure .wml sites (without php stuff). my mimetype entry text/vnd.wap.wmlwml works in this case. when i add AddType application/x-httpd-php .wml to the apache config, the mimetype settings are useless :-( apache sends by default text/html and i have to rework als .wml sites and have to add a line at first:: ?php header(Content-Type: text/vnd.wap.wml);? thats very bad, if i have lots of such sites, which were at first plain wml. i wanted to rename all .php sites to .wml, if they produce wml code, because i want to avoid problems with wap browsers which are looking for the filepostfix... imho should php set the header using mimetypes settings. Edit this bug report at http://bugs.php.net/?id=12989edit=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 #12991 Updated: Wrong content type while parsing .wml files which are parsed by php
ID: 12991 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Apache related Operating System: Linux with Apache 1.3.20 PHP Version: 4.0.6 New Comment: You can use this php.ini directive to set the mimetype: default_mimetype = text/vnd.wap.wml This can also be set within httpd.conf / .htaccess files: php_value default_mimetype text/vnd.wap.wml --Jani Previous Comments: [2001-08-28 03:01:56] [EMAIL PROTECTED] Hi there, Scenario: I added to the Apache Mime Types: text/vnd.wap.wmlwml Next I set PHP to parse .wml files in apache config: AddType application/x-httpd-php .wml What I want to do ? Parsing .wml files for wap pages. What's the result ? telnet domain.com 80 GET /wap.wml HTTP/1.0 Accept: text/vnd.wap.wml returnreturn Apache/PHP returns: HTTP/1.1 200 OK Date: Tue, 28 Aug 2001 07:04:44 GMT Server: Apache/1.3.20 (Unix) PHP/4.0.6 X-Powered-By: PHP/4.0.6 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html I sent Accept: text/vnd.wap.wml and get Content-Type: text/html. That hat to return a 406 Error - not accaptable. Content Type seit in Apache Mime Config is ignored plus Accept: Header is ignored. If I set a Content-Type with the Header funktion everthing ist fine - but if not there have to be an Accept Error ! Best regards Boris Edit this bug report at http://bugs.php.net/?id=12991edit=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 #6406 Updated: request: fork() function
ID: 6406 Updated by: danbeck Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Feature/Change Request Operating System: Redhat 6.1 (linux 2.2.12) PHP Version: 4.0.1pl2 New Comment: Actually, I'm writing the docs for the pcntl extension. I'll close this request. Previous Comments: [2001-11-03 13:31:36] [EMAIL PROTECTED] Did you have a look at the pcntl extension, that has been commited to PHP about 4 months ago? If also implements a function pcntl_fork(), that should do exactly what you want. [2000-08-28 15:49:15] [EMAIL PROTECTED] I checked the bug database and did not see this anywhere... what is the feasability of creating a fork() implementation in PHP? Obviously this would be useless as an Apache module, but for those of use who use PHP for shell script and administration scripts, this would be a boon. Edit this bug report at http://bugs.php.net/?id=6406edit=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 #13178 Updated: make install fails on cobalt RAQIII.
ID: 13178 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Duplicate Bug Type: Apache related Operating System: Linux www.affcu.com 2.2.16C27_II PHP Version: 4.0.6 New Comment: Duplicate of: #11647 Previous Comments: [2001-09-06 12:05:37] [EMAIL PROTECTED] hello, It may be the version of APXS that I am using, but it didn't like the 'apxs -S' flag that make install used. I fixed it by editing the config_vars.mk file and changing this line: INSTALL_IT = $(mkinstalldirs) $(INSTALL_ROOT)/usr/lib/apache /usr/sbin/apxs -S LIBEXECDIR=$(INSTALL_ROOT)/usr/lib/apache -i -a -n php4 l ibs/libphp4.so to be apxs -S and the install worked. I hope that this info helps other people trying to upgrade their version of php on RAQs. Brian King Edit this bug report at http://bugs.php.net/?id=13178edit=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 #10060 Updated: startup error msg format
ID: 10060 Updated by: sniper Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Apache related Operating System: NT 5 SP 1 PHP Version: 4.0 Latest CVS (29/03/2001) New Comment: If I understood correctly the sources, the error logging is set to the apache logger when the sapi module is started. And AFAIK, that happens AFTER all modules are loaded/started. Someone correct me if I'm wrong. --Jani Previous Comments: [2001-03-29 11:24:53] [EMAIL PROTECTED] I don't know if this is an Apache or PHP error, but it looks like PHP doesn't pass startup error messages to Apache for logging (as expected): my error.log contains this: PHP: Error parsing browscap.ini on line 6294 whereas it should read: [Tue Mar 27 13:18:43 2001] [errlevel] [client 123.456.789.012] PHP: Error parsing browscap.ini on line 6294 php4-200103280545 as DSO apache-1.3_20010328111201 Edit this bug report at http://bugs.php.net/?id=10060edit=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 #12091 Updated: zlib uncompress buffer error/ inflate failed
ID: 12091 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Status: Open Bug Type: Zlib Related Operating System: i686-pc-linux-gnu PHP Version: 4.0CVS-2001-07-12 New Comment: missing status Previous Comments: [2001-07-13 13:33:49] [EMAIL PROTECTED] Hi Thies, thank you for your changes in zlib.c but you have not really fix the problem. If i increase the string repeating from 5000 to 35000, i have the same problem again, but i don't no why, sometimes php works correct... ---snip--- tt ?php error_reporting(63); mt_srand ((double) microtime() * 100); for ($original=,$i=0;$i35000;$i++){ //$out.=chr(mt_rand()); // $original.=lala ; // problem } $packed=gzdeflate($original); // gzcompress $unpacked=gzinflate($packed); // gzuncompress echo Length original:.strlen($original).br; echo Length packed:.strlen($packed).br; echo Length unpacked:.strlen($unpacked).br; if (strcmp($original,$unpacked)==0) echo Strings are equal; else echo bStrings unot/u equal/b; ? /tt ---snap--- Regards, -- Steve [2001-07-13 11:15:07] [EMAIL PROTECTED] fixed in CVS you can make it work in 4.0.6 by changing maxfactor from 8 to lets say 16 in zlib.c around line 912 [2001-07-12 05:38:24] [EMAIL PROTECTED] Hi, the follow code produces a deflated string which php can not inflate. php results: Warning: gzinflate: buffer error in /web/htdocs/thisfile.php tt ?php error_reporting(63); mt_srand ((double) microtime() * 100); for ($original=,$i=0;$i5000;$i++){ //$original.=chr(mt_rand()); // $original.=lala ; // problem } $packed=gzdeflate($original); // gzcompress $unpacked=gzinflate($packed); // gzuncompress echo Length original:.strlen($original).br; echo Length packed:.strlen($packed).br; echo Length unpacked:.strlen($unpacked).br; if (strcmp($original,$unpacked)==0) echo Strings are equal; else echo bStrings unot/u equal/b; ? /tt Regards, -- Steve Edit this bug report at http://bugs.php.net/?id=12091edit=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] Bug #13918 Updated: PHP can't find mysql.sock
Jani Taskinen wrote: FYI: php.ini has this directive to set mysql.sock path: mysql.default_socket=/Private/tmp/mysql.sock ie. you don't set it in configure but in php.ini. And the fix committed now only affects the builtin mysql libs. If you're using external libs, they should know about the location. --Jani I think I've read similar mail about pgsql. (I thought it was feature request, but I couldn't find it...) The user is saying pqsql's socket file is defualt to /tmp, but there is no way to set socket directory to other places. It's also configurable using environment PGHOST enviroment variable. == from pgsql manual == PGHOST sets the default server name. If this begins with a slash, it specifies Unix-domain communication rather than TCP/IP communication; the value is the name of the directory in which the socket file is stored (default /tmp). === Environmnet variables can affect pgsql module behavior. It would be nice if PHP Manual has description about it. -- Yasuo Ohgaki On 3 Nov 2001 [EMAIL PROTECTED] wrote: ID: 13918 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Feature/Change Request Operating System: OS-X PHP Version: 4.0.6 New Comment: Hi, I agree - OS-X users can't use it otherwise as there's no means of manually setting that directory within configure that I could see. I'd think it would save you a whole load of hassle to offload that sort of simple change as early as possible. Regards, John Previous Comments: [2001-11-03 15:32:35] [EMAIL PROTECTED] Why not in 4.1.0? You can consider this a bug: PHP doesn't work well without this fix. Although it's not a bug in PHP, it is a bug in the configure-script, which is a part of the PHP-distro. [2001-11-03 15:27:09] [EMAIL PROTECTED] Fixed in CVS. Will be in 4.2.0. Derick [2001-11-03 15:19:00] [EMAIL PROTECTED] ehh so where's the bug? -Feature Request [2001-11-03 12:56:01] [EMAIL PROTECTED] Hi, OS-X stores this in /Private/tmp/mysql.sock - the configure script just needs to search that dir too. Any php script comes up with can't find /tmp/mysql.sock (unsurprisingly). I recompiled and reinstalled with that added in and it works fine now. Thanks, John Edit this bug report at http://bugs.php.net/?id=13918edit=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]