[PHP-DEV] PHP 4.0 Bug #9721: none
From: [EMAIL PROTECTED] Operating system: OS/2 PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: none Hello, What happened to the OS/2 Links? I just found the PHP Os/2 release last week and came back to grab the binary and have now discovered nothing is the same. :-( Please point me to the url where this is located. Thanks. ...Darrell -- Edit Bug report at: http://bugs.php.net/?id=9721edit=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 #8935 Updated: A reference to 'this' can not be used in the constructor method for a class.
ID: 8935 User Update by: [EMAIL PROTECTED] Status: Closed Bug Type: Class/Object related Description: A reference to 'this' can not be used in the constructor method for a class. I haven't tried the $a = new syntax However, is that really a working solution? This would require all clients of that class to actually have to know that the constructor would like to use a $this reference and hence the clients must know about the specific implementation. Is that such a good idea? Wouldn't it be better to allow the use of $this in a constructor as default without having to create the class with this special version of new(). or did I mmiss something here? Previous Comments: --- [2001-03-09 18:24:38] [EMAIL PROTECTED] I have added some notes to the documenation, as far as the the site has been updated its documenatation check it out "language.oop.newref.html" (http://snaps.php.net/manuals/) it may take a day or two ... --- [2001-03-09 17:26:53] [EMAIL PROTECTED] not really this is only a duplicate report for an already fixed bug... --- [2001-03-09 17:09:08] [EMAIL PROTECTED] It's fixed - closed. --Jani --- [2001-03-09 13:50:45] [EMAIL PROTECTED] this has been fixed for months, please use = new instead of = new in this special case --- [2001-02-24 14:14:09] [EMAIL PROTECTED] Please see the 4.0.4 release change log a lot of things along this line were fixed. James --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. Full Bug description available at: http://bugs.php.net/?id=8935 -- 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 #9722: foreach() operates on a copy of an object
From: [EMAIL PROTECTED] Operating system: Linux 2.2.16 PHP version: 4.0.4pl1 PHP Bug Type: Class/Object related Bug description: foreach() operates on a copy of an object The following two array looping statements are not equal (Assuming Update() updates some instance variables in the object) foreach( $objs as $o ) $o-Update() and for($i=0; $icount($objs); ++$i) $objs[$i]-Update(); In the first case the Update() method will change an anonymous copy of the object in the array while in the second case the update will work on the object in the array. Hence any changes that Update() might do will in the first case not be done for the objects in the array. Not sure if this is a genuine bug or just a consequence of the copying semantics for objects in PHP. -- Edit Bug report at: http://bugs.php.net/?id=9722edit=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 #9709 Updated: Unable to load php_ldap.dll
ID: 9709 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Dynamic loading Assigned To: Comments: seems like libsasl.dll isn't found. copy libsasl.dll to %WinDir%/system(32). Previous Comments: --- [2001-03-12 10:28:50] [EMAIL PROTECTED] When I try to enable the ldap extension I get the following error, other extensions I use work fine. The path to the library is correct and the file is available. PHP Warning: Unable to load dynamic library 'D:/php4/extensions/php_ldap.dll' - The specified module could not be found. in Unknown on line 0 --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9709edit=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 #8846 Updated: gmdate() causes crash. Using Apache + Win2K
ID: 8846 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Analyzed Status: Closed Bug Type: Reproduceable crash Assigned To: Comments: fixed in cvs Previous Comments: --- [2001-02-17 17:55:23] [EMAIL PROTECTED] This snippet ?php echo gmdate ("M d Y H:i:s", -1); ? still crashes on Win32. Could some kind soul please look into this issue? --- [2001-01-25 17:45:33] [EMAIL PROTECTED] gmdate() crashes if -1 is given as timestamp (gmmktime() is returning -1 if an error occured) --- [2001-01-22 19:25:01] [EMAIL PROTECTED] hi, This bug is reproduceable after the releases of 4.0.2 and above. It works fine with 4.0.1pl1 Following are the functions that causes crash (I get access violation). $lday = gmdate('l', gmmktime(0,0,0,$month,$day,$year)); $lmonth = gmdate('F', gmmktime(0,0,0,$month,$day,$year)); Where $day, $month $year are e.g. 10, 2, 2000 As i am running Win2K, and i have Dr.Watson installed. It actually logs the errors in a file. Below is the complete error log that Win2K made. Application exception occurred: App: (pid=1592) When: 1/23/2001 @ 00:03:06.221 Exception number: c005 (access violation) * System Information * Computer Name: DAARIUS User Name: SYSTEM Number of Processors: 1 Processor Type: x86 Family 6 Model 8 Stepping 6 Windows 2000 Version: 5.0 Current Build: 2195 Service Pack: 1 Current Type: Uniprocessor Free Registered Organization: Registered Owner: Daarius * Task List * 0 Idle.exe 8 System.exe 176 SMSS.exe 200 csrss.exe 220 WINLOGON.exe 248 services.exe 260 LSASS.exe 428 svchost.exe 456 SPOOLSV.exe 508 msdtc.exe 608 Apache.exe 624 Ati2evxx.exe 640 svchost.exe 672 Apache.exe 884 mysqld-sharewar.exe 936 regsvc.exe 952 mstask.exe 976 tcpsvcs.exe 1012 snmp.exe 1052 stisvc.exe 1088 WinMgmt.exe 1104 mqsvc.exe 1324 explorer.exe 1432 atiptaxx.exe 1456 SynTPLpr.exe 1412 SynTPEnh.exe 1472 prpcui.exe 1476 DIRECTCD.exe 1492 internat.exe 1504 OSA.exe 1664 IEXPLORE.exe 1716 mdm.exe 1640 EditPad.exe 1592 php.exe 1668 DRWTSN32.exe 0 _Total.exe (0040 - 00405000) (77F8 - 77FFA000) (1000 - 100F9000) (77E8 - 77F35000) (77E1 - 77E74000) (77F4 - 77F7C000) (7505 - 75058000) (7503 - 75044000) (7800 - 78046000) (77DB - 77E0A000) (77D4 - 77DB) (7502 - 75028000) (77A5 - 77B45000) (779B - 77A45000) (1F7D - 1F804000) (76B3 - 76B6E000) (70BD - 70C1C000) (7170 - 7178A000) (6980 - 69A42000) (780A - 780B2000) (1F8C - 1F8D6000) (7828 - 7828C000) (7798 - 779A4000) (777E - 777E8000) (7795 - 77979000) (777F - 777F5000) (7783 - 7783E000) (74FD - 74FED000) (7734 - 77353000) (7752 - 77525000) (7732 - 77337000) (7515 - 7515F000) (7517 - 751BF000) (77BE - 77BEF000) (751C - 751C6000) (773B - 773DE000) (7738 - 773A2000) (7788 - 7790D000) (77C1 - 77C6D000) (774E - 77512000) (774C - 774D1000) (7753 - 77552000) (7736 - 77379000) (691D - 69255000) (7501 - 75017000) State Dump for Thread Id 0x258 eax= ebx=0012f54c ecx=0009 edx=005138f0 esi= edi=0012f54c eip=10005ca6 esp=0012f504 ebp=00ad8b38 iopl=0 nv up ei pl zr na po nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs= efl=0246 function: php_gmtime_r 10005c87 57 pushedi 10005c88 50 pusheax 10005c89 e8223f0800 calltsrm_mutex_lock (10089bb0) 10005c8e 8b4c2414 mov ecx,[esp+0x14] ss:00bacadb= 10005c92 51 pushecx 10005c93 ff1514c20b10ds:100bc214=7802a3b5 call dword ptr [zend_ptr_stack_clean+0x10914 (100bc214)] 10005c99 8b5c241c mov ebx,[esp+0x1c] ss:00bacadb= 10005c9d b90900 mov ecx,0x9 10005ca2 8bf0 mov esi,eax 10005ca4 8bfb mov edi,ebx FAULT -10005ca6 f3a5rep movsd ds:= es:0012f54c=0004 10005ca8 8b1518c30e10ds:100ec318=005138f0 mov edx,[php_ini_path+0x48 (100ec318)] 10005cae 52 pushedx 10005caf e81c3f0800 calltsrm_mutex_unlock (10089bd0) 10005cb4 83c40c add esp,0xc 10005cb7 8bc3
[PHP-DEV] PHP 4.0 Bug #9626 Updated: unable to use sybase-extension
ID: 9626 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Sybase-ct (ctlib) related Assigned To: Comments: can you please download the dependcy walker and check if all external dlls are found? http://www.dependencywalker.com Previous Comments: --- [2001-03-08 10:51:24] [EMAIL PROTECTED] When I am trying to connect a sybase-database using the php_sybase_ct.dll module, but all I get is a pop-up window telling: "Unable to load dynamic library './extensions/php_sybase-ct.dll' - The dynamic library could not be found.". I have really worked hard on this one. I'm sure that the path is correct spelled in php.ini, because the postgreSQL-dll placed in the same directory and it's working out fine. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9626edit=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 #9619 Updated: {0,300} returns REG_BADRPT-Warning
ID: 9619 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: *Regular Expressions Assigned To: Comments: the regex will have to look like the following ^(.{0,99}[^ ]*).*$ the ereg functions seem only to support values 0 100 for the intervals. use preg_replace instead of eregi_replace. Previous Comments: --- [2001-03-08 06:59:22] [EMAIL PROTECTED] $regex = "^(.*{0,300}[^ ]*).*$"; $txt = eregi_replace($regex,"\1",$txt); This Script was written to split a string after 300 lines and the next whitespace. Everytime I use it, it returns the following error: Warning: REG_BADRPT: in f:wwwtest.php on line 12 (With PHP4.0.4pl1 and PHP3.?.?) The critical part of the regex is {0,300} Values from {0,1} to {0,99} are no problem. But every Values bigger 99 are returning this error. I tried to split the regex into: $regex = "^(.*{0,50}.*{0,50}.*{0,50}.*{0,50}.*{0,50}.*{0,50}[^ ]*).*$" But with this regex I only get a white page without any output. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9619edit=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 #9723: not being encoded, invalid html
From: [EMAIL PROTECTED] Operating system: PHP version: 4.0.4pl1 PHP Bug Type: *Session related Bug description: not being encoded, invalid html php 4.0.4 pl1 does not correctly encode the as amp; when trans-sid is enabled. this is rather annoying because this is simply invalid html. it does work only because browser are used to all kinds of wrong code, but that´s not the problem. ie. php writes url.php4?some=argPHPSESSID= where url.php4?some=argamp;PHPSESSID= would be correct. is a special xml/html char and must always be encoded in a valid html document. -- Edit Bug report at: http://bugs.php.net/?id=9723edit=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 #9617 Updated: fileposition error
ID: 9617 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Filesystem function related Assigned To: Comments: following script works okay for me (win2k) so closing. ?php $output = fopen("test.txt", "a+"); echo "bytes written: ", fputs($output, "test"), "\nbrfile offset: ". ftell($output); fclose($output); ? Previous Comments: --- [2001-03-08 06:02:20] [EMAIL PROTECTED] Open an existing text file (insert some crap before) like: $output = fopen("test.txt", "a"); #we want append something Here is the problem: $position = ftell($output); #returns always 0 and not the real fileposition!!! fputs($output, "test"); #but this works without any problems (it has the real fileposition, but ftell gets the false one) I found this bug only on windows systems, not on linux. Achim --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9617edit=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 #9626 Updated: unable to use sybase-extension
ID: 9626 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Sybase-ct (ctlib) related Description: unable to use sybase-extension libct.dll, libcs.dll and php4ts.dll are not found. Where can I find these dll's and where should I place them? I'm getting pretty desperate here, so if you have any solutions, I would be very glad. -- Trond Straume Previous Comments: --- [2001-03-13 06:18:26] [EMAIL PROTECTED] can you please download the dependcy walker and check if all external dlls are found? http://www.dependencywalker.com --- [2001-03-08 10:51:24] [EMAIL PROTECTED] When I am trying to connect a sybase-database using the php_sybase_ct.dll module, but all I get is a pop-up window telling: "Unable to load dynamic library './extensions/php_sybase-ct.dll' - The dynamic library could not be found.". I have really worked hard on this one. I'm sure that the path is correct spelled in php.ini, because the postgreSQL-dll placed in the same directory and it's working out fine. --- Full Bug description available at: http://bugs.php.net/?id=9626 -- 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 #9724: user sessions not working anymore ?
From: [EMAIL PROTECTED] Operating system: Linux 2.2 PHP version: 4.0.4pl1 PHP Bug Type: *Session related Bug description: user sessions not working anymore ? I'm using user defined sessions to store my session data into a mysql database ... my code worked well from 4.0.2 to 4.0.3pl1, I just upgraded to 4.0.4pl1 and it doesn't work anymore ... It seems that sometimes the session is not written at all to the the db, and sometimes it's written but with empty data ... -- Edit Bug report at: http://bugs.php.net/?id=9724edit=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 4.0 Bug #9600 Updated: PHP chashing on IRIX
Sorry, but it is the same problem with the latest vesrion from http://snaps.php.net/ /Mats Gustavsson Please try the latest CVS snapshot from http://snaps.php.net/ --Jani Previous Comments: --- [2001-03-07 05:51:40] [EMAIL PROTECTED] I sucessfully install php-3.0.18 togeter with apache_1.3.17 When doing the same with php-4.0.4pl1 PHP crash. When tracining it gives the following error message: Fatal Error: attempted access to unresolvable symbol in ...libexec/libphp4.so: _array_init I hope that this can be of use. /Best Regards Mats Gustavsson --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9600edit=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] dbx module (database abstraction) available
Hi! The dbx module (database abstraction module in C, supports ODBC and MySQL (for now :-)) is available at http://www.guidance.nl/php/dbx/ Source is available in zip and tar.gz formats. Documentation (both user docs and docs about extending the database support) is also available is zip and tar.gz, as well as online in html-format. I've also put up a precompiled Win32 dll, but I don't think that will find much use because the module API number of the dll and php must match... If you have the time and/or inclination to give it a try, let me know what you think and how it can be improved. Enjoy! Cheerio, Marc. (BTW, I only subscribe to the php-dev list, not the php-db list, so please mail me directly...) -- 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] CVS Account Request
Full name: Bertrand Mansion Email: [EMAIL PROTECTED] ID: mansion Purpose: PEAR development in /HTML and PHPLIB merge -- 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 #9626 Updated: unable to use sybase-extension
At 12:04 13.03.2001 +, [EMAIL PROTECTED] wrote: ID: 9626 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Sybase-ct (ctlib) related Description: unable to use sybase-extension libct.dll, libcs.dll and php4ts.dll are not found. Where can I find these dll's and where should I place them? libct.dll and libcs.dll should be part of sybase. you'll need to add the path, where they are stored, to your PATH environment variable. daniel /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.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] PHP 4.0 Bug #9712 Updated: zend_is_callable clobbers values if using arrays as parameters for preg_replace
ID: 9712 Updated by: andrei Reported By: [EMAIL PROTECTED] Old-Status: Assigned Status: Closed Bug Type: PCRE related Assigned To: andrei Comments: Removed /F modifier from preg_replace(), created preg_replace_callback() function instead. Previous Comments: --- [2001-03-12 15:47:53] [EMAIL PROTECTED] Ok, I'll check into this.. -Andrei --- [2001-03-12 14:37:22] [EMAIL PROTECTED] $search = array("!one!e", "!two!e"); // can be any code below $replace = array("1", "2"); preg_replace($search, $replace, $matches) Error message will look sth like: failed to execute regexp code "Array". Further investigation shows that pcre uses the new zend_is_callable which returns "Array" for the array. --Wez. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9712edit=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 #9726: the HTTP_POST_VARS are prepended by RC BS
From: [EMAIL PROTECTED] Operating system: Linux porky.devel.redhat.com 2.2.17-8smp #1 SMP Fri Nov 17 16:12:17 EST 2000 i686 PHP version: 4.0.4pl1 PHP Bug Type: Apache related Bug description: the HTTP_POST_VARS are prepended by RC BS The script below worked with php3. When the button input type="submit" name="Enregistrer" value="Enregistrer" is clicked, the variable $Enregistrer gets the value "Enregistrer" and the test if($Enregistrer=="Enregistrer") says yes. We transfered our site on a server with PHP4 and then the HTTP_POST_VARS are prepended by two characters RC BS (decimal codes 13 10) and the above test says no. If I change the test to if(strcmp(substr($Enregistrer,2),"Enregistrer")==0) it says yes. _ html head SCRIPT LANGUAGE="JavaScript" src="script.js" /SCRIPT /head body form method=POST enctype="multipart/form-data" action="? echo $PHP_SELF ?" name="formu" ?php $xxx=gettype($Enregistrer); $yyy=strlen($Enregistrer); echo "$xxx:$yyy:$Enregistrer:br "; $xxx=ord($Enregistrer[0]); $yyy=ord($Enregistrer[1]); echo "-$xxx-$yyy-$Enregistrer[2]-$Enregistrer[11]-$Enregistrer[12]-br"; $xxx=gettype("$Fonction"); $yyy=strlen("$Fonction"); echo "$xxx:$yyy:$Fonction:br"; $xxx=ord($Fonction[0]); $yyy=ord($Fonction[1]); echo "-$xxx-$yyy-$Fonction[2]-$Fonction[21]-$Fonction[22]-br"; /* if(strcmp(substr($Enregistrer,2),"Enregistrer")==0) */ if($Enregistrer=="Enregistrer") { echo "enregistrer"; } else { echo "ne pas enregistrer"; } ? P ?php PRINT "select name=\"Fonction\""; PRINT "option selected value=\"$Fonction\"$Fonction"; PRINT "option value = \"Professeur\" Professeur/option"; PRINT "option value = \"Maître\" Maître/option"; PRINT "/select"; ? p input type="submit" name="Enregistrer" value="Enregistrer" /p /form /body /html _ Configure Command './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-shared' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8' '--with-xml' __ other parts of phpinfo() register_globalsOn Apache Version Apache/1.3.14 Apache Release 10314100 Apache API Version 9990320 -- Edit Bug report at: http://bugs.php.net/?id=9726edit=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 #9626 Updated: unable to use sybase-extension
ID: 9626 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Sybase-ct (ctlib) related Description: unable to use sybase-extension Sybase Open Client - EBF 9464 12.0 05 Feb 2001 EBF/Patch I have downloaded this client from sybase, which includes the requested dll's. I have also added the the subdirectory called dll to my system path. After a reboot no errors occurred while running dependcy walker on php-sybase-ct.dll, but I still got this weird "warning" from php. Previous Comments: --- [2001-03-13 10:16:21] [EMAIL PROTECTED] After following your guide, I've no longer errors on php-sybase-ct.dll when opening it in dependency walker. However, I've still got problems using the sybase-functions. sybase_connect for example, returns: Warning: Sybase: Unable to allocate connection record in c:internwebhtmltrondsybase.php on line 21 When running from the dos-prompt, the same good'ol error: Call to undefined function is displayed. What is wrong? --- [2001-03-13 09:34:08] [EMAIL PROTECTED] After following your guide, I've no longer errors on php-sybase-ct.dll when opening it in dependency walker. However, I've still got problems using the sybase-functions. sybase_connect for example, returns: Warning: Sybase: Unable to allocate connection record in c:internwebhtmltrondsybase.php on line 21 When running from the dos-prompt, the same good'ol error: Call to undefined function is displayed. What is wrong? --- [2001-03-13 07:04:29] [EMAIL PROTECTED] libct.dll, libcs.dll and php4ts.dll are not found. Where can I find these dll's and where should I place them? I'm getting pretty desperate here, so if you have any solutions, I would be very glad. -- Trond Straume --- [2001-03-13 06:18:26] [EMAIL PROTECTED] can you please download the dependcy walker and check if all external dlls are found? http://www.dependencywalker.com --- [2001-03-08 10:51:24] [EMAIL PROTECTED] When I am trying to connect a sybase-database using the php_sybase_ct.dll module, but all I get is a pop-up window telling: "Unable to load dynamic library './extensions/php_sybase-ct.dll' - The dynamic library could not be found.". I have really worked hard on this one. I'm sure that the path is correct spelled in php.ini, because the postgreSQL-dll placed in the same directory and it's working out fine. --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. Full Bug description available at: http://bugs.php.net/?id=9626 -- 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 #9626 Updated: unable to use sybase-extension
ID: 9626 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Sybase-ct (ctlib) related Description: unable to use sybase-extension PS! The subdirectory "dll" is a subdirectory of open client. Previous Comments: --- [2001-03-13 17:28:56] [EMAIL PROTECTED] Sybase Open Client - EBF 9464 12.0 05 Feb 2001 EBF/Patch I have downloaded this client from sybase, which includes the requested dll's. I have also added the the subdirectory called dll to my system path. After a reboot no errors occurred while running dependcy walker on php-sybase-ct.dll, but I still got this weird "warning" from php. --- [2001-03-13 10:16:21] [EMAIL PROTECTED] After following your guide, I've no longer errors on php-sybase-ct.dll when opening it in dependency walker. However, I've still got problems using the sybase-functions. sybase_connect for example, returns: Warning: Sybase: Unable to allocate connection record in c:internwebhtmltrondsybase.php on line 21 When running from the dos-prompt, the same good'ol error: Call to undefined function is displayed. What is wrong? --- [2001-03-13 09:34:08] [EMAIL PROTECTED] After following your guide, I've no longer errors on php-sybase-ct.dll when opening it in dependency walker. However, I've still got problems using the sybase-functions. sybase_connect for example, returns: Warning: Sybase: Unable to allocate connection record in c:internwebhtmltrondsybase.php on line 21 When running from the dos-prompt, the same good'ol error: Call to undefined function is displayed. What is wrong? --- [2001-03-13 07:04:29] [EMAIL PROTECTED] libct.dll, libcs.dll and php4ts.dll are not found. Where can I find these dll's and where should I place them? I'm getting pretty desperate here, so if you have any solutions, I would be very glad. -- Trond Straume --- [2001-03-13 06:18:26] [EMAIL PROTECTED] can you please download the dependcy walker and check if all external dlls are found? http://www.dependencywalker.com --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. Full Bug description available at: http://bugs.php.net/?id=9626 -- 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 4.0 Bug #9617 Updated: fileposition error
Hello Bug, Tuesday, March 13, 2001, 12:34:46 PM, you wrote: BD ID: 9617 BD Updated by: dbeu BD Reported By: [EMAIL PROTECTED] BD Old-Status: Open BD Status: Closed BD Bug Type: Filesystem function related BD Assigned To: BD Comments: BD following script works okay for me (win2k) so closing. BD ?php BD $output = fopen("test.txt", "a+"); BD echo "bytes written: ", fputs($output, "test"), "\nbrfile offset: ". ftell($output); BD fclose($output); ? BD Previous Comments: BD --- BD [2001-03-08 06:02:20] [EMAIL PROTECTED] BD Open an existing text file (insert some crap before) like: BD $output = fopen("test.txt", "a"); #we want append something BD Here is the problem: BD $position = ftell($output); #returns always 0 and not the real fileposition!!! BD fputs($output, "test"); #but this works without any problems (it has the real fileposition, but ftell gets the false one) BD I found this bug only on windows systems, not on linux. BD Achim BD --- BD ATTENTION! Do NOT reply to this email! BD To reply, use the web interface found at http://bugs.php.net/?id=9617edit=2 do you tried to get the fileposition before you write something with fputs and i tested it only with "a" and not with "a+", may be there is a difference... you can get my script on http://www.lkcc.org/achim! search for "#fix for windows?!?!" within the input.php. the whole program doesnt work, if you remove this line from the sourcecode. -- Best regards, Achimmailto:[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] PHP 4.0 Bug #9708 Updated: double #defined V_RENAME, the second
ID: 9708 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Compile Failure Description: double #defined V_RENAME, the second The alloca.h file, I have written, is this: #ifndef _H_ALLOCA #define _H_ALLOCA #pragma alloca /*needed, as no alloca in any library of AIX*/ #ifdef _NO_PROTO extern void *alloca(); #else /* _NO_PROTO */ #include stdlib.h /*size_t is defined in here*/ extern void *alloca(size_t); #endif /* _NO_PROTO */ #endif /* _H_ALLOCA */ Regards Andreas Pistoor Previous Comments: --- [2001-03-12 10:07:29] [EMAIL PROTECTED] Hi, I got this symptom by compiling PHP: xlc -I. -I/home/pistoor/php-4.0.4pl1/ext/shmop -I/home/pistoor/php-4.0.4pl1/main -I/home/pistoor/php-4.0.4pl1 -I/home/pistoor/php-4.0.4pl1/Zend -I/home/pistoor/php-4.0.4pl1/ext/mysql/libmysql -I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/pistoor/php-4.0.4pl1/TSRM -DXML_BYTE_ORDER=21 -qsource -qshowinc -I/home/pistoor -DHAVE_INT_8_16_32=1 -c shmop.c touch shmop.lo "/usr/include/sys/vnode.h", line 102.9: 1506-213 (S) Macro name V_RENAME cannot be redefined. "/usr/include/sys/vnode.h", line 102.9: 1506-358 (I) "V_RENAME" is defined on line 190 of /home/pistoor/php-4.0.4pl1/TSRM/tsrm_virtual_cwd.h. I use the xlc-version of the C Set ++ for AIX compiler, as it is more ANSI-C than the cc-version. It also shows more errors. My configuration of PHP (as a CGI-program to be used by Lynx): CC=xlc ./configure --prefix=/home/pistoor/php --with-config-file-path=/home/pistoor/php --enable-debug --enable-sigchild --enable-calendar --enable-ftp --enable-trans-sid --enable-shmop --with-regex=php --enable-sysvsem --enable-sysvshm --enable-wddx --enable-yp The file ext/shmop/shmop.c includes sys/shm.h without taking care of V_RENAME. I have inluded some code to save V_RENAME: #ifdef V_RENAME #define PHP_V_RENAME V_RENAME #undef V_RENAME #endif #include sys/ipc.h #include sys/shm.h #ifdef PHP_V_RENAME #ifdef V_RENAME #undef V_RENAME #endif #define V_RENAME PHP_V_RENAME #undef PHP_V_RENAME #endif Regard Andreas Pistoor PS. I got also the error depending on HAVE_INT_8_16_32! --- Full Bug description available at: http://bugs.php.net/?id=9708 -- 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 #9703 Updated: missing alloca-prototype in AIX
ID: 9703 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Compile Failure Description: missing alloca-prototype in AIX The alloca.h file, I wrote, is this: #ifndef _H_ALLOCA #define _H_ALLOCA #pragma alloca #ifdef _NO_PROTO extern void *alloca(); #else /* _NO_PROTO */ #include stdlib.h /*size_t is defined in here*/ extern void *alloca(size_t); #endif /* _NO_PROTO */ #endif /* _H_ALLOCA */ Regards Andreas Pistoor Previous Comments: --- [2001-03-12 08:29:42] [EMAIL PROTECTED] Hi, I got this symptom by compiling PHP: xlc -I. -I/home/pistoor/php-4.0.4pl1/main -I/home/pistoor/php-4.0.4pl1/main -I/home/pistoor/php-4.0.4pl1 -I/home/pistoor/php-4.0.4pl1/Zend -I/home/pistoor/php-4.0.4pl1/ext/mysql/libmysql -I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/pistoor/php-4.0.4pl1/TSRM -DXML_BYTE_ORDER=21 -qsource -qshowinc -c main.c touch main.lo "main.c", line 1181.17: 1506-068 (S) Operation between types "char*" and "int" is not allowed. "main.c", line 1250.47: 1506-280 (E) Function argument assignment between types "const unsigned char*" and "const char*" is not allowed. "main.c", line 1250.22: 1506-068 (E) Operation between types "char*" and "unsigned char*" is not allowed. I use the xlc-version of the C Set ++ for AIX compiler, as it is more ANSI-C than the cc-version. It also shows more errors. My configuration of PHP (as a CGI-program to be used by Lynx): CC=xlc ./configure --prefix=/home/pistoor/php --with-config-file-path=/home/pistoor/php --enable-debug --enable-sigchild --enable-calendar --enable-ftp --enable-trans-sid --enable-shmop --with-regex=php --enable-sysvsem --enable-sysvshm --enable-wddx --enable-yp I found, that the prototype of alloca was missing. It is not in any file in /usr/include at my computer. This causes the warning in line 1181. So I wrote the prototype myself into a headerfile alloca.h, edited (again) config.cache and rerun configure. The errors on line 1250 were caused by the mix of char and unsigned char at the call to php_base64_decode. I inserted type casts there. Regard Andreas Pistoor --- Full Bug description available at: http://bugs.php.net/?id=9703 -- 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 #9708 Updated: double #defined V_RENAME, the second
ID: 9708 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Compile Failure Description: double #defined V_RENAME, the second Sorry! The last comment was put in the wrong context. Andreas Previous Comments: --- [2001-03-13 18:16:21] [EMAIL PROTECTED] The alloca.h file, I have written, is this: #ifndef _H_ALLOCA #define _H_ALLOCA #pragma alloca /*needed, as no alloca in any library of AIX*/ #ifdef _NO_PROTO extern void *alloca(); #else /* _NO_PROTO */ #include stdlib.h /*size_t is defined in here*/ extern void *alloca(size_t); #endif /* _NO_PROTO */ #endif /* _H_ALLOCA */ Regards Andreas Pistoor --- [2001-03-12 10:07:29] [EMAIL PROTECTED] Hi, I got this symptom by compiling PHP: xlc -I. -I/home/pistoor/php-4.0.4pl1/ext/shmop -I/home/pistoor/php-4.0.4pl1/main -I/home/pistoor/php-4.0.4pl1 -I/home/pistoor/php-4.0.4pl1/Zend -I/home/pistoor/php-4.0.4pl1/ext/mysql/libmysql -I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/pistoor/php-4.0.4pl1/TSRM -DXML_BYTE_ORDER=21 -qsource -qshowinc -I/home/pistoor -DHAVE_INT_8_16_32=1 -c shmop.c touch shmop.lo "/usr/include/sys/vnode.h", line 102.9: 1506-213 (S) Macro name V_RENAME cannot be redefined. "/usr/include/sys/vnode.h", line 102.9: 1506-358 (I) "V_RENAME" is defined on line 190 of /home/pistoor/php-4.0.4pl1/TSRM/tsrm_virtual_cwd.h. I use the xlc-version of the C Set ++ for AIX compiler, as it is more ANSI-C than the cc-version. It also shows more errors. My configuration of PHP (as a CGI-program to be used by Lynx): CC=xlc ./configure --prefix=/home/pistoor/php --with-config-file-path=/home/pistoor/php --enable-debug --enable-sigchild --enable-calendar --enable-ftp --enable-trans-sid --enable-shmop --with-regex=php --enable-sysvsem --enable-sysvshm --enable-wddx --enable-yp The file ext/shmop/shmop.c includes sys/shm.h without taking care of V_RENAME. I have inluded some code to save V_RENAME: #ifdef V_RENAME #define PHP_V_RENAME V_RENAME #undef V_RENAME #endif #include sys/ipc.h #include sys/shm.h #ifdef PHP_V_RENAME #ifdef V_RENAME #undef V_RENAME #endif #define V_RENAME PHP_V_RENAME #undef PHP_V_RENAME #endif Regard Andreas Pistoor PS. I got also the error depending on HAVE_INT_8_16_32! --- Full Bug description available at: http://bugs.php.net/?id=9708 -- 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 #9727: Unable to use @ in URL passwords with fopen()
From: [EMAIL PROTECTED] Operating system: rh 6.1 PHP version: 4.0.4pl1 PHP Bug Type: Filesystem function related Bug description: Unable to use @ in URL passwords with fopen() I'm running 4.0.4pl1 on redhat 6.1. I've tried (raw and regular) urlencoding my ftp password to use with fopen, but if there's a @ in it it says 'bad file descriptor'. I can open any file via ftp just fine, as long as there's no @ in the filename. The 'allow url fopen' (can't remember the exact name) is set to ON in my php.ini. Here's my script: html body ? $pword = 'stuff@stuff'; $server = "servername"; $filename = "filename"; $pword = urlencode($pword); echo $filename = 'ftp://username:' . $pword . "@$servername/$filename"; $fd = fopen ($filename, "r"); echo $contents = fread ($fd, 100); fclose ($fd); ? /body /html -- Edit Bug report at: http://bugs.php.net/?id=9727edit=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] Err : Invalid library
hi, i've been playing around with the php-gtk extension (don't worry this is not OT), but am having problems after installing the latest cvs version of php4. when I try and run a script (and even when i do 'php -v') i get the following error : PHP Warning: Invalid library (maybe not a PHP library) 'php_gtk.so' in Unknown on line 0 now, I know that this library works because I had it running with my previous cvs version of php. I've tried reinstalling php-gtk, and also php4 from both cvs and snaps.php.net but still the same problem. has anyone got any ideas what could be causing this problem ? thanks, barry -- http://www.theshining.org -- 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] Err : Invalid library
On Tue, Mar 13, 2001 at 05:24:58PM +, Barry Mitchelson wrote: hi, i've been playing around with the php-gtk extension (don't worry this is not OT), but am having problems after installing the latest cvs version of php4. when I try and run a script (and even when i do 'php -v') i get the following error : PHP Warning: Invalid library (maybe not a PHP library) 'php_gtk.so' in Unknown on line 0 now, I know that this library works because I had it running with my previous cvs version of php. I've tried reinstalling php-gtk, and also php4 from both cvs and snaps.php.net but still the same problem. has anyone got any ideas what could be causing this problem ? Yes and I have partial solution. Not pretty though but it works for me at least. So, problem caused by several things: 1. Build environment for self contained extensions (SCE) is generally broken in PHP4. It wasn't work in past, it does not work now in one particular case: when you have several PHP_ARG_WITH or PHP_ARG_ENABLE in config.m4. In case of SCE, all of these macroses get positive answer regardless of user input or library checks because of this code in PHP_ARG_ANALYZE (acinclude.m4): if test "$php_always_shared" = "yes"; then ext_output="yes, shared" ext_shared=yes test "[$]$1" = "no" $1=yes fi So, even if user states PHP_SOMETHING = no, this code will rewrite it to PHP_SOMETHING = yes This particulary touches 'readline', 'mysql', 'dba', 'interbase', 'mcrypt', 'mhash' and other extensions. 2. PHP-GTK suffers from other bug. It is also a problem with build environment: when you do #include "php_config.h" in SCE module, then main PHP4 php_config.h which is installed on the system is included, not locally created php_config.h which contains proper definitions of HAVE_PHP_GTK and COMPILE_DL_PHP_GTK symbols. In the CVS version of PHP4 header file which is generated as SCE config file is renamed to config.h from php_config.h few days ago. But modules themselves were not updated, so there are no modules in PHP4 than really include config.h from the current directory, so HAVE_MODULENAME will be undefined for all of them (if they are compiled as SCE) and all code will be skipped due #if HAVE_MODULENAME actual code #endif in most of them. This particulary touches PHP-GTK, mysql, dba, and most of other modules. Solution for PHP-GTK is to pass -DHAVE_PHP_GTK=1 -DCOMPILE_DL_PHP_GTK=1 to configure through CFLAGS. Or fix SCE build environment (macros in acinclude.m4, pear/pear.m4 and #include "php_config.h" in all modules). -- Sincerely yours, Alexander Bokovoy The Midgard Project | www.midgard-project.org |Aurora RD team Minsk Linux Users Group |www.minsk-lug.net| www.aurora-linux.com ALT Linux Team |www.alt-linux.org| Architecte Open Source -- Conscience is what hurts when everything else feels so good. -- 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 #9728: I cannot post any string over any form or send through a GET method....
From: [EMAIL PROTECTED] Operating system: RedHat 7.0 PHP version: 4.0.4pl1 PHP Bug Type: Apache related Bug description: I cannot post any string over any form or send through a GET method Hi there, I'm in trouble with the new RedHat release... too many bugs, and I havent a clue of . i know this is too "space"... but Why I cant post any data through the POST method or GET one ??? My config is RedHAT 7.0, apache 1.3.14 , PHP 4.0.4pl1, ... With PERL i have no problems posting data. so its PHP who doesnt know how to do it I have to say I have installed PHP succesfully about a hundred of times under RedHAT 6.X . so is it 7.0 the problem ??? many thanks!!! regards, José PLANS who begins with the famous RedHAT 7.0 bugs... ::-( -- Edit Bug report at: http://bugs.php.net/?id=9728edit=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] Err : Invalid library
On Tue, 13 Mar 2001, Alexander Bokovoy wrote: 2. PHP-GTK suffers from other bug. It is also a problem with build environment: when you do #include "php_config.h" in SCE module, then main PHP4 php_config.h which is installed on the system is included, not locally created php_config.h which contains proper definitions of HAVE_PHP_GTK and COMPILE_DL_PHP_GTK symbols. In the CVS version of PHP4 header file which is generated as SCE config file is renamed to config.h from php_config.h few days ago. But modules themselves were not updated, so there are no modules in PHP4 than really include config.h from the current directory, so HAVE_MODULENAME will be undefined for all of them (if they are compiled as SCE) and all code will be skipped due #if HAVE_MODULENAME actual code #endif in most of them. This particulary touches PHP-GTK, mysql, dba, and most of other modules. Solution for PHP-GTK is to pass -DHAVE_PHP_GTK=1 -DCOMPILE_DL_PHP_GTK=1 to configure through CFLAGS. Or fix SCE build environment (macros in acinclude.m4, pear/pear.m4 and #include "php_config.h" in all modules). Alex, Good job of tracking this down. I fixed php-gtk to use config.h. -Andrei "Try to spend the next 30 seconds not thinking about a blue-eyed polar bear." -Feodor Dostoevsky -- 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] CVS Account Request
Full name: Jared Skinner Email: [EMAIL PROTECTED] ID: jskinner Purpose: I need the account to help maintain GTK website -- 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 #9729: --enable-sockets problem
From: [EMAIL PROTECTED] Operating system: Solaris2.8 PHP version: 4.0.4pl1 PHP Bug Type: *Install and Config Bug description: --enable-sockets problem I tried to configure the php-4.0.4pl1 with options "--enable-sockets" under Solaris 2.8. The commands that I typed in are shown next. /export/xmtang/php-4.0.4pl1./configure --prefix="/export/xmtang/php" --with -apache=../apache_1.3.14 --enable-sockets /export/xmtang/php-4.0.4pl1make Then I got some errors. make[3]: Entering directory `/export/xmtang/php-4.0.4pl1/ext/sockets' gcc -I. -I/export/xmtang/php-4.0.4pl1/ext/sockets -I/export/xmtang/php-4.0. 4pl1 /main -I/export/xmtang/php-4.0.4pl1 -I/export/xmtang/apache_1.3.14/src/inclu de - I/export/xmtang/apache_1.3.14/src/os/unix -I/export/xmtang/php-4.0.4pl1/Zend -I/ export/xmtang/php-4.0.4pl1/ext/mysql/libmysql -I/export/xmtang/php-4.0.4pl1/ ext/ xml/expat/xmltok -I/export/xmtang/php-4.0.4pl1/ext/xml/expat/xmlparse -I/exp ort/ xmtang/php-4.0.4pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g -O2 -c sockets.c touch sockets.lo sockets.c: In function `php_if_recvmsg': sockets.c:1728: structure has no member named `msg_control' sockets.c:1729: structure has no member named `msg_controllen' sockets.c:1731: structure has no member named `msg_control' sockets.c:1732: structure has no member named `msg_controllen' sockets.c:1735: structure has no member named `msg_flags' sockets.c:1741: structure has no member named `msg_control' sockets.c:1750: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast sockets.c:1754: structure has no member named `msg_controllen' sockets.c:1755: structure has no member named `msg_flags' sockets.c:1787: structure has no member named `msg_control' sockets.c:1788: structure has no member named `msg_controllen' sockets.c:1790: structure has no member named `msg_control' sockets.c:1791: structure has no member named `msg_controllen' sockets.c:1794: structure has no member named `msg_flags' sockets.c:1800: structure has no member named `msg_control' sockets.c:1810: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast sockets.c:1812: structure has no member named `msg_controllen' sockets.c:1814: structure has no member named `msg_flags' make[3]: *** [sockets.lo] Error 1 make[3]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext/sockets' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext/sockets' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext' make: *** [all-recursive] Error 1 -- Edit Bug report at: http://bugs.php.net/?id=9729edit=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 #9730: When following redirects, username and password ignored
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0 Latest CVS (13/03/2001) PHP Bug Type: *URL Functions Bug description: When following redirects, username and password ignored fopen() and friends when opening "http://user:pass@site" do not send username and password when following a redirect. This patch would solve the problem: Index: http_fopen_wrapper.c === RCS file: /repository/php4/ext/standard/http_fopen_wrapper.c,v retrieving revision 1.7 diff -u -3 -p -r1.7 http_fopen_wrapper.c --- http_fopen_wrapper.c2001/02/26 06:07:17 1.7 +++ http_fopen_wrapper.c2001/03/13 18:45:50 @@ -71,9 +71,9 @@ FILE *php_fopen_url_wrap_http(char *path, char *mode, int options, int *issock, int *socketd, char **opened_path) { FILE *fp=NULL; - php_url *resource=NULL; + php_url *resource=NULL, *resource_new=NULL; char tmp_line[128]; - char location[512]; + char location[512], location_new[512]; char hdr_line[8192]; int body = 0; char *scratch; @@ -269,12 +269,42 @@ FILE *php_fopen_url_wrap_http(char *path if (!reqok) { SOCK_FCLOSE(*socketd); *socketd = 0; - free_url(resource); if (location[0] != '\0') { zval **response_header_new, *entry, **entryp; + + if (resource-user == NULL || resource-pass == NULL) { + strcpy(location_new, location); + } else { /* we have username and password */ + resource_new = url_parse((char *) location); + if (resource_new == NULL) { + php_error(E_WARNING, "Invalid redirect URL, %s", location); + *issock = BAD_URL; + free_url(resource); + return NULL; + } + + /* use port 80 if one wasn't specified */ + if (resource_new-port == 0) { + resource_new-port = 80; + } + + snprintf (location_new, sizeof(location_new), +"http://%s:%s@%s:%d", resource-user, resource-pass, resource_new-host, +resource_new-port); + + if (resource_new-path != NULL) { + strlcat (location_new, resource_new-path, sizeof +(location_new)); + } + if (resource_new-query != NULL) { + strlcat (location_new, "?", sizeof(location_new)); + strlcat (location_new, resource_new-query , +sizeof(location_new)); + } + free_url(resource_new); + } + + + free_url(resource); ELS_FETCH(); - fp = php_fopen_url_wrap_http(location, mode, options, issock, socketd, opened_path); + fp = php_fopen_url_wrap_http(location_new, mode, options, +issock, socketd, opened_path); if (zend_hash_find(EG(active_symbol_table), "http_response_header", sizeof("http_response_header"), (void **) response_header_new) == SUCCESS) { entryp = entry; MAKE_STD_ZVAL(entry); @@ -289,6 +319,7 @@ FILE *php_fopen_url_wrap_http(char *path } goto out; } else { + free_url(resource); fp = NULL; goto out; } -- Edit Bug report at: http://bugs.php.net/?id=9730edit=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 #9731: Using PHP in ISAPI mode, the ASP Servers
From: [EMAIL PROTECTED] Operating system: WIN 2000 Server PHP version: 4.0.4pl1 PHP Bug Type: IIS related Bug description: Using PHP in ISAPI mode, the ASP Servers -- Edit Bug report at: http://bugs.php.net/?id=9731edit=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 #9732: Using PHP in ISAPI mode, the ASP Server stops to work
From: [EMAIL PROTECTED] Operating system: WIN 2000 Server PHP version: 4.0.4pl1 PHP Bug Type: IIS related Bug description: Using PHP in ISAPI mode, the ASP Server stops to work I've downloaded the ISAPI flavour of PHP 4.04pl1, and installed the DLL's under MS-WIN 2000 Server (IIS 5.0)following the instructions. The problem: since the first PHP page is connected from the server, all ASP functions stop to work! As well as the PHP functions. I was forced to remove PHP functions from my server. There's another version - CGI-BIN executable mode - wich I was unable to install, I get an error message: MSCOMCTL.OCX is missing. I've checked other Win2K servers, and also the Microsoft Download website, but was unable to find this library. Where should I go? This problem is keepin' away my company from offer PHP functions along the network, and there is no possibility to migrate to an Unix/Linux server right now. So, I'm waiting for some tip in order to run PHP (ISAPI or CGI-BIN version, at your pleasure) in my poor IIS 5.0 server. Thanks, Fernando Teodoro Rantac Comunicações -- Edit Bug report at: http://bugs.php.net/?id=9732edit=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 #9733: failure to fully compile
From: [EMAIL PROTECTED] Operating system: Linux 2.2.17 (Slackware 7.0) PHP version: 4.0.4pl1 PHP Bug Type: Compile Failure Bug description: failure to fully compile after running ./configure ; make, I get the following errors. /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:425: undefined reference to `php_wddx_constructor' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:429: undefined reference to `php_wddx_packet_start' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:430: undefined reference to `php_wddx_add_chunk_ex' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:433: undefined reference to `php_wddx_serialize_var' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:436: undefined reference to `php_wddx_add_chunk_ex' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:437: undefined reference to `php_wddx_packet_end' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:438: undefined reference to `php_wddx_gather' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:439: undefined reference to `php_wddx_destructor' .libs/libphp4.a(session.o): In function `ps_srlzr_decode_wddx': /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:463: undefined reference to `php_wddx_deserialize_ex' collect2: ld returned 1 exit status make[1]: *** [php] Error 1 make[1]: Leaving directory `/home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1' make: *** [all-recursive] Error 1 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I also get this silly error when trying to ./configure --with-apache=/usr/local/apache/include configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local/apache/include/ but, a simple ls /usr/local/apache/include/*httpd* shows us otherwise. [/home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1] $ ls /usr/local/apache/include/*httpd* /usr/local/apache/include/httpd.h [02:42pm] [root] [xibalba(+bash-2.03)] [1.90mb] [H/697 C/197 U/0 D/2 ] [/home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1] $ I tried everything from /usr/local/apache/include/httpd.h /usr/local/apache /usr/local/apache/include/htttpd, and neither work. I also get the no htttpd.h error with php-3.0.18. Please let me know if this is fixed or if it's just my own stupidity.. I really need php ;(. -Regards -- Edit Bug report at: http://bugs.php.net/?id=9733edit=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] CVS Account Request
Full name: Alexander Bokovoy Email: [EMAIL PROTECTED] ID: ab Purpose: Work on PHP4 extension for Midgard (resending request to renew account) -- 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] 4.0.5RC1 packaged
http://www.php.net/distributions/RCs/php-4.0.5RC1.tar.gz Do your thing :) 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] Script for proper build of SCE modules
Hi! Following little script does quick conversion of all modules' sources to new configuration header file for self-contained-extensions (config.h instead of php_config.h). It is not optimized but does its work fine: after that all modules that supposed to be compiled in SCE mode, compile and get loaded into PHP without errors. #!/bin/bash PHP4_ROOT=php4 EXTENSIONS=`find $PHP4_ROOT/ext -type d -maxdepth 1 -print` PWD_X=`pwd` for i in $EXTENSIONS ; do cd $i for j in `ls *.c` ; do perl -pi -e "s/#include \"php.h\"/#include \"php.h\"\n#include \"config.h\"/" $j done cd $PWD_X done -- Sincerely yours, Alexander Bokovoy The Midgard Project | www.midgard-project.org |Aurora RD team Minsk Linux Users Group |www.minsk-lug.net| www.aurora-linux.com ALT Linux Team |www.alt-linux.org| Architecte Open Source -- History repeats itself only if one does not listen the first time. -- 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] Err : Invalid library
many thanks :) barry On Tue, Mar 13, 2001 at 07:46:32PM +0200, Alexander Bokovoy wrote: On Tue, Mar 13, 2001 at 05:24:58PM +, Barry Mitchelson wrote: hi, i've been playing around with the php-gtk extension (don't worry this is not OT), but am having problems after installing the latest cvs version of php4. when I try and run a script (and even when i do 'php -v') i get the following error : PHP Warning: Invalid library (maybe not a PHP library) 'php_gtk.so' in Unknown on line 0 now, I know that this library works because I had it running with my previous cvs version of php. I've tried reinstalling php-gtk, and also php4 from both cvs and snaps.php.net but still the same problem. has anyone got any ideas what could be causing this problem ? Yes and I have partial solution. Not pretty though but it works for me at least. So, problem caused by several things: 1. Build environment for self contained extensions (SCE) is generally broken in PHP4. It wasn't work in past, it does not work now in one particular case: when you have several PHP_ARG_WITH or PHP_ARG_ENABLE in config.m4. In case of SCE, all of these macroses get positive answer regardless of user input or library checks because of this code in PHP_ARG_ANALYZE (acinclude.m4): if test "$php_always_shared" = "yes"; then ext_output="yes, shared" ext_shared=yes test "[$]$1" = "no" $1=yes fi So, even if user states PHP_SOMETHING = no, this code will rewrite it to PHP_SOMETHING = yes This particulary touches 'readline', 'mysql', 'dba', 'interbase', 'mcrypt', 'mhash' and other extensions. 2. PHP-GTK suffers from other bug. It is also a problem with build environment: when you do #include "php_config.h" in SCE module, then main PHP4 php_config.h which is installed on the system is included, not locally created php_config.h which contains proper definitions of HAVE_PHP_GTK and COMPILE_DL_PHP_GTK symbols. In the CVS version of PHP4 header file which is generated as SCE config file is renamed to config.h from php_config.h few days ago. But modules themselves were not updated, so there are no modules in PHP4 than really include config.h from the current directory, so HAVE_MODULENAME will be undefined for all of them (if they are compiled as SCE) and all code will be skipped due #if HAVE_MODULENAME actual code #endif in most of them. This particulary touches PHP-GTK, mysql, dba, and most of other modules. Solution for PHP-GTK is to pass -DHAVE_PHP_GTK=1 -DCOMPILE_DL_PHP_GTK=1 to configure through CFLAGS. Or fix SCE build environment (macros in acinclude.m4, pear/pear.m4 and #include "php_config.h" in all modules). -- Sincerely yours, Alexander Bokovoy The Midgard Project | www.midgard-project.org |Aurora RD team Minsk Linux Users Group |www.minsk-lug.net| www.aurora-linux.com ALT Linux Team |www.alt-linux.org| Architecte Open Source -- Conscience is what hurts when everything else feels so good. -- 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] -- http://www.theshining.org -- 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 #9731 Updated: Using PHP in ISAPI mode, the ASP Servers
ID: 9731 Updated by: derick Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: IIS related Assigned To: Comments: Not enough information, read www.php.net/bugs-dos-and-donts.php before submitting a report Previous Comments: --- [2001-03-13 19:58:46] [EMAIL PROTECTED] --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9731edit=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 #9732 Updated: Using PHP in ISAPI mode, the ASP Server stops to work
ID: 9732 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: IIS related Assigned To: Comments: do you have the "asp_tags" configuration value enabled or disable? Previous Comments: --- [2001-03-13 20:10:07] [EMAIL PROTECTED] I've downloaded the ISAPI flavour of PHP 4.04pl1, and installed the DLL's under MS-WIN 2000 Server (IIS 5.0)following the instructions. The problem: since the first PHP page is connected from the server, all ASP functions stop to work! As well as the PHP functions. I was forced to remove PHP functions from my server. There's another version - CGI-BIN executable mode - wich I was unable to install, I get an error message: MSCOMCTL.OCX is missing. I've checked other Win2K servers, and also the Microsoft Download website, but was unable to find this library. Where should I go? This problem is keepin' away my company from offer PHP functions along the network, and there is no possibility to migrate to an Unix/Linux server right now. So, I'm waiting for some tip in order to run PHP (ISAPI or CGI-BIN version, at your pleasure) in my poor IIS 5.0 server. Thanks, Fernando Teodoro Rantac Comunicações --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9732edit=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 #9734: Error
From: [EMAIL PROTECTED] Operating system: Unix PHP version: 4.0.4pl1 PHP Bug Type: MySQL related Bug description: Error It seems like the DELETE query don't return any error so I have to test first for the existing of the element than if exist I'll delete it. $db = mysql_connect("localhost", "root"); mysql_select_db("MY_DBASE", $db); $Query="SELECT * FROM MY_DATA WHERE MY_DATA.id=$id"; $result = mysql_query($Query, $db); $rows = mysql_num_rows($result); if ($rows0) { $Query="DELETE FROM MY_DATA WHERE MY_DATA.id=$id"; mysql_query($Query, $db); print("P align=centerfont size=6 face=italicstrongRecored $id deleted/strong/font\n"); } else { printf ("P align=centerfont size=6 face=italicstrong Error deleting record!:/strong %s/font\n", mysql_error ()); } -- Edit Bug report at: http://bugs.php.net/?id=9734edit=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 #9735: Mysql / IMAP issues
From: [EMAIL PROTECTED] Operating system: LInux Redhat 7 PHP version: 4.0.4pl1 PHP Bug Type: MySQL related Bug description: Mysql / IMAP issues WHen using imap and mysql modules together, the imap will fail with a "Unable to find stream error" anytime that the imap_open is called after a mysql_connect call. I am using rpms, all same version. If oyu put the imap calls beore the ysql_connect, no problem, just in that psecific order. I can send specific code if needed. Dan Ellis -- Edit Bug report at: http://bugs.php.net/?id=9735edit=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 #9721 Updated: none
ID: 9721 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Feature/Change Request Assigned To: Comments: Please ask this on [EMAIL PROTECTED] --Jani Previous Comments: --- [2001-03-13 03:16:39] [EMAIL PROTECTED] Hello, What happened to the OS/2 Links? I just found the PHP Os/2 release last week and came back to grab the binary and have now discovered nothing is the same. :-( Please point me to the url where this is located. Thanks. ...Darrell --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9721edit=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 #9722 Updated: foreach() operates on a copy of an object
ID: 9722 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Class/Object related Assigned To: Comments: Please read the manual: http://www.php.net/manual/en/control-structures.foreach.php "Note: Also note that foreach operates on a copy of the specified array, not the array itself, therefore the array pointer is not modified like with the each construct." --Jani Previous Comments: --- [2001-03-13 05:09:29] [EMAIL PROTECTED] The following two array looping statements are not equal (Assuming Update() updates some instance variables in the object) foreach( $objs as $o ) $o-Update() and for($i=0; $icount($objs); ++$i) $objs[$i]-Update(); In the first case the Update() method will change an anonymous copy of the object in the array while in the second case the update will work on the object in the array. Hence any changes that Update() might do will in the first case not be done for the objects in the array. Not sure if this is a genuine bug or just a consequence of the copying semantics for objects in PHP. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9722edit=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 #9600 Updated: PHP chashing on IRIX
ID: 9600 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Reproduceable crash Assigned To: Comments: User feedback: -- Sorry, but it is the same problem with the latest vesrion from http://snaps.php.net/ /Mats Gustavsson -- Previous Comments: --- [2001-03-10 23:40:33] [EMAIL PROTECTED] Please try the latest CVS snapshot from http://snaps.php.net/ --Jani --- [2001-03-07 05:51:40] [EMAIL PROTECTED] I sucessfully install php-3.0.18 togeter with apache_1.3.17 When doing the same with php-4.0.4pl1 PHP crash. When tracining it gives the following error message: Fatal Error: attempted access to unresolvable symbol in ...libexec/libphp4.so: _array_init I hope that this can be of use. /Best Regards Mats Gustavsson --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9600edit=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 #9726 Updated: the HTTP_POST_VARS are prepended by RC BS
ID: 9726 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Apache related Assigned To: Comments: Please try the latest CVS snapshot from http://snaps.php.net/ as I can't reproduce this. --Jani Previous Comments: --- [2001-03-13 10:01:05] [EMAIL PROTECTED] The script below worked with php3. When the button input type="submit" name="Enregistrer" value="Enregistrer" is clicked, the variable $Enregistrer gets the value "Enregistrer" and the test if($Enregistrer=="Enregistrer") says yes. We transfered our site on a server with PHP4 and then the HTTP_POST_VARS are prepended by two characters RC BS (decimal codes 13 10) and the above test says no. If I change the test to if(strcmp(substr($Enregistrer,2),"Enregistrer")==0) it says yes. _ html head SCRIPT LANGUAGE="JavaScript" src="script.js" /SCRIPT /head body form method=POST enctype="multipart/form-data" action="? echo $PHP_SELF ?" name="formu" ?php $xxx=gettype($Enregistrer); $yyy=strlen($Enregistrer); echo "$xxx:$yyy:$Enregistrer:br "; $xxx=ord($Enregistrer[0]); $yyy=ord($Enregistrer[1]); echo "-$xxx-$yyy-$Enregistrer[2]-$Enregistrer[11]-$Enregistrer[12]-br"; $xxx=gettype("$Fonction"); $yyy=strlen("$Fonction"); echo "$xxx:$yyy:$Fonction:br"; $xxx=ord($Fonction[0]); $yyy=ord($Fonction[1]); echo "-$xxx-$yyy-$Fonction[2]-$Fonction[21]-$Fonction[22]-br"; /* if(strcmp(substr($Enregistrer,2),"Enregistrer")==0) */ if($Enregistrer=="Enregistrer") { echo "enregistrer"; } else { echo "ne pas enregistrer"; } ? P ?php PRINT "select name="Fonction""; PRINT "option selected value="$Fonction"$Fonction"; PRINT "option value = "Professeur" Professeur/option"; PRINT "option value = "Maître" Maître/option"; PRINT "/select"; ? p input type="submit" name="Enregistrer" value="Enregistrer" /p /form /body /html _ Configure Command './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-shared' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8' '--with-xml' __ other parts of phpinfo() register_globalsOn Apache Version Apache/1.3.14 Apache Release 10314100 Apache API Version 9990320 --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9726edit=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 4.0 Bug #9732 Updated: Using PHP in ISAPI mode, the ASP Server stops to work
It makes no difference in using "asp_tags" enabled or disabled. Apparentlly we've succeeded running PHP ISAPI mode under IIS 5.0 (at least, for the last two hours), marking the specified website as "hi-security / isolated process" (security preferences under 'home directory' tab); it's not a good idea, since it takes physical memory to emulate the virtual server in this job. We're making this a temporary solution, wich keeps PHP scripts avaliable, but we keep searching for an answer on how to run PHP applications under Win2000/IIS 5.0 webserver. If there's an answer, or a recomended knowledge-database where I could find these answers, any tip will be very helpful. Thanks again, Fernando Teodoro Rantac Comunicaes - Original Message - From: Bug Database [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 5:23 PM Subject: PHP 4.0 Bug #9732 Updated: Using PHP in ISAPI mode, the ASP Server stops to work ID: 9732 Updated by: dbeu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: IIS related Assigned To: Comments: do you have the "asp_tags" configuration value enabled or disable? Previous Comments: -- - [2001-03-13 20:10:07] [EMAIL PROTECTED] I've downloaded the ISAPI flavour of PHP 4.04pl1, and installed the DLL's under MS-WIN 2000 Server (IIS 5.0)following the instructions. The problem: since the first PHP page is connected from the server, all ASP functions stop to work! As well as the PHP functions. I was forced to remove PHP functions from my server. There's another version - CGI-BIN executable mode - wich I was unable to install, I get an error message: MSCOMCTL.OCX is missing. I've checked other Win2K servers, and also the Microsoft Download website, but was unable to find this library. Where should I go? This problem is keepin' away my company from offer PHP functions along the network, and there is no possibility to migrate to an Unix/Linux server right now. So, I'm waiting for some tip in order to run PHP (ISAPI or CGI-BIN version, at your pleasure) in my poor IIS 5.0 server. Thanks, Fernando Teodoro Rantac Comunicaes -- - ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9732edit=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 #9729 Updated: --enable-sockets problem
ID: 9729 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: *Install and Config Assigned To: Comments: Please get the latest CVS snapshot from http://snaps.php.net/ and try the solution mentioned in #8667 (last comment) --Jani Previous Comments: --- [2001-03-13 19:34:28] [EMAIL PROTECTED] I tried to configure the php-4.0.4pl1 with options "--enable-sockets" under Solaris 2.8. The commands that I typed in are shown next. /export/xmtang/php-4.0.4pl1./configure --prefix="/export/xmtang/php" --with -apache=../apache_1.3.14 --enable-sockets /export/xmtang/php-4.0.4pl1make Then I got some errors. make[3]: Entering directory `/export/xmtang/php-4.0.4pl1/ext/sockets' gcc -I. -I/export/xmtang/php-4.0.4pl1/ext/sockets -I/export/xmtang/php-4.0. 4pl1 /main -I/export/xmtang/php-4.0.4pl1 -I/export/xmtang/apache_1.3.14/src/inclu de - I/export/xmtang/apache_1.3.14/src/os/unix -I/export/xmtang/php-4.0.4pl1/Zend -I/ export/xmtang/php-4.0.4pl1/ext/mysql/libmysql -I/export/xmtang/php-4.0.4pl1/ ext/ xml/expat/xmltok -I/export/xmtang/php-4.0.4pl1/ext/xml/expat/xmlparse -I/exp ort/ xmtang/php-4.0.4pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g -O2 -c sockets.c touch sockets.lo sockets.c: In function `php_if_recvmsg': sockets.c:1728: structure has no member named `msg_control' sockets.c:1729: structure has no member named `msg_controllen' sockets.c:1731: structure has no member named `msg_control' sockets.c:1732: structure has no member named `msg_controllen' sockets.c:1735: structure has no member named `msg_flags' sockets.c:1741: structure has no member named `msg_control' sockets.c:1750: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast sockets.c:1754: structure has no member named `msg_controllen' sockets.c:1755: structure has no member named `msg_flags' sockets.c:1787: structure has no member named `msg_control' sockets.c:1788: structure has no member named `msg_controllen' sockets.c:1790: structure has no member named `msg_control' sockets.c:1791: structure has no member named `msg_controllen' sockets.c:1794: structure has no member named `msg_flags' sockets.c:1800: structure has no member named `msg_control' sockets.c:1810: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast sockets.c:1812: structure has no member named `msg_controllen' sockets.c:1814: structure has no member named `msg_flags' make[3]: *** [sockets.lo] Error 1 make[3]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext/sockets' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext/sockets' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext' make: *** [all-recursive] Error 1 --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9729edit=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 #9735 Updated: Mysql / IMAP issues
ID: 9735 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: MySQL related Assigned To: Comments: Please attach short as possible example script into this bug report. --Jani Previous Comments: --- [2001-03-13 22:04:30] [EMAIL PROTECTED] WHen using imap and mysql modules together, the imap will fail with a "Unable to find stream error" anytime that the imap_open is called after a mysql_connect call. I am using rpms, all same version. If oyu put the imap calls beore the ysql_connect, no problem, just in that psecific order. I can send specific code if needed. Dan Ellis --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9735edit=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] 4.0.5RC1 packaged
You can grab win32 binaries from ftp://ftp.phpuk.org/php_binaries/ James -Original Message- From: Zeev Suraski [mailto:[EMAIL PROTECTED]] Sent: 13 March 2001 19:52 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP-QA] 4.0.5RC1 packaged http://www.php.net/distributions/RCs/php-4.0.5RC1.tar.gz Do your thing :) Zeev -- PHP Quality Assurance 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] PHP 4.0 Bug #9733 Updated: failure to fully compile
ID: 9733 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Compile Failure Assigned To: Comments: 1. Read the INSTALL file. (hint: You should be using the Apache source directory with --with-apache) 2. You propably tried to configure php with some other options before trying that plain './configure ; make'. Delete config.cache before reconfiguring. And do 'make clean ; make depend' after configure. --Jani Previous Comments: --- [2001-03-13 20:39:13] [EMAIL PROTECTED] after running ./configure ; make, I get the following errors. /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:425: undefined reference to `php_wddx_constructor' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:429: undefined reference to `php_wddx_packet_start' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:430: undefined reference to `php_wddx_add_chunk_ex' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:433: undefined reference to `php_wddx_serialize_var' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:436: undefined reference to `php_wddx_add_chunk_ex' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:437: undefined reference to `php_wddx_packet_end' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:438: undefined reference to `php_wddx_gather' /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:439: undefined reference to `php_wddx_destructor' .libs/libphp4.a(session.o): In function `ps_srlzr_decode_wddx': /home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1/ext/session/session.c:463: undefined reference to `php_wddx_deserialize_ex' collect2: ld returned 1 exit status make[1]: *** [php] Error 1 make[1]: Leaving directory `/home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1' make: *** [all-recursive] Error 1 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I also get this silly error when trying to ./configure --with-apache=/usr/local/apache/include configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local/apache/include/ but, a simple ls /usr/local/apache/include/*httpd* shows us otherwise. [/home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1] $ ls /usr/local/apache/include/*httpd* /usr/local/apache/include/httpd.h [02:42pm] [root] [xibalba(+bash-2.03)] [1.90mb] [H/697 C/197 U/0 D/2 ] [/home/LUKirc/tmp/Apachetoolbox-1.5.15/src/php-4.0.4pl1] $ I tried everything from /usr/local/apache/include/httpd.h /usr/local/apache /usr/local/apache/include/htttpd, and neither work. I also get the no htttpd.h error with php-3.0.18. Please let me know if this is fixed or if it's just my own stupidity.. I really need php ;(. -Regards --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9733edit=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 #9728 Updated: I cannot post any string over any form or send through a GET method....
ID: 9728 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Apache related Assigned To: Comments: Did you compile PHP yourself? Or did you install it from RPM? If latter, there is (somewhere) an updated PHP rpm in the RedHat FTP sites. (ftp://updates.redhat.com/ perhaps?) And if you did compile it from sources yourself, get the latest CVS snapshot from http://snaps.php.net/ as this should be fixed. If none of this helps, reopen this bug report and include a shortest possible example script which can be used to reproduce this problem. --Jani Previous Comments: --- [2001-03-13 18:57:27] [EMAIL PROTECTED] Hi there, I'm in trouble with the new RedHat release... too many bugs, and I havent a clue of . i know this is too "space"... but Why I cant post any data through the POST method or GET one ??? My config is RedHAT 7.0, apache 1.3.14 , PHP 4.0.4pl1, ... With PERL i have no problems posting data. so its PHP who doesnt know how to do it I have to say I have installed PHP succesfully about a hundred of times under RedHAT 6.X . so is it 7.0 the problem ??? many thanks!!! regards, José PLANS who begins with the famous RedHAT 7.0 bugs... ::-( --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9728edit=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 4.0 Bug #9715 Updated: Memory leak when passing string values to modular variables in COM
Hi Sniper: Actually I was posting two different cases of possibly the same bug. One case is passing String value to a static variable in the COM object. The other is passing String value as an argument in a method exposed by the COM object. They both leak memory, and all my php-com work is leaking memory so this is not an isolated problem. I use VJ++ to write COM objects, as Java handles its own garbage collection. -Original Message- From: Bug Database [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 14 March 2001 8:09 AM To: [EMAIL PROTECTED] Subject: PHP 4.0 Bug #9715 Updated: Memory leak when passing string values to modular variables in COM ID: 9715 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: COM related Assigned To: Comments: submitted twice Previous Comments: --- [2001-03-12 22:17:54] [EMAIL PROTECTED] That wasn't it... I tried it without passing a constant, and it's still leaking memory! So this is an outstanding serious bug with no workaround. --- [2001-03-12 22:02:03] [EMAIL PROTECTED] Found the problem. It only leaks memory, if I pass a CONSTANT from PHP to the COM object. All I have to do now is rewrite the php so that I'm passing a variable, not a constant. Probably this issue can be closed after someone has a look into it. --- [2001-03-12 19:56:02] [EMAIL PROTECTED] This is a new bug that I found. Memory is leaked when passing string values to String variables in the modular scope of the COM object. Example: COM object has public variable called temp which is of String data type. I instantiate the COM object and reference it with $t_obj. I pass a string value from php like this:- $t_obj-temp = "This is a test string."; PHP has many other bugs concerning passing values through COM, but this bug is more serious because I am only trying to pass String values to the variables directly, without having to call a method to pass the values to the variables. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9715edit=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 #9727 Updated: Unable to use @ in URL passwords with fopen()
ID: 9727 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Filesystem function related Assigned To: Comments: There is one bug in your script: . . $server = "servername"; . . echo $filename = 'ftp://username:'.$pword."@$servername/$filename"; . . You haven't got $servername set but $server. Try changing that. Reopen if this wasn't the problem. --Jani Previous Comments: --- [2001-03-13 18:21:51] [EMAIL PROTECTED] I'm running 4.0.4pl1 on redhat 6.1. I've tried (raw and regular) urlencoding my ftp password to use with fopen, but if there's a @ in it it says 'bad file descriptor'. I can open any file via ftp just fine, as long as there's no @ in the filename. The 'allow url fopen' (can't remember the exact name) is set to ON in my php.ini. Here's my script: html body ? $pword = 'stuff@stuff'; $server = "servername"; $filename = "filename"; $pword = urlencode($pword); echo $filename = 'ftp://username:' . $pword . "@$servername/$filename"; $fd = fopen ($filename, "r"); echo $contents = fread ($fd, 100); fclose ($fd); ? /body /html --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9727edit=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]
Re: [PHP-DEV] RE: PHP 4.0 Bug #9715 Updated: Memory leak when passingstring values to modular variables in COM
On Wed, 14 Mar 2001, Jason Gan wrote: Hi Sniper: Actually I was posting two different cases of possibly the same bug. One bug, one report. Add the other example into the other report you posted. --Jani One case is passing String value to a static variable in the COM object. The other is passing String value as an argument in a method exposed by the COM object. They both leak memory, and all my php-com work is leaking memory so this is not an isolated problem. I use VJ++ to write COM objects, as Java handles its own garbage collection. -Original Message- From: Bug Database [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 14 March 2001 8:09 AM To: [EMAIL PROTECTED] Subject: PHP 4.0 Bug #9715 Updated: Memory leak when passing string values to modular variables in COM ID: 9715 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: COM related Assigned To: Comments: submitted twice Previous Comments: --- [2001-03-12 22:17:54] [EMAIL PROTECTED] That wasn't it... I tried it without passing a constant, and it's still leaking memory! So this is an outstanding serious bug with no workaround. --- [2001-03-12 22:02:03] [EMAIL PROTECTED] Found the problem. It only leaks memory, if I pass a CONSTANT from PHP to the COM object. All I have to do now is rewrite the php so that I'm passing a variable, not a constant. Probably this issue can be closed after someone has a look into it. --- [2001-03-12 19:56:02] [EMAIL PROTECTED] This is a new bug that I found. Memory is leaked when passing string values to String variables in the modular scope of the COM object. Example: COM object has public variable called temp which is of String data type. I instantiate the COM object and reference it with $t_obj. I pass a string value from php like this:- $t_obj-temp = "This is a test string."; PHP has many other bugs concerning passing values through COM, but this bug is more serious because I am only trying to pass String values to the variables directly, without having to call a method to pass the values to the variables. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9715edit=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 #9720 Updated: Location header + session causes an infinite loop
ID: 9720 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Scripting Engine problem Assigned To: Comments: 1. Does this happen when using the latest CVS snapshot from http://snaps.php.net/ ? 2. What was the configure line used to compile PHP? 3. Can you create some short script which can be used to reproduce this? --Jani Previous Comments: --- [2001-03-13 01:08:14] [EMAIL PROTECTED] We are running PHP on Apache 1.3.14. Each developer has his own copy of the site running on a virtual host. The production site runs on port 80 (not a virtual host). When unauthenticated clients type in a URL, they are redirected to a login page. After entering valid credentials, the browser cycles in an infinite loop between their next destination and the login page. This only occurs when port 80 is explicitly specified in the URL. Explicit port numbers work fine for all virtual hosts. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9720edit=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] frontbase always on in configure?
With current cvs, I can't seem to run configure without it trying to find frontbase - I've tried not saying anything at all about frontbase, saying -- without-fbsql, and --disable-fbsql, and all 3 ways, I get: checking for FrontBase SQL92 (fbsql) support... yes configure: error: Cannot find FrontBase in well know installation directories ... from configure. Any ideas? -chuck -- Charles Hagenbuch, [EMAIL PROTECTED] "Live, from Washington, where the doctors were telling us what they did, and did not, do with Vice President Cheney." -Dan Rather -- 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 #9718 Updated: Memory leak when passing String values into methods through COM
ID: 9718 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: COM related Description: Memory leak when passing String values into methods through COM Bug #9715 is reclassified under this bug. Memory leak when passing String value to a static variable in the COM object. Memory leak when passing String value as an argument in a method exposed by the COM object. I use VJ++ to write COM objects, as Java handles its own garbage collection. Running php 4.0.5-dev ISAPI in IIS 5.0 Previous Comments: --- [2001-03-12 22:18:49] [EMAIL PROTECTED] That wasn't it... I tried it without passing a constant, and it's still leaking memory! So this is an outstanding serious bug with no workaround. --- [2001-03-12 21:57:39] [EMAIL PROTECTED] Found the problem. It only leaks memory, if I pass a CONSTANT from PHP to the COM object. All I have to do now is rewrite the php so that I'm passing a variable, not a constant. Probably this issue can be closed after someone has a look into it. --- [2001-03-12 21:48:59] [EMAIL PROTECTED] I added methods to pass String values into the static variables. Passing String values into method in COM object also leaks memory. Example: COM object has method test(String a) and a static variable b The method sets the variable b to a. In PHP, I execute the COM object's method: $t_obj-test("This is a test string."); Memory leak when passing String into COM object. --- Full Bug description available at: http://bugs.php.net/?id=9718 -- 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/fbsql .cvsignore Makefile.in config.m4 fbsql.dsp php_fbsql.c php_fbsql.h
Frank, Your config.m4 breaks the build. -Jason - Original Message - From: "Frank M. Kromann" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 2:58 PM Subject: [PHP-CVS] cvs: php4 /ext/fbsql .cvsignore Makefile.in config.m4 fbsql.dsp php_fbsql.c php_fbsql.h fmk Tue Mar 13 12:58:48 2001 EDT Added files: /php4/ext/fbsql .cvsignore config.m4 fbsql.dsp Makefile.in php_fbsql.c php_fbsql.h Log: Initial check-in of FrontBase extension -- PHP CVS 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] PHP 4.0 Bug #9717 Updated: configure script looks for httpd.h in wrong place in Apache Source tree
ID: 9717 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: *Install and Config Assigned To: Comments: Works for me just fine with the same versions of Apache and PHP you are trying. Please get fresh sources of both and follow the instructions given in INSTALL. --Jani Previous Comments: --- [2001-03-12 20:48:01] [EMAIL PROTECTED] run configure with ./configure --with-apache=/sysadmin/webdev/apache/apache_1.3.19 configure: error: Invalid Apache directory - unable to find httpd.h under /sysadmin/webdev/apache/apache_1.3.19 looking at the configure script, it looks for includes under the apache 1.3.x tree at $withval/src/main/httpd.h which should be $withval/src/include/httpd.h and sets the APACHE_INCLUDE variable to "-I$withval/src/main, etc" the httpd.h and other apache includes are in ./src/include subdirectory under the Apache directory. I was able to make it compile by hand-editing configure to replace main with include --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9717edit=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: =?iso-8859-1?Q?Re: [PHP-CVS] cvs: php4 /ext/fbsql .cvsignore Makefile.in config.m4 fbsql.d=
The problem was not with the module itself, but with your m4 file... you were enabling your extension by default, as well as running config tests outside of the $PHP_FBSQL test section Jani and I modified the your file to allow ./buildconf to work correctly -Jason - Original Message - From: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 4:24 PM Subject: =?iso-8859-1?Q?Re: [PHP-CVS] cvs: php4 /ext/fbsql .cvsignore Makefile.in config.m4 fbsql.d= sp php_fbsql.c php_fbsql.h?= To: Jason Greene [EMAIL PROTECTED] From: "Frank M. Kromann" [EMAIL PROTECTED] X-Mailer: Swwwing 2000 MIME-Version: 1.0 Reply-To: "Frank M. Kromann" [EMAIL PROTECTED] Date: Tue, 13 Mar 2001 14:24:20 -0800 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Jason, As my cvs message said this is the initial checkin. The code has ben tested on Windows 2000, Mac OS X and Sun solaris 5.8. I Dont have any problems with the code on any of these platforms. What platform are you building on ? - Frank P.S. I'll change the comments as soon as possible. Frank, Your config.m4 breaks the build. -Jason - Original Message - From: "Frank M. Kromann" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 2:58 PM Subject: [PHP-CVS] cvs: php4 /ext/fbsql .cvsignore Makefile.in config.m4 fbsql.dsp php_fbsql.c php_fbsql.h fmk Tue Mar 13 12:58:48 2001 EDT Added files: /php4/ext/fbsql .cvsignore config.m4 fbsql.dsp Makefile.in php_fbsql.c php_fbsql.h Log: Initial check-in of FrontBase extension -- PHP CVS 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] 4.0.5RC1 packaged
I've just put 4.0.5RC1 (the Windows binaries posted by James Moore) through their paces on N4 SP6 IIS CGI. I've tried all my stuff (general language stuff + MySQL) plus phpMyAdmin and Phorum. Everything tested works fine. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- 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 #9736: mssql_fetch_array not consistent
From: [EMAIL PROTECTED] Operating system: NT 4.0 PHP version: 4.0.1pl2 PHP Bug Type: MSSQL related Bug description: mssql_fetch_array not consistent mssql_fetch_array is not consistent in the results it fetches when referred to using the numeric indices of the returned array, as compared to the results obtained by referring to the array as an associative one. For example ,i've had erratic results when doing the following ... $sql = "select * from table" $client_results = mysql_query($sql,$conn); $client_row = mysql_fetch_array($client_results); mysql_free_result($client_results); echo $client_row[0]; echo $client_row[1]; echo $client_row[2]; ... array[0] sometimes shows the data in the first element correctly and sometimes it displays the column name of the returned data...quite erratic. -- Edit Bug report at: http://bugs.php.net/?id=9736edit=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 #9736 Updated: mssql_fetch_array not consistent
ID: 9736 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Old-Bug Type: MSSQL related Bug Type: MySQL related Assigned To: Comments: So which one is this? MSsql OR MySQL ?? Anyways, you're using very old version of PHP. Update first to PHP 4.0.4pl1 and reopen if this problem still exists with it. --Jani Previous Comments: --- [2001-03-14 00:25:38] [EMAIL PROTECTED] mssql_fetch_array is not consistent in the results it fetches when referred to using the numeric indices of the returned array, as compared to the results obtained by referring to the array as an associative one. For example ,i've had erratic results when doing the following ... $sql = "select * from table" $client_results = mysql_query($sql,$conn); $client_row = mysql_fetch_array($client_results); mysql_free_result($client_results); echo $client_row[0]; echo $client_row[1]; echo $client_row[2]; ... array[0] sometimes shows the data in the first element correctly and sometimes it displays the column name of the returned data...quite erratic. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9736edit=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] Latest CVS on Win32
4 errors, 1 new warning: browscap.c D:\Programme\MS Visual Studio\Projekte\php\php4\ext\standard\browscap.c(206) : error C2065: 'core_globals' : nichtdeklarierter Bezeichner D:\Programme\MS Visual Studio\Projekte\php\php4\ext\standard\browscap.c(206) : error C2223: Der linke Teil von '-http_globals' muss auf eine Struktur/Union zeigen D:\Programme\MS Visual Studio\Projekte\php\php4\ext\standard\browscap.c(207) : error C2223: Der linke Teil von '-http_globals' muss auf eine Struktur/Union zeigen D:\Programme\MS Visual Studio\Projekte\php\php4\ext\standard\browscap.c(207) : warning C4133: 'function' : Inkompatible Typen - von 'char [16]' zu 'struct _hashtable *' D:\Programme\MS Visual Studio\Projekte\php\php4\ext\standard\browscap.c(207) : warning C4047: 'function' : Anzahl der Dereferenzierungen bei 'char *' und 'unsigned int ' unterschiedlich D:\Programme\MS Visual Studio\Projekte\php\php4\ext\standard\browscap.c(207) : warning C4024: 'zend_hash_find' : Unterschiedliche Typen fuer formalen und uebergebenen Parameter 2 D:\Programme\MS Visual Studio\Projekte\php\php4\ext\standard\browscap.c(207) : warning C4047: 'function' : Anzahl der Dereferenzierungen bei 'unsigned int ' und 'void ** ' unterschiedlich D:\Programme\MS Visual Studio\Projekte\php\php4\ext\standard\browscap.c(207) : warning C4024: 'zend_hash_find' : Unterschiedliche Typen fuer formalen und uebergebenen Parameter 3 D:\Programme\MS Visual Studio\Projekte\php\php4\ext\standard\browscap.c(207) : error C2198: 'zend_hash_find' : Nicht genuegend Parameter uebergeben mod_files.c D:\Programme\MS Visual Studio\Projekte\php\php4\ext\session\mod_files.c(91) : warning C4018: '=' : Konflikt zwischen signed und unsigned -- sebastian bergmann e-mail : [EMAIL PROTECTED] homepage : http://www.sebastian-bergmann.de make a gift : http://wishlist.sebastian-bergmann.de measure the usability of your web application - http://phpOpenTracker.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]
RE: [PHP-DEV] 4.0.5RC1
The source compiles and installs as a DSO under: Mac OS X 10.0 RC1 Apache 1.3.19 MySQL 3.23.34a Config line used: ./configure --with-apxs=/usr/sbin/apxs --enable-track-vars --with-mysql=/usr/local/mysql --with-zlib With the following issues: Requires corrected lines in internal_functions.c @ line 32 as noted in bug report #9716 -After this edit the compile proceeds as normal and runs fine. Outstanding bugs that still affect 4.0.5 RC1: #8828 mktime still does not produce correct information. - No known work-around for this issue. A show stopper in my opinion. Lon Baker -- 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] Adding oneself as Author
At what point would one add themselves to the list of Authors in a given source file? This may sound like a dumb question and I am not going to start submitting patches specifically to add myself as author or anything, I was just curious as to if there was some criteria it was based on. Thanks, -- === 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] QA: chunked output buffering does not work on win32 + internal function output callbacks
Hi Zeev, chunked output buffering seems to work on Linux. Unfortunately several things do not work (anymore) on win32 (tested CGI): 1) Using ob_start([internal_function]) eg. strlen(),nl2br()etc. yield in no-output, while using a simple user-land wrapper works. 2) this crashes: function strlens($string){ return $string; } ob_start('strlens'); echo str_repeat('test',5500); ob_end_flush(); 3) for all specified values for chunked output buffering the buffer grew up to 10x of its original size (tested with user-land strlen wrapper) several values for several values it crashed immediately (eg.2) andr -- Andr Langhorstt: +49 331 5811560 [EMAIL PROTECTED] m: +49 173 9558736 * PHP Quality Assurance http://qa.php.net * -- 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 #9737: undefined function socket()
From: [EMAIL PROTECTED] Operating system: Solaris 8 PHP version: 4.0 Latest CVS (14/03/2001) PHP Bug Type: Sockets related Bug description: undefined function socket() I have posted ticket #9729. And then I followed the last comment in bug ticket #8667. move the #include "php_sockets.h" after #include "php_sockets.h". It helps me to enable sockets support. Then I have installed php-latest version(13/3/2001) and configure with apache_1.3.14. I browse php settings by call function phpinfo(). It shows "socket support enable", but when the php program calls socket() function, it displays "Fatal error: Call to undefined function: socket()". How can I solve this problem? Thanks -- Edit Bug report at: http://bugs.php.net/?id=9737edit=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] 4.0.5RC1 packaged
Zeev Suraski wrote: http://www.php.net/distributions/RCs/php-4.0.5RC1.tar.gz Do your thing :) Zeev On a stock Redhat-7.0 box, apache-1.3.19/mod_ssl-2.8.1/openssl-0.9.6 all from source: ./configure \ --disable-debug \ --disable-inline \ --with-apxs=/usr/local/apache/bin/apxs \ --enable-exif \ --with-zlib \ --with-mysql=/usr/local/mysql \ (3.23.29a-gamma) --with-pgsql \ (7.0.2) --with-t1lib \ (1.0.1) --with-jpeg-dir=/usr/local \ --with-tiff-dir=/usr/local \ --with-xpm-dir=/usr/X11R6 \ --with-gd=/usr/local \(1.8.3 with gif hacked in) --enable-gd-native-ttf \ --with-mcrypt=/usr/local \ (2.4.9) --with-mhash=/usr/local \ (0.8.3) --enable-ftp \ --enable-wddx \ --enable-sockets \ --enable-sysvshm \ --enable-sysvsem \ --enable-bcmath \ --enable-ctype \ --enable-trans-sid \ --with-pdflib=/usr/local \ (3.0.2) --with-imap=/usr/local \ (imap2000) --with-curl=/usr/local \ (7.4.1) --with-bz2=/usr \ --with-pspell=/usr/local \ (-.11.2) --with-msql=/usr/local/Hughes \ (2.0.11) --with-swf=/usr/local \ --with-iodbc=/usr/local \ (2.50.3) --with-zziplib=/usr/local \ (0.10.6) --with-mnogosearch=/usr/local/mnogosearch \ (3.1.11) --with-sablot \ (-0.51) --with-pfpro=/usr/local (latest beta) ... builds and installs without any trouble. A runthrough of some rudimentary scripting involving functions from most of the extensions shows no problems. If I can additional info please lmk. Regards Mike Robinson -- 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 #8202 Updated: exec(java -cp classpath classname inputArgument); has no effect
ID: 8202 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: *Function Specific Description: exec("java -cp classpath classname inputArgument"); has no effect ID 8202 I don't get any error messages. A student of mine tried the code on his system, and claimed it worked. Using 4.0.3 as CGI installation Not urgent - our work-around - re-wrote the Java code in PHP, and that works. Lee Previous Comments: --- [2001-02-24 12:40:58] [EMAIL PROTECTED] are you not getting any errors?? Can you try exec with other programs and see if it happens with them? Not getting a unable to fork eror are you? what SAPI are you using ISAPI or CGI? --- [2000-12-11 22:57:15] [EMAIL PROTECTED] The command prompt line java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-28-1.htm runs the java class HTML_HL7translator with input file Dis-2000-11-28-1.htm jdk1.3 is installed and works None of the commands in the following cause HTML_HL7translator to run: ?php $javaHL7 = exec("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-28-1.htm"); echo "did execn"; passthru("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-26-2.htm"); echo "did passthrun"; $javaHL7s = system("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-26-4.htm"); echo "did system()"; ? [PHP] extracts ; 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) implicit_flush = Off ; Implicit flush tells PHP to tell the output layer to flush itself allow_call_time_pass_reference = On; whether to enable the ability to force arguments to be safe_mode = Off safe_mode_exec_dir = safe_mode_allowed_env_vars = PHP_ ; Setting certain environment variables safe_mode_protected_env_vars = LD_LIBRARY_PATH ; This directive contains a comma- disable_functions = ; Colors for Syntax Highlighting mode. Anything that's acceptable in font color=??? would work. highlight.string= #DD highlight.comment = #FF8000 highlight.keyword = #007700 highlight.bg= #FF highlight.default = #BB highlight.html = #00 ; Misc expose_php = On ;;; ; Resource Limits ; ;;; max_execution_time = 30 ; Maximum execution time of each script, in seconds memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) ;; ; Error handling and logging ; ;; ; error_reporting is a bit-field. Or each number up to get desired error reporting level E_ALL - All errors and warnings error_reporting =E_ALL; display all errors, warnings and notices display_errors = Off ; Print out errors (as a part of the output) display_startup_errors = Off; Even when display_errors is on, errors that occur during log_errors = On track_errors= Off ; Store the last error/warning message in $php_errormsg (boolean) error_log = E:Health_InfoHealthWebDirectoryphp_error.txt ; log errors to specified file warn_plus_overloading = Off ; warn if the + operator is used with strings ; ; Data Handling ; ; ; Note - track_vars is ALWAYS enabled as of PHP 4.0.3 variables_order = "EGPCS" ; This directive describes the order in which PHP registers register_argc_argv = On ; This directive tells PHP whether to declare the argvargc post_max_size = 8M ; Maximum
[PHP-DEV] PHP 4.0 Bug #9738 Updated: odbc_prepare does implicit SQLSetStmtOption (6,2) (sets to dynamic cursor)
ID: 9738 User Update by: [EMAIL PROTECTED] Status: Open Old-Bug Type: Feature/Change Request Bug Type: ODBC related Description: odbc_prepare does implicit SQLSetStmtOption (6,2) (sets to dynamic cursor) Previous Comments: --- [2001-03-14 05:17:27] [EMAIL PROTECTED] Since some drivers don't like to perform certain queries with the default setting of the dynamic cursor, it might be nice to use something like "odbc_setoption" to manually change the type of Statement that the SQL will be prepared on. Problem is, currently when changing a statement option this way (argument of "2" for SQLSetStmtOption), you have to already have prepared a SQL statement: $result = odbc_prepare ($conn, $sql); odbc_setoption ($result, 2, 6, 3); odbc_execute ($result); This implicitly sets the statement option to set a dynamic cursor first, as the following ODBC trace shows: SQLAllocStmt hDbc=DBD0002 phstmt=40073138 SQLAllocStmt: returning SQL_SUCCESS SQLGetInfo hDbc=DBD0002 fInfoType=8 rgbInfoValue=7B03CD68 cbInfoValueMax=4 pcbInfoValue=0 SQLGetInfo: returning SQL_SUCCESS SQLSetStmtOption hStmt=DBD0003 fOption=6 vParam=0002 SQLSetStmtOption: returning SQL_SUCCESS_WITH_INFO SQLPrepare hStmt=DBD0003 szSqlStr=400746F8 cbSqlStr=-3 [SELECT target.description, target_data.layer1_key,target_data.layer2_key, target_data.layer3_key,target_data.layer4_key,target_data.layer5_key,target_data.layer6_key,target_data.company_code,target_data.location_code FROM dw_user_targets JOIN target ON target.target_code = dw_user_targets.target_code JOIN target_data ON target_data.target_code = dw_user_targets.target_code AND target_data.company_code=2 AND target_data.year=1998 AND target_data.period_no=7 WHERE dw_user_targets.dw_userid='mark'] SQLPrepare: returning SQL_ERROR Here's sample script that could reproduce the above. (Just substitute the above query and connect to a Progress 8.3B database with a similar schema to get even closer) ? putenv("ODBCINI=/usr/local/openlink/odbc.ini"); $dsn="DSN=OracleLocal"; // this is a valid DSN set up in the above odbc.ini file, tested in odbctest $user="scott"; //default user for the demo Oracle database $password="tiger"; //default password for demo Oracle database $sql="SELECT * FROM EMP"; // directly execute mode if ($conn_id=odbc_connect("$dsn","","")){ echo "connected to DSN: $dsn"; if($result=odbc_prepare($conn_id, $sql)) { odbc_execute($result) }else{ echo "can not execute '$sql' "; } echo "closing connection $conn_id"; odbc_close($conn_id); }else{ echo "cannot connect to DSN: $dsn "; } ? So, I propose making a new prepare function such as "odbc_prepare_clean" which doesn't do the implicit SetStmtOption(2,6) for the dynamic cursor. There shouldn't be a problem without the implicit SetStmtOption as the driver will default to what it supports anyway. E.g: $result = odbc_prepare_clean ($conn, $sql); odbc_setoption ($result, 2, 6, 3); odbc_execute ($result); --- Full Bug description available at: http://bugs.php.net/?id=9738 -- 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] sapi/servlet
Hi everyone, I'm not sure who's maintaining the sapi/servlet module now... I think it might be Alex Akilov. I've been looking at the servlet code... and I'm curious in how the servlet handles multiple threads ? The servlet has some member variables namely.. char slash=System.getProperty("file.separator").charAt(0); HttpServletRequest request; HttpServletResponse response; ServletInputStream stream; static int startup_count = 0; protected boolean display_source_mode = false; Mistake me if I'm wrong.. but won't these variables get corrupted when multiple threads are running on the same instance of this servlet? As well.. I'm curious in knowing how the zend engine will handle multiple threads... From what I can see of the code (and understand) multiple threads will access the same instance of the zend engine.. it this ok? Cheers, Keith. -- 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 #9739: Reading logical values doesn't work: fix attached
From: [EMAIL PROTECTED] Operating system: Redhat 6.2 PHP version: 4.0.4pl1 PHP Bug Type: dBase related Bug description: Reading logical values doesn't work: fix attached Reading logical values doesn't work, apparently because in dbase.c logicals are interpreted as integers. So, the following patch treats logicals as their own selves. If the original value is 'T' or 'Y', the imported value is 1. If the original value is 'F' or 'N', the imported value is 0. Otherwise, the imported value is whatever ' ' maps into (probably 0). I have verified that the first two sets of cases works fine. The following diff was generated with "diff -wrc". I apologize for the wrap-around in this textarea. I'll be happy to email the original to you if you like, or you can find it at http://www.tcacc.org/dbase.diff *** dbase.c Tue Mar 13 23:40:10 2001 --- dbase.c.DISTRIB Thu Nov 2 16:08:04 2000 *** *** 459,485 case 'D': add_next_index_string(return_value,str_value,1); break; ! case 'N': if (cur_f-db_fdc == 0) { add_next_index_long(return_value, strtol(str_value, NULL, 10)); } else { add_next_index_double(return_value, atof(str_value)); } break; - case 'L': /* we used to FALLS THROUGH, but now we check for T/Y and F/N -and insert 1 or 0, respectively. db_fdc is the number of -decimals, which we don't care about. 3/14/01 LEW */ - if ( (*str_value == 'T') || ( *str_value == 'Y' ) ){ - add_next_index_long(return_value, strtol("1", NULL, 10)); - } else { - if ( (*str_value == 'F') || ( *str_value == 'N' ) ){ - add_next_index_long(return_value, strtol("0", NULL, 10)); - } - else { - add_next_index_long(return_value, strtol(" ", NULL, 10)); -} - } - break; case 'M': /* this is a memo field. don't know how to deal with this yet */ --- 459,472 case 'D': add_next_index_string(return_value,str_value,1); break; ! case 'N': /* FALLS THROUGH */ ! case 'L': /* FALLS THROUGH */ if (cur_f-db_fdc == 0) { add_next_index_long(return_value, strtol(str_value, NULL, 10)); } else { add_next_index_double(return_value, atof(str_value)); } break; case 'M': /* this is a memo field. don't know how to deal with this yet */ *** *** 550,577 case 'D': add_assoc_string(return_value,cur_f-db_fname,str_value,1); break; ! case 'N': if (cur_f-db_fdc == 0) { add_assoc_long(return_value,cur_f-db_fname,strtol(str_value, NULL , 10)); } else { add_assoc_double(return_value,cur_f-db_fname,atof(str_value)); break; - case 'L': /* we used to FALLS THROUGH, but now we check for T/Y and F/N - and insert 1 or 0, respectively. db_fdc is the number of - decimals, which we don't care about. 3/14/01 LEW */ - if ( (*str_value == 'T') || ( *str_value == 'Y' ) ){ - add_assoc_long(return_value,cur_f-db_fname,strtol("1", NULL, 10)); - } else { - if ( (*str_value == 'F') || ( *str_value == 'N' ) ){ - add_assoc_long(return_value,cur_f-db_fname,strtol("0", NULL, 10)); - } - else { - add_assoc_long(return_value,cur_f-db_fname,strtol(" ", NULL, 10)); - } - } - break; - case 'M': /* this is a memo field. don't know how to deal with this yet */ break; --- 537,550
[PHP-DEV] NEED HELP
i have to do fopen but it's terminating due to Read Error the code is: fopen($url, "r"); so i have to check is this code is terminate due to Read Error or not. If it is resulting Read Error then i Have to repeat it again till the url is successfully open. PADAM TIMSINA _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] sapi/servlet
on 3/13/01 8:44 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: I'm not sure who's maintaining the sapi/servlet module now... I think it might be Alex Akilov. Alex has left IBM, I believe and is no longer involved. I'm not sure if Sam Ruby is still involved - have never heard from him. I've been looking at the servlet code... and I'm curious in how the servlet handles multiple threads ? I believe it has problems. I've done some fixes which I'd be happy to share with you. I've submitted them to be checked in a couple times now but have been ignored (subsequent requests for CVS access have also been ignored). If you'd like my updates, just tell me. There are still problems with this sapi, though. You need to build PHP with debug enabled to get any level of stability. I *think* that enabling the thread safe extensions also aids the servlet sapi's stablility. The servlet has some member variables namely.. ... Mistake me if I'm wrong.. but won't these variables get corrupted when multiple threads are running on the same instance of this servlet? As well.. I'm curious in knowing how the zend engine will handle multiple threads... I tried to fix these "shared" variables where I could - I'll look more closely at these you mentioned to make sure I got them as well. I didn't want to sacrifice JDK1.1 compatibility, but the easiest approach should eventually be to use ThreadLocal instance for cases. From what I can see of the code (and understand) multiple threads will access the same instance of the zend engine.. it this ok? Yeah, that's the intention. It should be okay since that's what happens on NT as well. Ken __ Ken Gengler, Senior Software Engineer TechTracker.com | The Intelligent Tech Support Network 503.227.2571 x227 tel | 503.227.2573 fax [EMAIL PROTECTED] | http://www.techtracker.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] [PHP-QA] 4.0.5RC1 on Solaris x86
hi, Compiles an works fine both as CGI and Apache module. But, there are some problems with test environment, almost all tests are failed :(. When I run script like 030.php from command line, it outputs 'success', from run_tests.php, it outputs nothing (empty file 030.out). Platform: Sun Solaris 7 x86, Apache/1.3.14 (Unix) rus/PL30.0 Modules: Oracle 7.3.2, Mysql 3.23.27-beta, SysV semaphores shared memory, GD 1.8.3 + Jpeg + Freetype 1.3.1, Zlib 1.1.3 Configure 1 (CGI): ./configure \ --with-jpeg-dir=/usr/local \ --with-gd --with-oracle \ --with-mysql=/usr/local \ --disable-debug \ --enable-magic-quotes=yes \ --enable-memory-limit=yes \ --enable-url-fopen-wrapper=yes \ --enable-sysvsem=yes \ --enable-sysvshm=yes \ --enable-track-vars=yes \ --with-system-regex \ --enable-safe-mode \ --with-gdbm \ --with-java=/usr/local/j2sdk1_3_0 \ --with-zlib Configure 2 (Apache module): ./configure \ --with-jpeg-dir=/usr/local \ --with-gd --with-oracle \ --with-mysql=/usr/local \ --with-config-file-path=/h/home/kir/SOFT/conf \ --with-apxs=/h/home/kir/SOFT/bin/apxs \ --disable-debug \ --enable-magic-quotes=yes \ --enable-memory-limit=yes \ --enable-url-fopen-wrapper=yes \ --enable-sysvsem=yes \ --enable-sysvshm=yes \ --enable-track-vars=yes \ --with-system-regex \ --enable-safe-mode \ --with-gdbm \ --with-mod_charset \ --with-java=/usr/local/j2sdk1_3_0 \ --with-zlib -- 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 #9718 Updated: Memory leak when passing String values into methods through COM
ID: 9718 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: COM related Description: Memory leak when passing String values into methods through COM Corrections to bug report. Ignore previous example, check with the below example instead. I'm actually assigning values from inside a child class in PHP and accessing the COM object in the base class. eg: ?php class Child { function Child () { Base::instance(); $this-obj-testvar = "This is a test string."; } } class Base { function instance() { $this-obj = new COM("MyObject.MyObject"); } } ? / Leaks memory when I assign a string to a public variable (testvar) of COM object (obj) from an instance of Child. Disregard my previous examples as I've tested my COM object with a simple string passed as argument to method and it did not leak memory. I think the above memory leak has something to do with PHP's handling of Object Oriented Programming... Previous Comments: --- [2001-03-13 23:22:06] [EMAIL PROTECTED] Bug #9715 is reclassified under this bug. Memory leak when passing String value to a static variable in the COM object. Memory leak when passing String value as an argument in a method exposed by the COM object. I use VJ++ to write COM objects, as Java handles its own garbage collection. Running php 4.0.5-dev ISAPI in IIS 5.0 --- [2001-03-12 22:18:49] [EMAIL PROTECTED] That wasn't it... I tried it without passing a constant, and it's still leaking memory! So this is an outstanding serious bug with no workaround. --- [2001-03-12 21:57:39] [EMAIL PROTECTED] Found the problem. It only leaks memory, if I pass a CONSTANT from PHP to the COM object. All I have to do now is rewrite the php so that I'm passing a variable, not a constant. Probably this issue can be closed after someone has a look into it. --- [2001-03-12 21:48:59] [EMAIL PROTECTED] I added methods to pass String values into the static variables. Passing String values into method in COM object also leaks memory. Example: COM object has method test(String a) and a static variable b The method sets the variable b to a. In PHP, I execute the COM object's method: $t_obj-test("This is a test string."); Memory leak when passing String into COM object. --- Full Bug description available at: http://bugs.php.net/?id=9718 -- 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]