[PHP-DEV] PHP 4.0 Bug #9667: Can't get result of a stored procedure
From: [EMAIL PROTECTED] Operating system: WinNT PHP version: 4.0.4pl1 PHP Bug Type: MSSQL related Bug description: Can't get result of a stored procedure I have a MS SQL 7 Server and when I use mssql_query where the sql statement is like "exec stored_procedure_name stored_procedure_parameters" in results recordset is nothing I can't get the result records . Please , if you find a way to do that sand me a e-mail as fast you can. -- Edit Bug report at: http://bugs.php.net/?id=9667edit=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 #9668: typo in foreach manual page
From: [EMAIL PROTECTED] Operating system: all PHP version: 4.0.4pl1 PHP Bug Type: Documentation problem Bug description: typo in foreach manual page From the foreach manual page: /* foreach example 2: value (with key printed for illustration) */ $a = array (1, 2, 3, 17); $i = 0; /* for illustrative purposes only */ foreach($a as $v) { print "\$a[$i] = $k.\n"; } - that print statement should be print "\$a[$i] = $v.\n"; -- Edit Bug report at: http://bugs.php.net/?id=9668edit=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 #9669: Session write-out race condition
From: [EMAIL PROTECTED] Operating system: Debian GNU/Linux 2.2 PHP version: 4.0.3pl1 PHP Bug Type: *Session related Bug description: Session write-out race condition Initally from time to time, very rarely, we'd login to the site (which does logins as a form submission), and we'd get back to the page we're supposed to be at but without seeming to be logged in. The page that the login form submits to does very little, it just checks the details provided by the form in a database, and sets a session variable with the user's real ID, which all pages consider to be "logged in". Then, they're redirected back to the refering page. Works fine, 99.9% of the time, but under situations where access is good (eg, 50ms away from the webserver over cable + ethernet) sometimes it just wouldn't work. It got a _lot_ worse when we started pushing session data into a database. Initally we thought it was our custom session save stuff, but removing it we could still reproduce the problem (it was just harder to reproduce). Finally, we added a whole lot of debugging calls to error_log() and found what was going on. There's a race condition between the end of a page and when the session handler actually writes out the session data, vs when a new page is requested. If the remote browser requests a page before PHP has written out the session stuff, it'll get the old session infomation. From our debugging: [Sat Mar 10 21:58:49 2001] [error] uri: /login.php?user=samtestepassword=xuri=%2F sql: select verifyLogin('samteste','x') [Sat Mar 10 21:58:49 2001] [error] uri: / sql: SELECT value FROM sessiondata WHERE sesskey = '35760d1b61748cc467b3c685916c3980' AND expiry now() [Sat Mar 10 21:58:49 2001] [error] uri: /login.php?user=samtestepassword=xuri=%2F sql: UPDATE sessiondata SETexpiry = now()+'1440s', value = 'playerid|s:4:\"1542\";attempt|i:1;' WHERE sesskey = '35760d1b61748cc467b3c685916c3980' Roughly, we see this sequence as: - The page that verifies the login is called (/login.php), and the login is verified, which updates the session variable. Before exit, this page issues a redirect to /. - The browser then processes the redirect, and requests the new URL (/), retriving the "current" session data - The session data from login.php is only just now written out. We have a workaround in PHP (we have a function called redirect() which first calls our session_write handler with the session_id() and session_encode(), before outputing the headers..) but we'd prefer the session handling worked as advertised, so to speak :) Note: we've verified with a packet sniffer that the browser is closing the connection before opening a new one for the new URL. It's not the browser jumping the gun. -- Edit Bug report at: http://bugs.php.net/?id=9669edit=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 #9365 Updated: Problem with muiti-byte char code set (serious)
ID: 9365 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Description: Problem with muiti-byte char code set (serious) At first I should correct that included file that causes this problem is only one file and returning reference from the functions does not make difference. (Script was not uploaded to server. I tested again, the file causes this problem only happens when the file is included, and reference does not make changes) I've tested with 4.0.4pl1 and 4.0.5-dev (200103092045) with - RedHat Linux7/j (glibc is updated to 2.2, gcc also updated - Redhat's RPM) - Apache 1.3.17 w/ mod-ssl, mod-gzip and other apache modules comes with apache. (Tested both w/ and w/o ssl) For 4.0.5-dev, I only add PostgreSQL module. './configure' '--with-apxs' '--disable-short-tags' '--with-pgsql' Results are the same. I also included the file that causes this from other script. The file is included w/o any problems. I tried to make a simple script that reproduce this problem again, but I could not. Since I can easily workaround with this problem and I've seen this only once so far, I'll leave this problem. (If I don't use function, the code works as expected) If you have similar bug report and need more info, please let me know. PS: Someone post similar problem regarding ob_ob_get_contents(). I asked what kind of environment he uses. I'll post report, if I can find out anything. Previous Comments: --- [2001-03-09 23:34:55] [EMAIL PROTECTED] I forgot comment that it does not happen with simple scripts that have the same logic. So trying to make a script that causes this problem is just a waste of your time. I'll test some more, so please wait feedback. --- [2001-03-09 23:14:11] [EMAIL PROTECTED] It seems it is related to reference. The registration is done in a function and if there are error the function returns array contains error messages. It can be relatively large, so I returned reference. I get rid of the reference, then it start working as it should. i.e. function register() = script executed from the beginning. function register() = works as it should. Hope this info helps. --- [2001-03-09 23:03:45] [EMAIL PROTECTED] I tested with Newer Japanese Charset Handling module. = the same result. Without these modules = the same result. I was compiled in these Japanese char handling modules in php. I didn't compile these modules in php, but I compile these modules as individual *.so file. The same result. If I use plain ASCII HTML file for include(). It works. But not with HTML contains EUC. I'll upgrade my glibc see if it fixes. (Please wait for feedback) FYI: Code that causes this. I've tested with require()/include_once()/require_once(), the same result. Reminder - Include()/require() works fine except on this file. -- // Show Registration complete html //die('DIED BEFORE INCLUDE'); // Dies as it should //header('Location: http://www/'); // Just for testing //include('regist_finished.ihtml'); // HTML file contains EUC. Script executed again from the beginning!! Can't even die at the beginning of the file. //include('test3.php'); // ASCII char only. Works as expected. include('cancel.ihtml'); // Another HTML file contains EUC. Script executed again from the beginning!! Can't even die at the beginning of the file. die('DIED AFTER INCLUDE'); // DO NOT DIE, as it should. --- [2001-03-09 22:52:46] [EMAIL PROTECTED] I tested with Newer Japanese Charset Handling module. = the same result. Without these modules = the same result. I was compiled in these Japanese char handling modules in php. I didn't compile these modules in php, but I compile these modules as individual *.so file. The same result. If I use plain ASCII HTML file for include(). It works. But not with HTML contains EUC. I'll upgrade my glibc see if it fixes. (Please wait for feedback) FYI: Code that causes this. I've tested with require()/include_once()/require_once(), the same result. Reminder - Include()/require() works fine except on this file. -- // Show Registration complete html //die('DIED BEFORE INCLUDE'); // Dies as it should //header('Location: http://www/'); // Just for testing //include('regist_finished.ihtml'); // HTML file contains EUC. Script executed again from the beginning!! Can't even die at the beginning of the file. //include('test3.php'); // ASCII char only. Works as expected. include('cancel.ihtml'); // Another HTML file contains EUC. Script executed again from the beginning!! Can't even die at the beginning of the file.
[PHP-DEV] PHP 4.0 Bug #9671: Sorting arrays with norwegian letters
From: [EMAIL PROTECTED] Operating system: RedHar 7.0 PHP version: 4.0.4pl1 PHP Bug Type: Arrays related Bug description: Sorting arrays with norwegian letters I think I have found a bug in the function 'sort'. It does not sort correct with norwegian letters. The norwegian alphabeth is made of 29 letters. The three last ones are spesial for norway (and sweden and denmark). Heres a sample of our alphabeth: abcdefghijklmnopqrstuvwxyzæøå And here are some code... ? // List of norwegian names, with norwegian letters $to_be_sorted = array(mamma, øyvind, sondre, værner, ærlend, odd, hedvig, åsmund, birgit); sort($to_be_sorted); for ($i = 0; $i sizeof($to_be_sorted); $i ++) { echo $to_be_sorted[$i]."br\n"; } ? This prodused this putput: birgit hedvig mamma odd sondre værner åsmund ærlend øyvind But it should have been: birgit hedvig mamma odd sondre værner ærlend øyvind åsmund Yours Håkon Flatøy PS: PHP is GREAT! -- Edit Bug report at: http://bugs.php.net/?id=9671edit=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 #9670 Updated: udm_alloc_agent
ID: 9670 Updated by: gluke Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Unknown/Other Function Assigned To: Comments: mnoGoSearch extension is not available in php-4.0.4pl1. It will be available in 4.0.5RC+ Previous Comments: --- [2001-03-10 06:00:38] [EMAIL PROTECTED] I am trying to use the mnogo (formerly udmsearch) functions within my app. Code below. $nRet = udm_alloc_agent($dbaddr,"single"); udm_find($nRet,"sybase"); I get the following message: Fatal error: Call to undefined function: udm_alloc_agent() in testudm.htm on line 4. I compiled it with the option "--with-mnogosearch" and phpinfo shows that. --- [2001-03-10 05:59:08] [EMAIL PROTECTED] I am trying to use the mnogo (formerly udmsearch) functions within my app. Code below. $nRet = udm_alloc_agent($dbaddr,"single"); udm_find($nRet,"sybase"); I get the following message: Fatal error: Call to undefined function: udm_alloc_agent() in /home/www/computerstaff/docs/ncomputerstaff/testudm.htm on line 4. I compiled it with the option "--with-mnogosearch" and phpinfo shows that. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9670edit=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] ÍøÇé·½ÓëÔ²×î½ü¸üУ¡http://akle.yeah.net
ÍøÇé·½ÓëÔ²×î½ü¸üУº ¡¾Êý×Ö¼òÂë¡¿±¾À¸Ä¿ÊÕÈë°ÙÓàÎñÈç½ñÔÚÍøÂçÉÏ»òÊÇBP»úÉÏÁ÷ÐеÄÊý°²¼òÂë¡£ÈçÔ¸05856(ÄãÎÞ²»ÎÞÁÄ)£¬54088£¨ÎÒÊÇÄã°Ö°Ö£©¡£5201314£¨ÎÒ°®ÄãÒ»ÉúÒ»ÊÀ£©¡£¿ìµã½øÈë°É ¡¾email¹¤¾ß¡¿ÊÇÒ»¸ö¾ø¶ÔcoolµÄÀ¸Ä¿£¬ÄÚÓжþ°ÙÓà¸ö±ð ÓйØemailµÄÈí¼þ£¬È磺email µØÕæÖ·ÊÕ¼¯Æ÷£¬ emailȺ·¢Æ÷£¬µÈµÈ£¬ ΪÄãÐû´«ÍøÒ³Ìṩ·½±ã¡£Ê¹ÄãµÄemailµÄ¹¦ÄܸüÇ¿´ó¡£ ¡¾OICQ¹¤¾ß¡¿Õâ¸öÀ¸Ä¿ÊÕ¼¯Á˶àÈ˸öOICQ¹¤¾ß£¬¿ÉÒÔ²é»ñ¼Ó±ðÈ˵ÄIP£¬½â±ðÈ˵ÄÃÜÂëµÈ¡£¿Éϧ×ÔOICQ2000³öºóºÜ¶àûÓÐÓÃÁË£¬±¾È˻ᾡ¿ìÕÒ¸ü¶àÊʺÏOICQµÄÈí¼þ£¬Çë´ó¼ÒÄÍÐĵÈһϡ£ ÍøÖ·£ºhttp://akle.yeah.net - XjmailÏɽ£ÓʼþȺ·¢Æ÷http://cnokweb.yeah.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] CVS Account Request
Full name: Victor Gratchev Email: [EMAIL PROTECTED] ID: 102588514 Purpose: New mail functions that much faster -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 3.0 Bug Summary Report
PHP 3.0 Bug Database summary - http://bugs.php.net Num Status Summary (525 total including feature requests) ===[*General Issues]== 4180 Open is_link returns false when target doesnt exist (should return true) 9610 Bogus Dead link ===[*Install and Config]== 7386 Feedback referenced symbol not found when starting Apache ===[Compile Failure]== 1145 Open Ypu cannot compile with --with-ldap using the Solaris7 bundled ldap-libs/header 1298 Open need to use -taso with Netscape LDAP libs 1461 Open won't compile with Stronghold 2.2 or 2.3 1933 Open Unable to compile PHP3 with Oracle8 support 1997 Open Compilation Problems 2225 Open Compile error in ldap.c 2282 Open Compile failure with Stronghold 2.4.1 2490 Open Perl regular expression functions not available in windows binary 2585 Open Error linking Oracle 7.3.2 libraries on SCO OpenServer 5.0.4 2658 Open error while compiling PHP as apache module 2729 Open Fatal error: Unable to open ??? in - on line 0 2751 Open Storage size of "buf isn't known 2823 Open undefined symbol: SQLParamData 2824 Open Inconsistent parameter list declaration for... 2903 Open fails to compile ifx.ec, report a syntax-error 3033 Open Fatal compile error on functions/ldap.c 3185 Open Undefined symbol 3217 Open ld error when compiling as Apache DSO and --with-mysql 3218 Open Can't compile php_ftp.dll 3426 Open make with iodbc failed and I've found the problem 3501 Open Compiling errors with Oracle-Funktions 3528 Open Can't compile php 3.0.14 with Oracle support 3677 Open files not found 3766 Open configure doesn't allow for the Oracle N32 client SDK to be used 3776 Open functions/db.c:107: parse error before '*' 4028 Open wrong directories included for oracle 8.1.6 4217 Open IBM DB2 will not compile. 4233 Open The Interbase module won't compile. 4266 Open Undeclared variables in function/imap.c starting ar line 435 4392 Open Compile failure with GD 1.7, possibly others 4412 Open xml failure 4417 Open Informix specific parse error in functions/ifx.ec 4544 Open Incompatiblility with latest (3.0) version of PDFlib 4899 Open PHP Core Dumps With Apache 1.3.12 7734 Open missing php3_ifx.h ===[Compile Warning]== 3151 Open php.exe compile warnings because of arpa/inet.h 6942 Open php sockets unusable with irix-OS ===[dBase related] 3091 Open dbase_replace_record miscounts number of fields 3429 Open Warning: Unable to open database... 4802 Open php.exe crashes while trying to execute the get_record function ===[DBM/DBA related]== 2890 Open DBM extension on win32 does not valid database identifier error 3371 Open dbmfetch reurns an empty string 3423 Open dbmopen() not thread-safe 3809 Duplicate DBM extension for Win32 PHP3 is malfunctioning and/or has a flaw 3862 Open dbmReplace dbmDelete return inverse value 6720 Open persistent "Warning: driver initialization failed" on db_open db2 2.7.7 ===[Dynamic loading related]== 1188 Open Configuration not work 1586 Open In the compiled Win32 package, the php3_ldap doesn't load. 1993 Open Startup failure of liphp3.so 2027 Open Can't dynamicly load any extension dll file 2250 Open nt-service problem 2414 Open php3_vmailmgr.so refuses to load 2862 Open LDAP in Win32 Bin dist is linked to MSVCRTD.DLL 3168 Open cannot start apache 1.3.9 if mysql is compiled in, but can RESTART successfully 3292 Open MySQL module causes DSO to fail. 3321 Open Apache Complaining about undefined symbol: dlst_first 3659 Open mod_php + apache w/mod_so hangs in sched_yield 3680 Open Apache won't start after install php3 3752 Open Apache configtest dumps core with DSO versioning 3781 Open Cannot load /libexec/libphp3.so 3861 Open php as a dyn. mod. configured with IBM db2 support prevents svr startup 9565 Open php3_ldap.dll is compiled as DEBUG ===[IMAP related]= 2816 Open Imap_open error when user_id length=3 char 2847 Open imap_search - dates don't work 3040 Duplicate imap_open 3236 Open Email message bodies show as mime type application/octet-stream/plain 3843 Open seg fault when recieving headers 6882 Open imap_fetch_overview does no return anything even thought there is mail
[PHP-DEV] PHP 4.0 Bug #9666 Updated: Can't display image/pjpeg and image/gif in one sanme page
ID: 9666 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: *Graphics related Assigned To: Comments: Works for me just fine. What is the url to that page of yours? --Jani Previous Comments: --- [2001-03-10 03:19:26] [EMAIL PROTECTED] I am using php 4.03pl1 version on linux now.I found that bug:i use mysql's BLOB mode to record a gif or jpg binary data stream,when i read them out and display them in one same page,gif or jpg will not display on page at the first time i load the page.Must refresh the page,the two type can be displayed. I don't know if this is a bug or not,so,thanx a lot. Attach,my program: ? require("config.inc"); $db = mysql_connect($db_server,$db_user,$db_pass) or die('Can't connect db server'); mysql_select_db($db_name) or die('Can't connect to read database'); $sql = "select data,filetype from images where name='$name'"; $res = mysql_query($sql,$db); $data = mysql_result($res,0,"data"); $type = mysql_result($res,0,"filetype"); Header( "Content-type: $type"); echo $data; mysql_close(); ? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9666edit=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 #6981 Updated: --with mysql gives undefined symbol: uncompress
ID: 6981 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: MySQL related Assigned To: Comments: Please try the latest CVS snapshot from http://snaps.php.net/ as this should be fixed now. --Jani Previous Comments: --- [2001-02-01 14:17:49] [EMAIL PROTECTED] Have you tried this with the latest version from CVS? --- [2000-10-02 23:00:13] [EMAIL PROTECTED] When configuring with 'configure --with-mysql=/usr/local/mysql --with-apxs' and then restarting httpd: "Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: uncompress" When configuring with 'configure --with-apxs', everything works - including MySQL... very odd. [gufo@erwin ~]$ uname -a Linux erwin.dupoint.com 2.2.16 #2 tor aug 10 03:54:55 CEST 2000 i686 unknown [gufo@erwin ~]$ /usr/sbin/httpd -v Server version: Apache-AdvancedExtranetServer/1.3.12 (NetRevolution/Linux-Mandrake) Server built: May 8 2000 04:59:44 Performance Tuned by SGI http://www.sgi.com/ [gufo@erwin ~]$ mysql --version mysql Ver 9.38 Distrib 3.22.32, for pc-linux-gnu (i686) --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6981edit=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 #7247 Updated: MySQL+zlib
ID: 7247 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Feedback Bug Type: Apache related Assigned To: Comments: Please try the latest CVS. This should be fixed now. --Jani Previous Comments: --- [2000-12-28 09:14:01] [EMAIL PROTECTED] Duplicate of #5651 (this patch of yours is not the right way to do this..) --Jani --- [2000-12-11 14:20:40] [EMAIL PROTECTED] Fine, here: --- php4/ext/mysql/config.m4Tue Nov 21 06:07:50 2000 +++ php4.lz/ext/mysql/config.m4 Mon Dec 11 13:58:54 2000 @@ -77,9 +77,27 @@ AC_MSG_ERROR(Cannot find mysqlclient library under $MYSQL_DIR) fi + for i in /usr/local /usr do +if test -f $i/include/zlib/zlib.h; then + ZLIB_DIR=$i + ZLIB_INCDIR=$i/include/zlib +elif test -f $i/include/zlib.h; then + ZLIB_DIR=$i + ZLIB_INCDIR=$i/include +fi + done + + if test -z "$ZLIB_DIR"; then +AC_MSG_ERROR(Cannot find libz) + fi + AC_ADD_LIBRARY_WITH_PATH(mysqlclient, $MYSQL_LIB_DIR, MYSQL_SHARED_LIBADD) + AC_ADD_LIBRARY_WITH_PATH(z, $ZLIB_LIBDIR, ZLIB_SHARED_LIBADD) + AC_ADD_INCLUDE($MYSQL_INC_DIR) + + AC_ADD_INCLUDE($ZLIB_INCDIR) else MYSQL_MODULE_TYPE="none" fi --- [2000-12-11 11:01:27] [EMAIL PROTECTED] You misunderstand me. This isn't something that I'm affected by. I've managed to fix this on my installation. What I'm saying is that the configure script should add -lz if an external MySQL library is chosen. --- [2000-12-11 05:38:29] [EMAIL PROTECTED] What is your PHP configuration line? What is your Apache configuration? --- [2000-10-16 11:16:08] [EMAIL PROTECTED] I've noticed some problems about PHP (any version) not loading into Apache with 'undefined symbol: uncompress'. What I have learned (the hard way, with another language) is that the more recent versions of MySQL need zlib to be linked in. What happens is that most people use '--with-zlib' anyways, so they don't see the problem, but for those few, the loading fails. What I propose is that if external libraries are requested for MySQL, then zlib should be checked for in configure and linked in make regardless of whether or not zlib has been chosen as a feature. This will resolve that problem for pretty much 99.9% of the people. --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7247edit=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 #7661 Updated: server address set to 255.255.255.255
ID: 7661 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Apache related Assigned To: Comments: Does this happen with PHP 4.0.4pl1? --Jani Previous Comments: --- [2000-11-20 12:16:26] [EMAIL PROTECTED] reclassified --- [2000-11-12 20:31:12] [EMAIL PROTECTED] In my apache error_log I have those messages: Error getting local address getpeername: Socket operation on non-socket getsockname: Socket operation on non-socket Error getting local address --- [2000-11-06 07:50:06] [EMAIL PROTECTED] in the Apache Environment I have the REMOTE_ADDR and the SERVER_ADDR set to 255.255.255.255 so does the HTTP_SERVER_VARS["REMOTE_ADDR"] and the HTTP_SERVER_VARS["SERVER_ADDR"]. the http_conf is set properly so does my system files. on the logs files when a visitor doesn't have a valid domain name , just an IP it then reads 255.255.255.255 I am using an Apache/1.3.12 Port 80 I used the same one with php3 with no problem of this sort. here is a copy of my httpd_conf: ## ## httpd.conf -- Apache HTTP server configuration file ## # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://www.apache.org/docs/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # After this file is processed, the server will look for and process # /usr/freeware/apache/conf/srm.conf and then /usr/freeware/apache/conf/access.conf # unless you have overridden these with ResourceConfig and/or # AccessConfig directives here. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "/usr/local/apache" will be interpreted by the # server as "/usr/local/apache/logs/foo.log". # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only supported on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://www.apache.org/docs/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "/usr/freeware/apache" # # The LockFile directive sets the path to the lockfile used when Apache # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at # its default value. The main reason for changing it is if the logs # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL # DISK. The PID of the main server process is automatically appended to # the filename. # #LockFile /usr/freeware/apache/logs/httpd.lock # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile /usr/freeware/apache/logs/httpd.pid # # ScoreBoardFile: File used to store internal server process information. # Not all architectures require this. But if yours does (you'll know because # this file will be created when you run Apache) then you *must* ensure that # no two invocations of Apache share the same scoreboard file. # ScoreBoardFile /usr/freeware/apache/logs/httpd.scoreboard #
[PHP-DEV] PHP 4.0 Bug #9472 Updated: Apache refuses to start when trying to load php DSO module
ID: 9472 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Feedback Bug Type: MySQL related Assigned To: Comments: This should be fixed in CVS now. Please try the latest CVS snapshot from http://snaps.php.net/ --Jani Previous Comments: --- [2001-03-03 20:08:30] [EMAIL PROTECTED] Duplicate of #6981 --- [2001-02-26 19:36:00] [EMAIL PROTECTED] LoadModule php4_modulelibexec/libphp4.so When the previous line is present in the httpd.conf file, Apache will not load when the "./apachectl restart" command is executed. I get the error: [root@ip234-164 bin]# ./apachectl restart ./apachectl restart: configuration broken, ignoring restart ./apachectl restart: (run 'apachectl configtest' for details) I then run: [root@ip234-164 bin]# ./apachectl configtest Syntax error on line 207 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: undefined symbol: uncompress PHP was configured as follows: ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local/php --with-track-vars --with-trans-id --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9472edit=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 #9615 Updated: Cannot load libphp4.so into server
ID: 9615 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Apache related Assigned To: Comments: This should be fixed in CVS now. Please try the latest CVS snapshot from http://snaps.php.net/ --Jani Previous Comments: --- [2001-03-08 03:15:11] [EMAIL PROTECTED] Using apache-1.3.19 with mysql and so module configured with no errors. Configure;make;make install (ed) php with no errors using: ./configure --with-mysql=/usr/local/mysql-3.23.33-pc-linux-gnu-i686/ --with-apxs=/usr/local/apache_1.3.19/bin/apxs On starting apachectl I get the following error: "Syntax error on line 205 of /usr/local/apache_1.3.19/conf/httpd.conf: Cannot load /usr/local/apache_1.3.19/libexeclibphp4.so into server: undefined symbol: uncompress" Line 205 of httpd.conf is simply the LoadModule line that reads: "LoadModule php4_modulelibexec/libphp4.so" I read that it was suggested on one bug report to add to the LIBS1 line in Makefile so mine now reads: "LIBS1= -lpthread -lm -lcrypt -ldl" I performed: "make clean;make;make install: and the same error occurs. I am just in the process of setting up this server. PHP was the third app installed. The first was mysql and apache was the second. I did a custom install with the following components selected: XWindows, GNOME, Mail-WWW-News Tools, DOS|Windows Connectivity, Graphics, Games, Multimedia, Networked Workstation, Anonymous FTP server, Authoring/Publishing, Developement Tools, and Utilities. The machine is an 800MHz with 256 RAM. Plenty of partition space as well as swap space too. Thanks for any help. JR --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9615edit=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 #8856 Updated: gethostbyname returns hostname instead of adress
ID: 8856 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Network related Assigned To: Comments: Works for me just fine with latest CVS. Please try the latest CVS snapshot from http://snaps.php.net/ --Jani Previous Comments: --- [2001-01-23 12:28:11] [EMAIL PROTECTED] The gethostbyname doesn't seem to work on some of the systems I use. The problem only occurs on some machines, others work fine. The problem only occurs on 4.0x, but not on 3.0x on the same machine. All machines use the same build of php4. For example: PHP echo (gethostbyname ("sql-1.vuurwerk.nl")); ? Result: sql-1.vuurwerk.nl The bug? also affects functions like mysql_connect. I am unable to connect to a sql server unless I replace the hostname with an ip adress. I've traced the problem back to sockets.c, line 817: a.s_addr = (int) (*(host_struct-h_addr_list[0])); If I replace the code above with the equivalent code used in php3 the problem is solved: memcpy (a.s_addr, *(host_struct-h_addr_list), sizeof (a.s_addr)); If you need more information please let me know. Niels Leenheer [EMAIL PROTECTED] --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8856edit=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 #8856 Updated: gethostbyname returns hostname instead of adress
ID: 8856 Updated by: derick Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Network related Assigned To: Comments: It sounds like a DNS problem to me. It would be wise if you check that out too. Previous Comments: --- [2001-03-10 16:12:27] [EMAIL PROTECTED] Works for me just fine with latest CVS. Please try the latest CVS snapshot from http://snaps.php.net/ --Jani --- [2001-01-23 12:28:11] [EMAIL PROTECTED] The gethostbyname doesn't seem to work on some of the systems I use. The problem only occurs on some machines, others work fine. The problem only occurs on 4.0x, but not on 3.0x on the same machine. All machines use the same build of php4. For example: PHP echo (gethostbyname ("sql-1.vuurwerk.nl")); ? Result: sql-1.vuurwerk.nl The bug? also affects functions like mysql_connect. I am unable to connect to a sql server unless I replace the hostname with an ip adress. I've traced the problem back to sockets.c, line 817: a.s_addr = (int) (*(host_struct-h_addr_list[0])); If I replace the code above with the equivalent code used in php3 the problem is solved: memcpy (a.s_addr, *(host_struct-h_addr_list), sizeof (a.s_addr)); If you need more information please let me know. Niels Leenheer [EMAIL PROTECTED] --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8856edit=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 #9673: Relative paths in require(), require_once(), include(), include_once()
From: [EMAIL PROTECTED] Operating system: RedHat Linux 7.0 PHP version: 4.0.1pl2 PHP Bug Type: Scripting Engine problem Bug description: Relative paths in require(), require_once(), include(), include_once() Here is an example of how relative paths are currently resolved with cascading inclusions (command line is 'php /home/joe/a.php'): File '/home/joe/a.php': ?php # this include works as expected, # locating '/home/joe/include/b.inc' include_once( 'include/b.inc' ); ? File '/home/joe/include/b.inc': ?php # this include will assume '/home/joe/c.inc', but # not '/home/joe/include/c.inc', as one may expect =( include_once( 'c.inc' ); ? File '/home/joe/include/c.inc': ?php echo 'hello'; ? The way all four functions [require(), require_once(), include(), include_once()] resolve relative paths is counter-intuitive and unproductive with large directory structures, because some trickery is required to fix this problem. Not to mention that it hurts to see a different behavior from C-preprocessor #include directives. If you don't believe me, then see comments to the include() function... -- Edit Bug report at: http://bugs.php.net/?id=9673edit=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 #8856 Updated: gethostbyname returns hostname instead of adress
ID: 8856 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Network related Description: gethostbyname returns hostname instead of adress It sounds like a DNS problem to me. It would be wise if you check that out too. I though about this too at first, but the right information is in both cases stored in the host_struct-h_addr_list. But the information is only correct if you memcpy it to a.s_addr, instead of typecasting it. Previous Comments: --- [2001-03-10 16:30:21] [EMAIL PROTECTED] It sounds like a DNS problem to me. It would be wise if you check that out too. --- [2001-03-10 16:12:27] [EMAIL PROTECTED] Works for me just fine with latest CVS. Please try the latest CVS snapshot from http://snaps.php.net/ --Jani --- [2001-01-23 12:28:11] [EMAIL PROTECTED] The gethostbyname doesn't seem to work on some of the systems I use. The problem only occurs on some machines, others work fine. The problem only occurs on 4.0x, but not on 3.0x on the same machine. All machines use the same build of php4. For example: PHP echo (gethostbyname ("sql-1.vuurwerk.nl")); ? Result: sql-1.vuurwerk.nl The bug? also affects functions like mysql_connect. I am unable to connect to a sql server unless I replace the hostname with an ip adress. I've traced the problem back to sockets.c, line 817: a.s_addr = (int) (*(host_struct-h_addr_list[0])); If I replace the code above with the equivalent code used in php3 the problem is solved: memcpy (a.s_addr, *(host_struct-h_addr_list), sizeof (a.s_addr)); If you need more information please let me know. Niels Leenheer [EMAIL PROTECTED] --- Full Bug description available at: http://bugs.php.net/?id=8856 -- PHP Development Mailing List http://www.php.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 #7661 Updated: server address set to 255.255.255.255
ID: 7661 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Apache related Description: server address set to 255.255.255.255 Unfortunately yes! REMOTE HOST gives me the IP but the REMOTE_ADDR gives me 255.255.255.255 which is what the apache logs in when there are no domain name Previous Comments: --- [2001-03-10 14:29:47] [EMAIL PROTECTED] Does this happen with PHP 4.0.4pl1? --Jani --- [2000-11-20 12:16:26] [EMAIL PROTECTED] reclassified --- [2000-11-12 20:31:12] [EMAIL PROTECTED] In my apache error_log I have those messages: Error getting local address getpeername: Socket operation on non-socket getsockname: Socket operation on non-socket Error getting local address --- [2000-11-06 07:50:06] [EMAIL PROTECTED] in the Apache Environment I have the REMOTE_ADDR and the SERVER_ADDR set to 255.255.255.255 so does the HTTP_SERVER_VARS["REMOTE_ADDR"] and the HTTP_SERVER_VARS["SERVER_ADDR"]. the http_conf is set properly so does my system files. on the logs files when a visitor doesn't have a valid domain name , just an IP it then reads 255.255.255.255 I am using an Apache/1.3.12 Port 80 I used the same one with php3 with no problem of this sort. here is a copy of my httpd_conf: ## ## httpd.conf -- Apache HTTP server configuration file ## # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://www.apache.org/docs/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # After this file is processed, the server will look for and process # /usr/freeware/apache/conf/srm.conf and then /usr/freeware/apache/conf/access.conf # unless you have overridden these with ResourceConfig and/or # AccessConfig directives here. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "/usr/local/apache" will be interpreted by the # server as "/usr/local/apache/logs/foo.log". # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only supported on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://www.apache.org/docs/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "/usr/freeware/apache" # # The LockFile directive sets the path to the lockfile used when Apache # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at # its default value. The main reason for changing it is if the logs # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL # DISK. The PID of the main server process is automatically appended to # the filename. # #LockFile /usr/freeware/apache/logs/httpd.lock # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile /usr/freeware/apache/logs/httpd.pid # # ScoreBoardFile: File used to store internal server process information.
Re: [PHP-DEV] Re: static call bugs?
At 08:49 PM 3/10/2001 +0100, Andr Langhorst wrote: When you say that people shouldn't use references because of performance what do you mean? I think you are right in general but when you are passing around objects you should use references. for example: function foo($obj) { } foo($myobject); I know, what about addming some words on reference counting to the docs (I know it was on the inital zend.com site around release of php 4), this is very important to understand how to tweak performance. I have seen many people doing the contrary coming from c++ etc. Good idea. I don't have time in the next few days to work on it but maybe I'll be able to steal some stuff from my Zend.com article. Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #7661 Updated: server address set to 255.255.255.255
ID: 7661 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Apache related Assigned To: Comments: Not a bug in PHP: http://www.ccp14.ac.uk/ccp14admin/apache13/apache255error.html --Jani Previous Comments: --- [2001-03-10 17:57:26] [EMAIL PROTECTED] Unfortunately yes! REMOTE HOST gives me the IP but the REMOTE_ADDR gives me 255.255.255.255 which is what the apache logs in when there are no domain name --- [2001-03-10 14:29:47] [EMAIL PROTECTED] Does this happen with PHP 4.0.4pl1? --Jani --- [2000-11-20 12:16:26] [EMAIL PROTECTED] reclassified --- [2000-11-12 20:31:12] [EMAIL PROTECTED] In my apache error_log I have those messages: Error getting local address getpeername: Socket operation on non-socket getsockname: Socket operation on non-socket Error getting local address --- [2000-11-06 07:50:06] [EMAIL PROTECTED] in the Apache Environment I have the REMOTE_ADDR and the SERVER_ADDR set to 255.255.255.255 so does the HTTP_SERVER_VARS["REMOTE_ADDR"] and the HTTP_SERVER_VARS["SERVER_ADDR"]. the http_conf is set properly so does my system files. on the logs files when a visitor doesn't have a valid domain name , just an IP it then reads 255.255.255.255 I am using an Apache/1.3.12 Port 80 I used the same one with php3 with no problem of this sort. here is a copy of my httpd_conf: ## ## httpd.conf -- Apache HTTP server configuration file ## # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://www.apache.org/docs/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # After this file is processed, the server will look for and process # /usr/freeware/apache/conf/srm.conf and then /usr/freeware/apache/conf/access.conf # unless you have overridden these with ResourceConfig and/or # AccessConfig directives here. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "/usr/local/apache" will be interpreted by the # server as "/usr/local/apache/logs/foo.log". # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only supported on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://www.apache.org/docs/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "/usr/freeware/apache" # # The LockFile directive sets the path to the lockfile used when Apache # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at # its default value. The main reason for changing it is if the logs # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL # DISK. The PID of the main server process is automatically appended to # the filename. # #LockFile /usr/freeware/apache/logs/httpd.lock # # PidFile: The file in which the
[PHP-DEV] PHP 4.0 Bug #9642 Updated: Failure at configure stage when linking with curl that has ssl support
ID: 9642 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Compile Problem Assigned To: Comments: Yes, only way to address this is to use --with-openssl in configure line. I changed the configure a bit to exit with error text if --with-openssl is not and curl needs it. The check isn't bullet proof but should work in most cases. --Jani Previous Comments: --- [2001-03-09 02:18:13] [EMAIL PROTECTED] We have the same problem when linking with other libraries with SSL. One way to get around it is to add the configure argument --with-openssl. --- [2001-03-08 18:40:51] [EMAIL PROTECTED] When configuring PHP with curl support, and curl has been compiled with ssl support the configure stage fails with unresolved symbol errors: == Undefined first referenced symbol in file SSL_library_init /usr/local/lib/libcurl.so == The problem stems from the fact that the SSL libs aren't being included in the LIB list. Hacking the configure file so that the line: LIBS="-lcurl $LIBS" now reads LIBS="-lssl -lcrypto -lcurl $LIBS" solved the problem for me. Is there a way PHP can determine if libcurl has SSL support and add in those two libs if required? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9642edit=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 #9661 Updated: PHP sometimes dumps core
ID: 9661 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Reproduceable crash Assigned To: Comments: What is the mysql version you are using? And have you tried the latest CVS snapshot from http://snaps.php.net/ as I can't reproduce this with latest CVS. --Jani Previous Comments: --- [2001-03-09 18:50:38] [EMAIL PROTECTED] Sorry, I forgot the configure line. It's: --enable-track-vars --with-mysql=/usr/local/mysql --with-mhash --with-mcrypt --with-apxs=/usr/local/apache/bin/apxs --- [2001-03-09 18:44:56] [EMAIL PROTECTED] What was the configure line used for PHP 4 ? --Jani --- [2001-03-09 13:34:52] [EMAIL PROTECTED] When I run .php files under Apache (1.3.19) PHP sometimes crash. I can run the same file several times, and only sometimes is crashes PHP. I have found out that it only happens when the PHP file is accessing a MySQL database. This is what is recorded in the apache log (a lot of them): [Fri Mar 9 19:24:51 2001] [notice] child pid 22845 exit signal Segmentation fault (11) I have generated a backtrace (sorry, apache is not compiled with debug information - only PHP): Starting program: /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf -X (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. 0x400da4c1 in free () from /lib/libc.so.6 (gdb) bt #0 0x400da4c1 in free () from /lib/libc.so.6 #1 0x400da343 in free () from /lib/libc.so.6 #2 0x401982cc in shutdown_memory_manager (silent=1, clean_cache=0) at zend_alloc.c:478 #3 0x401c1845 in php_request_shutdown (dummy=0x0) at main.c:665 #4 0x401bf26b in php_apache_request_shutdown (dummy=0x0) at mod_php4.c:290 #5 0x8095d19 in run_cleanups () #6 0x80943a5 in ap_clear_pool () #7 0x8094427 in ap_destroy_pool () #8 0x80a4fc3 in child_main () #9 0x80a5141 in make_child () #10 0x80a52bc in startup_children () #11 0x80a592c in standalone_main () #12 0x80a617c in main () #13 0x40086dcc in __libc_start_main () from /lib/libc.so.6 --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9661edit=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 #9644 Updated: File Upload eats all RAM and swap space
ID: 9644 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Reproduceable crash Assigned To: Comments: I can't reproduce this. Please try the following script. upload.php: form action="upload.php" method="post" enctype="multipart/form-data" name="admin" input type="file" name="userfile" input type=submit /form ?php if(isset($userfile_size) $userfile_size) { copy ($userfile, "/tmp/uploaded_file"); unlink($userfile); } ? Previous Comments: --- [2001-03-10 01:52:48] [EMAIL PROTECTED] I have compiled the CVS snapshot, with the same configure options as before, and the problem still exists. Have not compiled it with APC this time. I have copied php.ini-dist to /usr/local/lib/php.ini --- [2001-03-09 19:49:25] [EMAIL PROTECTED] 1. There is an entry for APC in your php.ini.. have you tried this without APC? 2. Please try the latest CVS snapshot from http://snaps.php.net/ --Jani --- [2001-03-09 01:10:31] [EMAIL PROTECTED] Hi! I'm using PHP to create a file upload script for a website. When a user uploads a large file (1Mb) my server always starts to use all the available RAM(I have 160Mb installed), and also uses up all the swap space(256Mb). This happens for any upload script written in PHP, even scripts that work on other servers. I can upload files to scripts written in PERL, without a problem. To resolve this problem, my only option is to completely kill apache with 'apachectl stop' and then start it back 'apachectl start' Server software: Apache 1.3.19 (also happened while I was running 1.3.17) PHP 4.0.4pl1 Linux 2.4.1 (originally slackware 7.1 distro) Server specs: Intel Pentium 133Mhz 160Mb RAM 10Gb HDD Here is the script that I'm using: ?php $base = realpath($DOCUMENT_ROOT . '/goods/docs/'); if (!$path) { $xdir = $base; $idir = '/goods/docs/'; $sdir = './'; $spath = '/'; } else { $idir = '/goods/docs/' . $path; $xdir = realpath($base . '/' . $path); $sdir = '/' . $path; $newpath = realpath($base . '/' . $path) . '/'; $spath = substr($newpath, strlen($base), strlen($newpath)-strlen($base)); } if (substr($xdir, 0, strlen($base)) != $base) { echo "font size="4" color="#FF"Trying something?/font"; } else { if ($userfile_size) { $target = $xdir.'/'.$userfile_name; if (!copy ($userfile,$target)) { echo 'Error copying file! Please try again!brPress the back button in your browser!'; } else { header ("Location: http://mouthoff.magestudios.net/admin/filemanager/?path=".urlencode($path)); exit; } } else { ? FORM ENCTYPE="multipart/form-data" ACTION="/admin/filemanager/upload.php" METHOD="POST" Upload this file: INPUT NAME="userfile" TYPE="file" INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="2000" input type="hidden" name="path" value="?php echo $spath;?" INPUT TYPE="submit" name="sendfile" VALUE="Upload File" /FORM ?php } } ? I'm a PHP newbie, so please excuse any bad coding =) Here's a copy of php.ini: [PHP] ;;; ; About this file ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overriden using ; the -c argument in command line mode. ; ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; ; Directives are specified using the following syntax: ; directive = value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL ~E_NOTICE), or a quoted string ("foo"). ; ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None
[PHP-DEV] PHP 4.0 Bug #8856 Updated: gethostbyname returns hostname instead of adress
ID: 8856 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Network related Assigned To: Comments: For at least some months, gethostbyname() in sockets.c has been replaced by gethostbyname() in ext/standard/dns.c which does memcpy(in.s_addr, *(hp-h_addr_list), sizeof(in.s_addr)); Could you try the latest CVS? Could you test both gethostbyname() and gethostbynamel() in PHP? They do it differently. I think both should work. Previous Comments: --- [2001-03-10 17:13:23] [EMAIL PROTECTED] It sounds like a DNS problem to me. It would be wise if you check that out too. I though about this too at first, but the right information is in both cases stored in the host_struct-h_addr_list. But the information is only correct if you memcpy it to a.s_addr, instead of typecasting it. --- [2001-03-10 16:30:21] [EMAIL PROTECTED] It sounds like a DNS problem to me. It would be wise if you check that out too. --- [2001-03-10 16:12:27] [EMAIL PROTECTED] Works for me just fine with latest CVS. Please try the latest CVS snapshot from http://snaps.php.net/ --Jani --- [2001-01-23 12:28:11] [EMAIL PROTECTED] The gethostbyname doesn't seem to work on some of the systems I use. The problem only occurs on some machines, others work fine. The problem only occurs on 4.0x, but not on 3.0x on the same machine. All machines use the same build of php4. For example: PHP echo (gethostbyname ("sql-1.vuurwerk.nl")); ? Result: sql-1.vuurwerk.nl The bug? also affects functions like mysql_connect. I am unable to connect to a sql server unless I replace the hostname with an ip adress. I've traced the problem back to sockets.c, line 817: a.s_addr = (int) (*(host_struct-h_addr_list[0])); If I replace the code above with the equivalent code used in php3 the problem is solved: memcpy (a.s_addr, *(host_struct-h_addr_list), sizeof (a.s_addr)); If you need more information please let me know. Niels Leenheer [EMAIL PROTECTED] --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8856edit=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 #8815 Updated: allow_fopen_url = On include(URL) don't work
ID: 8815 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: *Configuration Issues Assigned To: Comments: Please try the latest CVS snapshot from http://snaps.php.net/ as I can't reproduce this bug with it. --Jani Previous Comments: --- [2001-01-28 01:45:40] [EMAIL PROTECTED] tring that gives me the same 'document contains no data' in netscape. There is a firewall so it cannot get out of port 80. But when tring it on another domain on the same web server. I get the same error, another domain on a different machines gives the same error. I am going to be compiling and installing PHP4.0.4pl1 on my local servers here to se if the same error occurs. I hope you have some insight. --- [2001-01-27 21:08:43] [EMAIL PROTECTED] Does this simple example work for you: ?php include("http://www.php.net"); ? If so, you are propably doing something wrong or have misunderstood the use of include() --Jani --- [2001-01-19 21:39:57] [EMAIL PROTECTED] After compiling PHP 4.0.4pl1 with ./configure" --prefix=/usr --with-config-file-path=/usr/lib" --with-apache=../apache_1.3.14 --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --with-gd --with-jpeg-dir --with-t1lib --with-ttf --with-mhash --with-openssl=/usr/local/ssl --with-curl --with-imap=../imap-2000a --with-mm --with-zlib --with-bz2 --enable-gd-imgstrttf --enable-track-vars --enable-magic-quotes --enable-trans-sid --enable-sockets --enable-ftp --enable-bcmath --enable-calendar --with-gnu-ld and then making and installing into Apache_1.3.14, and running it, when tring to include("URL"); or include("localpath?test=test"); it will give the result of "Error No Data Sent". also when in docs/test/ and tring to include a file like this. include("../test2/test/php"); it will fail and cannot find the file. in the configuration (php.ini) there is a allow_url_fopen = On. and in phpinfo it says allow_url_fopen local value of '1' and a master value of '1'. This is a stock php.ini (except the error_log was set to a file and the requirted changes for 'imp/horde'. Other than that it is the stock config. the system is Glibc 2.1.3, Linux Kernel 2.4. any help with this is greatly appriciated. thanks --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8815edit=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 #9661 Updated: PHP sometimes dumps core
ID: 9661 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Reproduceable crash Description: PHP sometimes dumps core I have tried with the CVS snapshot from 09/03/2001, but can try with a newer snapshot if you need it. I use MySQL version 3.22 Previous Comments: --- [2001-03-10 19:59:08] [EMAIL PROTECTED] ehm..sorry, I just noticed that you had tried with latest CVS. Or have you? Could you please try and update your checkout? --Jani --- [2001-03-10 19:58:04] [EMAIL PROTECTED] What is the mysql version you are using? And have you tried the latest CVS snapshot from http://snaps.php.net/ as I can't reproduce this with latest CVS. --Jani --- [2001-03-09 18:50:38] [EMAIL PROTECTED] Sorry, I forgot the configure line. It's: --enable-track-vars --with-mysql=/usr/local/mysql --with-mhash --with-mcrypt --with-apxs=/usr/local/apache/bin/apxs --- [2001-03-09 18:44:56] [EMAIL PROTECTED] What was the configure line used for PHP 4 ? --Jani --- [2001-03-09 13:34:52] [EMAIL PROTECTED] When I run .php files under Apache (1.3.19) PHP sometimes crash. I can run the same file several times, and only sometimes is crashes PHP. I have found out that it only happens when the PHP file is accessing a MySQL database. This is what is recorded in the apache log (a lot of them): [Fri Mar 9 19:24:51 2001] [notice] child pid 22845 exit signal Segmentation fault (11) I have generated a backtrace (sorry, apache is not compiled with debug information - only PHP): Starting program: /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf -X (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. 0x400da4c1 in free () from /lib/libc.so.6 (gdb) bt #0 0x400da4c1 in free () from /lib/libc.so.6 #1 0x400da343 in free () from /lib/libc.so.6 #2 0x401982cc in shutdown_memory_manager (silent=1, clean_cache=0) at zend_alloc.c:478 #3 0x401c1845 in php_request_shutdown (dummy=0x0) at main.c:665 #4 0x401bf26b in php_apache_request_shutdown (dummy=0x0) at mod_php4.c:290 #5 0x8095d19 in run_cleanups () #6 0x80943a5 in ap_clear_pool () #7 0x8094427 in ap_destroy_pool () #8 0x80a4fc3 in child_main () #9 0x80a5141 in make_child () #10 0x80a52bc in startup_children () #11 0x80a592c in standalone_main () #12 0x80a617c in main () #13 0x40086dcc in __libc_start_main () from /lib/libc.so.6 --- 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=9661 -- PHP Development Mailing List http://www.php.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 #9675: Translation error in German translation for functions strpos()
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.4pl1 PHP Bug Type: Documentation problem Bug description: Translation error in German translation for functions strpos() There is an error in german translation of function strpos() English version says: The optional offset parameter allows you to specify which character in haystack to start searching. The position returned is still relative to the the beginning of haystack. German version: Der optionale Parameter offset ermöglicht es, den Startwert für die Suche nach needle innerhalb von haystack anzugeben. Die zurück gegebene Positions-Angabe ist dann relatv. correct translation should be something like: Die zurückgegebene Positions-Angabe ist relativ zum Anfang von haystack. -- Edit Bug report at: http://bugs.php.net/?id=9675edit=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 #9676: Feature request for set_time_limit
From: [EMAIL PROTECTED] Operating system: Red Hat Linux 6.2 PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: Feature request for set_time_limit Taken from the user notes about set_time_limit() "malhavoc at stomped.com 23-Feb-2001 05:48 I've noticed that using this function doesn't seem to block things that make calls to services and wait for a response. Setting set_time_limit(2) and then making a call to gethostbyaddr(ip.that.does.not.resolve) just sits there until it times out. It would be -really- nice if there was a perl-esque type function like alarm() that lets you set timeouts for specific sections of code, rather than entire scripts. I'd have great use for a feature that would enable me to run non crucial pieces of code for a few seconds, and then give up and move on if it takes too long." This feature would be very nice. Thanks for all your efforts, --tom -- Edit Bug report at: http://bugs.php.net/?id=9676edit=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 #8814 Updated: Undefined Versioned Symbol
ID: 8814 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Compile Failure Assigned To: Comments: Fixed in CVS. Thank you for pointing me to the right direction! --Jani Previous Comments: --- [2001-01-19 21:11:57] [EMAIL PROTECTED] I have previously reported a problem with php-4.0.4 failing to compile, aborting with an undefined versioned symbol error (on __ns_name_unpack@@GLIBC_2.1). This problem has been reported here several times, and on all occassions the development team has responded with "this isn't a php problem" feedback. Which is, of course, not very helpful to those people trying to get php to compile. In my case I was finally able to get php to compile by moving all of the resolver libraries out of /usr/lib. Why this should have been necessary I do not know; all I know is that moving: libresolv.a libresolv_p.a libresolv.so (symlinked to /lib/libresolv.so.2) out of /usr/lib allowed php to compile. The relevant section of the config.log file seems to be: === configure:5046: checking for inet_aton in -lbind configure:5065: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED conftes$ configure:5103: checking for inet_aton in -lresolv configure:5122: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED conftes$ /usr/i586-pc-linux-gnu/bin/ld: cannot find -lresolv collect2: ld returned 1 exit status configure: failed program was: #line 5111 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char inet_aton(); int main() { inet_aton() ; return 0; } === Apparently, configure looks for inet_aton in -lbind and -lresolv, and when it finds them in both, gets confused. Preventing it from finding the -lresolv libraries solves the problem. I think. I'll be sure when I get my site to work (i.e., I'm wondering if php compiled, but perhaps isn't functional, and is screwing up httpd). In any event, I think this qualifies as an issue to either fix in the configure script, or post a warning about in the INSTALL file. And I hope to Ghu that no one else has to deal with this ridiculously obscure problem! - Mark --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8814edit=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: Open Status: Feedback Bug Type: Reproduceable crash Assigned To: Comments: 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] PHP 4.0 Bug #9677: file uploads corrupted
From: [EMAIL PROTECTED] Operating system: redhat linux 7 PHP version: 4.0.4pl1 PHP Bug Type: Unknown/Other Function Bug description: file uploads corrupted Since version 4.0.4pl1, files uploaded with the POST method are corrupted. They contain two extra lines at the top for a content/type header and and extra line. I have worked a jury-rigged fix, by fgets-ing twice to pop off the top two lines, then fgets-ing hte rest into a new file. Of course, when this bug is fixed, I'll have to go and "unfix" all my scripts that use that jury rigged workaround. -- Edit Bug report at: http://bugs.php.net/?id=9677edit=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 #9666 Updated: Can't display image/pjpeg and image/gif in one sanme page
ID: 9666 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: *Graphics related Description: Can't display image/pjpeg and image/gif in one sanme page Sorry,this page is not on web,it's on my intranet.I am a Chinese,I am not good at english.I mean one of the two types will not display on the first time that the page load,Must refresh can display togather. Previous Comments: --- [2001-03-10 14:07:36] [EMAIL PROTECTED] Works for me just fine. What is the url to that page of yours? --Jani --- [2001-03-10 03:19:26] [EMAIL PROTECTED] I am using php 4.03pl1 version on linux now.I found that bug:i use mysql's BLOB mode to record a gif or jpg binary data stream,when i read them out and display them in one same page,gif or jpg will not display on page at the first time i load the page.Must refresh the page,the two type can be displayed. I don't know if this is a bug or not,so,thanx a lot. Attach,my program: ? require("config.inc"); $db = mysql_connect($db_server,$db_user,$db_pass) or die('Can't connect db server'); mysql_select_db($db_name) or die('Can't connect to read database'); $sql = "select data,filetype from images where name='$name'"; $res = mysql_query($sql,$db); $data = mysql_result($res,0,"data"); $type = mysql_result($res,0,"filetype"); Header( "Content-type: $type"); echo $data; mysql_close(); ? --- Full Bug description available at: http://bugs.php.net/?id=9666 -- PHP Development Mailing List http://www.php.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 #9678: multipart/form POSTS corrupted
From: [EMAIL PROTECTED] Operating system: redhat 7.0 PHP version: 4.0.4pl1 PHP Bug Type: Unknown/Other Function Bug description: multipart/form POSTS corrupted Ever since 4.0.4pl1, any fields posted with a form using enctype=multipart/form are currupted. One or two line feed seem to be added to text fields when the come as variables in the receiving PHP script. -- Edit Bug report at: http://bugs.php.net/?id=9678edit=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 #9678 Updated: multipart/form POSTS corrupted
ID: 9678 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Unknown/Other Function Assigned To: Comments: Submitted twice. (#9677) Previous Comments: --- [2001-03-11 00:11:23] [EMAIL PROTECTED] Ever since 4.0.4pl1, any fields posted with a form using enctype=multipart/form are currupted. One or two line feed seem to be added to text fields when the come as variables in the receiving PHP script. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9678edit=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 #9593 Updated: disable_functions does not work as an Apache Directive
ID: 9593 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Duplicate Old-Bug Type: Apache related Bug Type: Feature/Change Request Assigned To: Comments: Check bug: #6982 --Jani Previous Comments: --- [2001-03-06 21:03:48] [EMAIL PROTECTED] In Apache I have the line: AddType application/x-httpd-php .php php_admin_flag safe_mode On php_admin_value disable_functions phpversion php_admin_value disable_functions is ignored, however it does show up as a local varible in phpinfo(). Note all other Apache directives I have are working fine. If I do this in php.ini: disable_functions = phpversion It works. I need this functionality in Apache however. Thanks --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9593edit=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] phpMyAdmin and arg_separator = amp;
On Wed, 28 Feb 2001, Jim Winstead wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Hi there, I just came across something very odd: After setting arg_separator = "amp;" in my php.ini Tobias Ratschiller's phpMyAdmin no longer works correctly. The start page loads correctly, every page thereafter dies with an SQL error. things break because someone was dumb and used the "arg_separator" that used to be used to handle parsing the incoming request to also handle the parsing that the session-id adding stuff does, and then changed the documentation for arg_separator without regard to the existing behavior. so the get parsing is now expecting to use amp; to separate arguments when you set arg_separator that way. there should be two config variables for this. This little patch (hack, I know :) addresses this problem. Please check it out and tell me whether it could be committed or not. This hack relies on the fact that only and ; are supported by browsers. --Jani Index: php_variables.c === RCS file: /repository/php4/main/php_variables.c,v retrieving revision 1.21 diff -u -r1.21 php_variables.c --- php_variables.c 2001/02/26 06:07:31 1.21 +++ php_variables.c 2001/03/11 05:52:51 @@ -218,7 +218,7 @@ void php_treat_data(int arg, char *str, zval* destArray ELS_DC PLS_DC SLS_DC) { char *res = NULL, *var, *val; - const char *c_var; + const char *c_var, *delim; pval *array_ptr; int free_buffer=0; char *strtok_buf = NULL; @@ -277,12 +277,16 @@ return; } + if (PG(arg_separator) != ";") { + delim = ""; + } else { + delim = ";"; + } + if (arg == PARSE_COOKIE) { var = php_strtok_r(res, ";", strtok_buf); - } else if (arg == PARSE_POST) { - var = php_strtok_r(res, "", strtok_buf); } else { - var = php_strtok_r(res, PG(arg_separator), strtok_buf); + var = php_strtok_r(res, delim, strtok_buf); } while (var) { @@ -298,7 +302,7 @@ if (arg == PARSE_COOKIE) { var = php_strtok_r(NULL, ";", strtok_buf); } else { - var = php_strtok_r(NULL, PG(arg_separator), strtok_buf); + var = php_strtok_r(NULL, delim, strtok_buf); } } if (free_buffer) { -- PHP Development Mailing List http://www.php.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 #9225 Updated: Somthing is eating my cflags
ID: 9225 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Compile Failure Assigned To: Comments: I can't reproduce this with latest CVS. My gcc version: [root@kossu Zend]# gcc --version egcs-2.91.66 --Jani Previous Comments: --- [2001-02-12 08:43:23] [EMAIL PROTECTED] Hiya, i have these flags for compiling: CXXFLAGS = CFLAGS= -Os -O6 -march=pentium when i do: ./configure --with-apache=/usr/src/wico/apache_1.3.17 --with-config-file-path=/usr/local/apache/conf --enable-sigchild --disable-pear --with-bz2 --with-curl=/usr/local/curl --enable-ftp --with-gd --with-mcrypt=/usr/local/mcrypt --with-mysql=/usr/local/mysql --disable-session --enable-sockets --enable-sysvsem --enable-sysvshm --with-zlib --enable-static make make install i get this: Making all in Zend make[1]: Entering directory `/home/src/wico/php-4.0.4pl1/Zend' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -Os -O6 -march=pentium -c zend_language_scanner.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -Os -O6 -march=pentium -c zend_ini_scanner.c /bin/sh ../libtool --silent --mode=link gcc -Os -O6 -march=pentium -o libZend_c.la zend_language_scanner.lo zend_ini_scanner.lo /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -Os -O6 -march=pentium -c zend_language_parser.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -Os -O6 -march=pentium -c zend_ini_parser.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -Os -O6 -march=pentium -c zend_alloc.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -Os -O6 -march=pentium -c zend_compile.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -Os -O6 -march=pentium -c zend_constants.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -Os -O6 -march=pentium -c zend_dynamic_array.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 s -O6 -march=pentium -c ./zend_execute.c gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [zend_execute.lo] Error 1 make[1]: Leaving directory `/home/src/wico/php-4.0.4pl1/Zend' make: *** [all-recursive] Error 1 watch this line: /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 s -O6 -march=pentium -c ./zend_execute.c changing it to this works: /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -Os -O6 -march=pentium -c ./zend_execute.c Greetz, Wico --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9225edit=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] phpMyAdmin and arg_separator = amp;
Jani Taskinen wrote: Index: php_variables.c === RCS file: /repository/php4/main/php_variables.c,v retrieving revision 1.21 diff -u -r1.21 php_variables.c After applying your patch I get never-ending php.exe processes. -- 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]
[PHP-DEV] PHP 4.0 Bug #9679: undefined variable
From: [EMAIL PROTECTED] Operating system: W2K PHP version: 4.0.4pl1 PHP Bug Type: Variables related Bug description: undefined variable Warning: Undefined variable: currYear in c:\inetpub\wwwroot\calendar\month.view.php on line 29 this is the code that is causing this if(!$currYear) { $currYear = date("Y"); } I found some examples that have $variable++ but the variable is not predefined, and some other examples like if (!$submit) {} also give warnings "undefined variable"... On a couple of forums I've found the same problem, but no solution..is it a configuration problem or a bug People that wrote those examples did not seem to have those problems. thanks for help -- Edit Bug report at: http://bugs.php.net/?id=9679edit=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 #9679 Updated: undefined variable
ID: 9679 User Update by: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Variables related Description: undefined variable Previous Comments: --- [2001-03-11 02:35:10] [EMAIL PROTECTED] Warning: Undefined variable: currYear in c:inetpubwwwrootcalendarmonth.view.php on line 29 this is the code that is causing this if(!$currYear) { $currYear = date("Y"); } I found some examples that have $variable++ but the variable is not predefined, and some other examples like if (!$submit) {} also give warnings "undefined variable"... On a couple of forums I've found the same problem, but no solution..is it a configuration problem or a bug People that wrote those examples did not seem to have those problems. thanks for help --- Full Bug description available at: http://bugs.php.net/?id=9679 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]