#41350 [Com]: Error in my_thread_global_end()
ID: 41350 Comment by: wangyi6854 at sohu dot com Reported By: graham at directhostinguk dot com Status: No Feedback Bug Type: MySQL related Operating System: Windows 2003 PHP Version: 5.2.3 Assigned To: scottmac New Comment: I got the problem on Win2k3, IIS6, php5.2.4 PHP Version 5.2.4 System Windows NT BANDAO-17 5.2 build 3790 Build Date Aug 30 2007 07:05:48 Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" Server API CGI/FastCGI Virtual Directory Support enabled Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File F:\PHP5\php.ini PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety enabled Zend Memory Manager enabled IPv6 Support enabled Registered PHP Streams php, file, data, http, ftp, compress.zlib Registered Stream Socket Transports tcp, udp Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.* mysql MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 5.0.45 Directive Local Value Master Value mysql.allow_persistent On On mysql.connect_timeout 60 60 mysql.default_host no value no value mysql.default_password no value no value mysql.default_port no value no value mysql.default_socket no value no value mysql.default_user no value no value mysql.max_links Unlimited Unlimited mysql.max_persistent Unlimited Unlimited mysql.trace_mode Off Off mysqli MysqlI Support enabled Client API library version 5.0.45 Client API header version 5.0.45 MYSQLI_SOCKET /tmp/mysql.sock Directive Local Value Master Value mysqli.default_host no value no value mysqli.default_port 3306 3306 mysqli.default_pw no value no value mysqli.default_socket no value no value mysqli.default_user no value no value mysqli.max_links Unlimited Unlimited mysqli.reconnect Off Off Error in my_thread_global_end(): 1 threads didn't exit Previous Comments: [2007-09-18 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2007-09-17 07:16:18] thorsten at phpmyfaq dot de The bug still exists with today's build: zend_mm_heap corrupted Error in my_thread_global_end(): 252 threads didn't exit [2007-09-14 06:53:08] csharp dot net dot 2007 at hotmail dot com Error in my_thread_global_end(): 1, Error in my_thread_global_end(): 3 I have the same issue. I opened php.ini and disabled the PHP_IISFUNC like this : ;[PHP_IISFUNC] ;extension=php_iisfunc.dll The problem goes away. [2007-09-12 15:51:29] Chicken at TheMooFarm dot com Forgot to add PHP was installed by the MIS php-5.2.4-win32-installer.msi but then I copied over the missing DLLs by downloading the ZIP php-5.2.4-Win32.zip why are there missing dlls in the MSI install anyway ?¿? I know I am complaining a lot (this stuff is free after all) but isnt this a release version shouldnt a msi install the dlls heh :o) anyway GD seems to load GD Version bundled (2.0.34 compatible) in phpinfo Hope there is a fix soon lots of people trying to have XP development computers so they can design their CMS / Blog sites really need access to what is working on their servers. [2007-09-12 15:25:36] Chicken at TheMooFarm dot com This is sucking real hard I am using Mysql Ver5.041-community-nt apache_2.2.4-win32-x86-no_ssl php-5.2.4-win32-installer.msi TRIED ALSO from Mysql's site php_5.2.0_mysqli_5.0.27-win32.zip I do a install of PHP Version 5.2.4 I only enable 3 extensions [PHP_CURL] extension=php_curl.dll [PHP_GD2] extension=php_gd2.dll [PHP_MYSQL] extension=php_mysqli.dll I have tried replacing the Mysql DLL shipping with PHP with the Mysql Connectoid and the DLL that ships with Mysql libmysql.dll The GD2 Extension Loads the Curl and Mysql Dlls CHOKE APACHE ERROR LOG PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\Apache2\\php\\ext\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\Apache2\\php\\ext\\php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0 If PHP can load GD without problems but it cant load Curl or Mysql or Mysqli It sounds like a problem in the compiled source code ---
#42692 [NEW]: Procedure 'int1' not present with doc/lit SoapServer
From: michael dot tutty at gmail dot com Operating system: SuSE 10.2 PHP version: 5CVS-2007-09-18 (snap) PHP Bug Type: SOAP related Bug description: Procedure 'int1' not present with doc/lit SoapServer Description: Calling AddNumbers on the sample SOAP server class yields the familiar "Procedure 'xxx' not present" exception when calling $server->handle(). Calling the reflectString(string) method works. It seems as though the number of parameters makes a difference. This seems like a pretty big problem, as it prevents PHP from acting as a WS-I-compliant service to .NET and Java-based consumers. I tested with this service class as part of verifying bug 42086. It is not fixed in this example. Since I'm not the owner of 42086, I am submitting this report instead. Reproduce code: --- http://pastebin.com/m786a07d4 Expected result: The SoapServer class should recognize the method being called. Actual result: -- The SoapServer class appears to look for an implementation method that matches the name of the first Xml tag in the SOAP envelope. I think this would be correct for rpc/encoded usage, but not for doc/lit. -- Edit bug report at http://bugs.php.net/?id=42692&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42692&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42692&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42692&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42692&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42692&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42692&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42692&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42692&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42692&r=support Expected behavior:http://bugs.php.net/fix.php?id=42692&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42692&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42692&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42692&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42692&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42692&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42692&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42692&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42692&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42692&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42692&r=mysqlcfg
#42687 [NEW]: cannot use php_mssql.dll under php5isapi.dllw with IIS 6.0
From: support at fox-it dot dk Operating system: Windows 2003 x64 ServicePack 2 PHP version: 5.2.4 PHP Bug Type: MSSQL related Bug description: cannot use php_mssql.dll under php5isapi.dllw with IIS 6.0 Description: Upgraded php v5.2.3 -> v5.2.4. Making as script calling mssql_functions eg. mssql_connect works when running php.exe script.php. a phpinfo also show mssql extension is active when run via commandline, but not when loaded viap php5isapi, other extensions such as mysqli works fine. PHP is in the systempath. Tried with bundled ntwdblib and with version 8.0.2187 (postsp4 fix). IIS is running in 32-bit mode and it did work with php v5.2.3 Reproduce code: --- Expected result: mssql_connectan other mssql_functions works. Actual result: -- Fatal error: Call to undefined function mssql_connect() in W:\Inetpub\dashboardtest.idenyt.dk\john.php on line 4 -- Edit bug report at http://bugs.php.net/?id=42687&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42687&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42687&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42687&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42687&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42687&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42687&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42687&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42687&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42687&r=support Expected behavior:http://bugs.php.net/fix.php?id=42687&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42687&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42687&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42687&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42687&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42687&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42687&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42687&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42687&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42687&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42687&r=mysqlcfg
#42691 [NEW]: array_reduce: initial parameter should allow non-numeric values
From: tjerk dot meesters at muvee dot com Operating system: Linux 2.6 PHP version: 5.2.4 PHP Bug Type: Arrays related Bug description: array_reduce: initial parameter should allow non-numeric values Description: array_reduce() accepts an initial value to be passed as the first argument in the callback function instead of NULL. However, this initial value - if passed - is converted to an int. This is probably because the more common use of this idiom is for mathematical reduction. It would be helpful to allow other types to be passed such as strings or objects. Note: this ticket is a duplicate for #42566, but the reporter never bothered to follow up. Reproduce code: --- Expected result: hello world Actual result: -- 0 world -- Edit bug report at http://bugs.php.net/?id=42691&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42691&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42691&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42691&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42691&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42691&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42691&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42691&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42691&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42691&r=support Expected behavior:http://bugs.php.net/fix.php?id=42691&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42691&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42691&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42691&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42691&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42691&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42691&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42691&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42691&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42691&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42691&r=mysqlcfg
#42684 [Opn->Csd]: ldap_connect never connects
ID: 42684 User updated by: djlift at mac dot com Reported By: djlift at mac dot com -Status: Open +Status: Closed Bug Type: LDAP related Operating System: hpux 11.11i PHP Version: 5.2.4 New Comment: Nevermind... I had to put this line in the apachectl file to load the shared library: export LD_PRELOAD="$LD_PRELOAD:/usr/local/lib/libldap.sl" This fixed my issue. mark Previous Comments: [2007-09-17 02:05:16] djlift at mac dot com I also tried to bind after connecting (just to see): because i read that nothing really happens until you attempt to bind but it still doesn't work. [2007-09-17 01:55:04] djlift at mac dot com Description: Whenever I try to connect to any ldap server in my network, I can never connect. I'm using openldap 2.3.38 on hpux 11.11i. openldap command line binaries work fine. Let me know what else i can provide. Thanks, Mark Reproduce code: --- Expected result: success Actual result: -- Warning: ldap_connect() [function.ldap-connect]: Could not create session handle: Unknown error in /opt/hpws/apache/htdocs/nissanq/ test.php on line 4 failure -- Edit this bug report at http://bugs.php.net/?id=42684&edit=1
#42690 [NEW]: key function in foreach array does not start from the beginning of array
From: owidjaya at gmail dot com Operating system: PHP version: 5.2.4 PHP Bug Type: *General Issues Bug description: key function in foreach array does not start from the beginning of array Description: key function within foreach array does not start from the very beginning of the array instead it starts from the 2nd element Reproduce code: --- $courses= array( 1=>"test", 2=>"test2", 3=>"test3" ); echo key($courses)."\n"; foreach($courses as $key=>$course){ echo $key ." ". $course."\n"; } reset($courses); echo "\n"; echo key($courses)."\n"; foreach($courses as $course){ echo key($courses) ." ". $course."\n"; next($courses); } Expected result: 1 1 test 2 test2 3 test3 1 1 test 2 test2 3 test3 Actual result: -- 1 1 test 2 test2 3 test3 1 2 test 3 test2 test3 -- Edit bug report at http://bugs.php.net/?id=42690&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42690&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42690&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42690&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42690&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42690&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42690&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42690&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42690&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42690&r=support Expected behavior:http://bugs.php.net/fix.php?id=42690&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42690&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42690&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42690&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42690&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42690&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42690&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42690&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42690&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42690&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42690&r=mysqlcfg
#37562 [Com]: Unable to lookup "ParameterFieldDefinitions"
ID: 37562 Comment by: melam02 at yahoo dot com Reported By: mitohuffman at yahoo dot com dot mx Status: Assigned Bug Type: COM related Operating System: Windows XP SP2 PHP Version: 5.1.4 Assigned To: wez New Comment: try $creport->ParameterFields->Item(1) Previous Comments: [2007-08-15 08:36:39] [EMAIL PROTECTED] Assigned to the maintainer. [2006-05-23 16:42:26] mitohuffman at yahoo dot com dot mx Description: I made a script that open a Crystal Reports file and export it to PDF. I set the database info, the RecordSelectionFormula string and de ExportOptions and all works fine. The problem comes when i try to call the ParameterFieldDefinitions class. GBY Reproduce code: --- $ObjectFactory= New COM("CrystalReports10.ObjectFactory.1"); $crapp = $ObjectFactory->CreateObject("CrystalDesignRunTime.Application"); $creport = $crapp->OpenReport($report, 1); $creport->Database->Tables->Item(1)->ConnectionProperties['User ID'] = "MyUser"; $creport->Database->Tables->Item(1)->ConnectionProperties['Password'] = "MyPass"; $creport->FormulaSyntax = 0; $creport->RecordSelectionFormula = "{V_CON_LOTES.ID_CONCURSO}=$id_concurso and {LOTES_CONCURSO_COTIZADOS.ID_ESTATUS}=1"; $param1 = $creport->ParameterFieldDefinitions->Item("fecha_imp"); // Error Point. I tried using Item(1) and i get the same error. Expected result: Get the "Fecha_imp" parameter, set (before) in the Crystal Reports Designer, for setting the corresponding value. Actual result: -- Fatal error: Uncaught exception 'com_exception' with message 'Unable to lookup `ParameterFieldDefinitions': Nombre desconocido. ' in C:\Inetpub\wwwroot\Crystal_reports\test.php:19 Stack trace: #0 C:\Inetpub\wwwroot\Crystal_reports\test.php(19): unknown() #1 {main} thrown in C:\Inetpub\wwwroot\Crystal_reports\test.php on line 19 -- Edit this bug report at http://bugs.php.net/?id=37562&edit=1
#42689 [NEW]: Cannot bind parameter to a dimensional value within a foreach loop
From: evangun2001 at yahoo dot fr Operating system: windows PHP version: 5CVS-2007-09-17 (CVS) PHP Bug Type: MySQLi related Bug description: Cannot bind parameter to a dimensional value within a foreach loop Description: Hello, As you can see in the code below, binding to $value['id'] will not work because $value is a variable generated by the foreach loop. Using a dimensional variable as a parameter causes no bugs outside a foreach loop, so I'm pretty sure it really is a bug. $arr = array(array('id' => 1)); $stmt = $dbh -> prepare('SELECT member_login FROM members WHERE member_id = ?;'); $stmt -> bind_param('i', $value['id']); foreach($arr as $value){ echo $value['id']; //this will output 1 as expected $stmt -> execute(); $stmt -> bind_result($login); while($stmt -> fetch()){ echo $login;//this will output nothing } } Reproduce code: --- The code I've given in description pretty much says it all ! For a quick and global understanding of the situation, I've also put a summary of what works, what does not work, and the workaround I've been using so far. Check it here : http://trombiaudencia2.free.fr/bug.txt Actual result: -- Just to let you know, in my application, the real bind_param line looked like : $stmt -> bind_param('si', $_POST['members'][$value['id']]['login'], $value['id']); and in that case, php told me : Fatal error: Only variables can be passed by reference in E:\Program Files\EasyPHP\www\create_quiz_ajaxrequests.php on line 368 which is due to the second parameter, the first one does not create any warning at all. Strange, because you'll see that in the simplified example I've given above, no error message is displayed at all. I use loops all the time so to me, it's reeaaally a down side for MySQLi not to be able to bind parameters. I have been using PDO for a while and heard MySQLi had better performances, but this kinda cools me down :( Maybe I'll wait a bit until this bug is fixed before I migrate to MySQLi. Thank you very much !! Evangun -- Edit bug report at http://bugs.php.net/?id=42689&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42689&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42689&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42689&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42689&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42689&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42689&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42689&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42689&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42689&r=support Expected behavior:http://bugs.php.net/fix.php?id=42689&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42689&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42689&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42689&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42689&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42689&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42689&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42689&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42689&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42689&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42689&r=mysqlcfg
#42662 [Opn->Csd]: function no execution in if condition
ID: 42662 User updated by: thug at thug dot fr Reported By: thug at thug dot fr -Status: Open +Status: Closed Bug Type: Unknown/Other Function Operating System: win XP PHP Version: 5.2.4 New Comment: OK, y am sorry... I think that all functions of if expression should executed. Previous Comments: [2007-09-16 23:29:48] carsten_sttgt at gmx dot de First one question: You have interchanged expected and actual result? If yes, that's the correct behaviour: If the first expression from the AND operator evaluate the FALSE, it make's no sense to test the rest, because the complete statement can't be TRUE anymore. (with the AND/&& operator all expressions must be true) e.g.: | if( $bool && fct($a) && fct($b)) - Only if $bool == true, fct($a) will be executed - Only if $bool == true and fct($a) returns true, fct($b) will be executed [2007-09-13 17:36:18] thug at thug dot fr Description: When using a function in a if() condition, the function is not always launched. Reproduce code: --- if( !$something && !aff_new_com('news', $last_time) && !aff_new_com('ftp', $last_time) ) Expected result: if( $bool && fct($a) && fct($b)) Then fct($a) and fct($b) are not launched if( funcct($a) && $bool && fct($b)) Then fct($a) is launched but not fct($b) fct return always true or false Actual result: -- All functions in the if should be launched. -- Edit this bug report at http://bugs.php.net/?id=42662&edit=1
#15373 [Com]: mail() not working, no error with invalid SMTP or email address
ID: 15373 Comment by: johan dot jv at gmail dot com Reported By: alonso at admintek dot net Status: No Feedback Bug Type: Mail related Operating System: win2000 PHP Version: 4.2.1 Assigned To: mfischer New Comment: Hello guys, I see that you are having a lot of problem in sending email and some of you might not even been receiving any emails. Couple of things that you might need to check before sending any emails. 1- Anti-virus (make sure that the antivirus is not blocking port 25) 2- Your firewall, make sure that your fire wall are not blocking port 25, also make sure that you have your SMTP anable to receive email, you can set that up in your Firewall - Start - Settings- Network Connections - Advanced tab - Setting - exceptions "if you SMTP is not there, click Add Port , on the name field you can write (SMTP TCP) and under port type 25, then hit ok. do that again but with the same port and name but with UDP. 3 - REALLY IMPORTANT. if you are behind a router , you ISP might blocked 25 or you might just need to forward port 25 from your router seetings "portforward dot com/" 4- If you want to know if your port 25 is open or available go to this website canyouseeme dot org and on the field type 25 that will tell you if your port is active. --- Something else you might try. -==if you don't know if your SMTP is working or install, Click Start - Setting - Control panel - add & Remove program - on the left side click Add / Remove Window Components - under the Windows Components Wizard you can see Internet Information Services (IIS) Click that and then Click DETAIL (it's on the right side) after that you can see a list of the IIS Server, Click or Check the SMTP Server __Window might ask you for Window XP or your OS CD to install does files make sure you have that on hand if you want to do this step. Then say okay. Restart your Apache server or you IIS server if you have one, then try to send your email again. It might work.doesn't hurt to try. :) Good Luck Previous Comments: [2007-07-08 16:50:50] kivin_kong at hotmail dot com i have windows server 2003 R2 with IIS and php 5.2.3 and the mail() function ain't working the i use my ISP DNS server and not workin don't know what to do can someone help it is a recruitment form trying to send it to my email [EMAIL PROTECTED] [2006-10-05 05:15:04] bigredraddish at hotmail dot com XP PRO SP2 PHP 5.1.6 This is the error Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\www\htdocs\sendmail.php on line 43 this is line 43 of my php mail script mail("[EMAIL PROTECTED]", $subject, $message, $from); This is my PHP.INI [mail function] ; For Win32 only. SMTP = smtp.dodo.com.au ; For Win32 only. sendmail_from = [EMAIL PROTECTED] [2006-07-21 12:44:33] ishongwe at yahoo dot com Is it possible to use the mail() function without any network connection on windows xp, and if possible how do you do it on the php.ini? Remember: Everything seem to be working fine except the mail() function, yet. Thanks in advance [2005-10-01 16:26:07] morebiz at gmail dot com Hi, I have problem like this too. I try to change to windows 2003 server with php and it work. After I install antivirus program, can not send mail. So I just know the reason is Antivirus program !!!. Now i new install Wins XP Apache+Php and config my antivirus program It Work !!. Please check your anivirus program. Good luck. Greeting from webmaster Thailand. [2003-12-19 12:31:03] georgealbert2001 at yahoo dot com i have win98 and iam using devshed ,and i download easy SMTP to make my PC an SMTP server i always try to send mail but i fail could someone tell me how to cofig to send the email The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/15373 -- Edit this bug report at http://bugs.php.net/?id=15373&edit=1
#42688 [NEW]: Alternative syntax for control structures
From: php dot net at eoasys dot com Operating system: Irrelevant PHP version: 5.2.4 PHP Bug Type: Feature/Change Request Bug description: Alternative syntax for control structures Description: I find the alternative syntax for control structures quite useful and use them exclusively in all my code. My only wish is that they become available for all similar structures. Obvious ones which come to mind are Function and Class. It has been said that: "The 'endif;' stuff is old legacy syntax and is definitely not the recommended way of doing things." It seems to me that the "{...}" form goes a ways back as well. Is the alternative syntax really frowned upon? What kind of trouble might be caused by it's use? Thanks, Richard -- Edit bug report at http://bugs.php.net/?id=42688&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42688&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42688&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42688&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42688&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42688&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42688&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42688&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42688&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42688&r=support Expected behavior:http://bugs.php.net/fix.php?id=42688&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42688&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42688&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42688&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42688&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42688&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42688&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42688&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42688&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42688&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42688&r=mysqlcfg
#42673 [Opn]: Clearing $_SESSSION var resets $_REQUEST vars when set equal
ID: 42673 User updated by: greg at imagiclab dot com -Summary: Clearing $_SESSSION var reset $_REQUEST vars when set = Reported By: greg at imagiclab dot com Status: Open -Bug Type: Variables related +Bug Type: Session related Operating System: RedHat ES 3 PHP Version: 5.2.4 New Comment: Changed category. Previous Comments: [2007-09-14 15:31:01] greg at imagiclab dot com Description: When you set a $_REQUEST var = a $_SESSION var and the session var contains alot of data, reseting the session var also reset the $_REQUEST var. Configured: './configure' '--prefix=/apps/php' '--with-zlib- dir=/apps/zlib' '--enable-exif' '--with-tidy=//apps/tidy' '--enable- track-vars' '--with-calendar=shared' '--with-config-file-path=/apps/etc' '--enable-pcntl' '--host=x86_64-redhat-linux' '--enable-magic-quotes' '- -enable-trans-sid' '--enable-wddx' '--enable-sockets' '--enable-ftp' '-- enable-inline-optimization' '--enable-memory-limit' '--with-zlib' '-- with-openssl=/apps/ssl' '--with-imap=/apps/imap' '--with- curl=/apps/curl' '--with-mysql=/apps/mysql' '--with-gd=/apps/gd' '-- with-ttf=/apps/fonts/truetype' Reproduce code: --- Expected result: array( [test]=> X etc. ) Actual result: -- Array ( [test] => ) -- Edit this bug report at http://bugs.php.net/?id=42673&edit=1
#42675 [Asn]: strtotime returns valid dates for invalid entries
ID: 42675 User updated by: amykhar at gmail dot com Reported By: amykhar at gmail dot com Status: Assigned Bug Type: Date/time related Operating System: Mac OS X PHP Version: 5.2.4 Assigned To: derick New Comment: If it is expected behavior, why does it behave differently for numeric dates? 03/345/2007 returns invalid, as I would expect it to. It seems counterintuitive to have a function that is widely used to process user- entered data doing anything other than validating that the date entered is an actual date. Previous Comments: [2007-09-16 15:37:42] [EMAIL PROTECTED] That is expected behavior. Although I would assume rather just adding 1 month to the date it would add 1 month + remaining # of days. My expected return value would be: October 15, 1992 [2007-09-14 21:51:04] amykhar at gmail dot com Description: If I enter a date with a text month and an invalid day, it returns as valid. Example, September 45, 1992 returns as valid. It THINKS the date is October 5, 1992. (The same is true for Sep 45, 1992). What it seems to do is to get the year correctly, then take the last digit of the day and then add 1 to the month. Reproduce code: --- $cdate = strtotime("September 45, 1992"); if(!$cdate){ echo(-1); exit; } else{ echo (date("M d Y",$cdate); } Expected result: It echo -1. Actual result: -- It prints out October 5, 1992 -- Edit this bug report at http://bugs.php.net/?id=42675&edit=1
#41655 [Opn->Asn]: open_basedir bypass via glob()
ID: 41655 Updated by: [EMAIL PROTECTED] Reported By: dr at peytz dot dk -Status: Open +Status: Assigned Bug Type: Safe Mode/open_basedir Operating System: Linux PHP Version: 5.2.3 Assigned To: iliaa Previous Comments: [2007-09-17 07:51:11] [EMAIL PROTECTED] The fix for this bug introduced a regression. Using: $a =glob("/home/pierre/cvs/php52/ext/*/tests/*");' Where: open_basedir = /home/pierre/cvs/php52 glob fails to access this path: Warning: glob(): Unable to access /home/pierre/cvs/php52/ext/*/tests in Command line code on line 1 [2007-06-12 12:57:50] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. [2007-06-11 17:14:02] dr at peytz dot dk Description: file_exists() etc. does not allow checking the existence of files outside the directories specified in open_basedir. This can be circumvented using glob(). glob() does check open_basedir, but its return type still reveals whether files exist outside open_basedir. The existence of a file can be checked using !is_array(glob($filename)). Reproduce code: --- var_dump(glob('/etc/hosts')); var_dump(glob('/etc/does-not-exist')); Expected result: bool(false) bool(false) or array(0) { } array(0) { } Actual result: -- bool(false) array(0) { } -- Edit this bug report at http://bugs.php.net/?id=41655&edit=1
#42666 [Opn]: virtual() causing Apache to segfault.
ID: 42666 Updated by: [EMAIL PROTECTED] -Summary: Loading XSL stylesheet with syntactical problem causes Apache to segfault. Reported By: per dot jessen at enidan dot com Status: Open Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.2.4 New Comment: updated summary. The xsl code just exposes the problem caused by the virtual call. Previous Comments: [2007-09-16 16:50:31] per dot jessen at enidan dot com The reproduce script requires virtual() which isn't available in CLI. [2007-09-16 14:51:24] [EMAIL PROTECTED] Does the crash happen in CLI? [2007-09-14 12:13:45] per dot jessen at enidan dot com I ran apache with gdb to produce this backtrace: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1214642496 (LWP 26256)] 0xb77fa792 in zend_get_executed_lineno () from /usr/lib/apache2/mod_php5.so (gdb) bt #0 0xb77fa792 in zend_get_executed_lineno () from /usr/lib/apache2/mod_php5.so #1 0xbfa1fcd8 in ?? () #2 0xb7809e05 in zend_error_noreturn () from /usr/lib/apache2/mod_php5.so #3 0xb7809e05 in zend_error_noreturn () from /usr/lib/apache2/mod_php5.so #4 0xb77c0fd4 in php_verror () from /usr/lib/apache2/mod_php5.so #5 0xb77c14df in php_error_docref0 () from /usr/lib/apache2/mod_php5.so #6 0xb76e6656 in php_libxml_structured_error_handler () from /usr/lib/apache2/mod_php5.so #7 0xb76e66bc in php_libxml_error_handler () from /usr/lib/apache2/mod_php5.so #8 0xb6bfbcac in xsltTransformError () from /usr/lib/libxslt.so.1 #9 0xb6bf87e4 in xsltParseStylesheetProcess () from /usr/lib/libxslt.so.1 #10 0xb6bf92cd in xsltParseStylesheetImportedDoc () from /usr/lib/libxslt.so.1 #11 0xb6bf939a in xsltParseStylesheetDoc () from /usr/lib/libxslt.so.1 #12 0xb6ca3918 in zif_xsl_xsltprocessor_import_stylesheet () from /usr/lib/php5/extensions/xsl.so #13 0xb783909b in execute () from /usr/lib/apache2/mod_php5.so #14 0xb7829a98 in execute () from /usr/lib/apache2/mod_php5.so #15 0xb78087e3 in zend_execute_scripts () from /usr/lib/apache2/mod_php5.so #16 0xb77c2570 in php_execute_script () from /usr/lib/apache2/mod_php5.so #17 0xb788ea4d in php_ap2_register_hook () from /usr/lib/apache2/mod_php5.so #18 0x800327ad in ap_run_handler () from /usr/sbin/httpd2-prefork #19 0x80036217 in ap_invoke_handler () from /usr/sbin/httpd2-prefork #20 0x8004247e in ap_process_request () from /usr/sbin/httpd2-prefork #21 0x8003f278 in ap_register_input_filter () from /usr/sbin/httpd2-prefork #22 0x8003a83d in ap_run_process_connection () from /usr/sbin/httpd2-prefork #23 0x80046c67 in ap_graceful_stop_signalled () from /usr/sbin/httpd2-prefork #24 0x80046f4a in ap_graceful_stop_signalled () from /usr/sbin/httpd2-prefork #25 0x80047e51 in ap_mpm_run () from /usr/sbin/httpd2-prefork #26 0x8001dd4b in main () from /usr/sbin/httpd2-prefork [2007-09-14 10:14:59] per dot jessen at enidan dot com OK, I've updated the tar ball: http://jessen.ch/files/php-problem-sep2007.tar.gz There are now only 5 lines of PHP code. The included file is empty as is the XSLT stylesheet. I'm pretty certain the problem is actually caused by the virtual() call, but it doesn't manifest itself till later. [2007-09-14 09:55:01] [EMAIL PROTECTED] Please cut the script down to minimum code (and without the HTML) that can reproduce the error. Is this reproduceable running via CLI instead of within apache? Also a backtrace would be useful as I cant reproduce this in Linux or Windows. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/42666 -- Edit this bug report at http://bugs.php.net/?id=42666&edit=1
#42566 [Com]: array_reduce coverts '' to 0 for initial value
ID: 42566 Comment by: tjerk dot meesters at muvee dot com Reported By: lindsay at marshall dot name Status: No Feedback Bug Type: Arrays related Operating System: Fedora PHP Version: 5.2.4 New Comment: This reproduces the bug: Expected: hello world Actual: 0 world Tested with PHP 5.2.0 Previous Comments: [2007-09-14 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2007-09-06 10:41:03] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. [2007-09-05 14:59:16] lindsay at marshall dot name Description: If you want to use array_reduce to produce a string rather than a number you cannot set the initial string to be '' as it is converted to 0. You can work round this but it is not elegant. There seems to be no reason why array_reduce should not work with strings (it did in 4.x) Reproduce code: --- see comment on array_reduce page Expected result: see comment on array_reduce page -- Edit this bug report at http://bugs.php.net/?id=42566&edit=1
#42686 [NEW]: magic_quotes_gpc dose not pay respect to data type
From: buganini at gmail dot com Operating system: Windows 2003 PHP version: 5.2.4 PHP Bug Type: Scripting Engine problem Bug description: magic_quotes_gpc dose not pay respect to data type Description: Under Windows 2003 IIS 6, I had a list of and I had var_dump($_POST['blah']); in the action page I got: string(5) "Array" [EMAIL PROTECTED]&* After I turned magic_quotes_gpc to off, I got what I want: array(2) { [0]=> string(4) "blah" [1]=> string(4) "bluh" } I thought it is because magic_quotes_gpc forget to consider data type while adding slashes. //This problem dosen't exist under FreeBSD Reproduce code: --- var_dump($_POST['blah']); Expected result: array(2) { [0]=> string(4) "blah" [1]=> string(4) "bluh" } Actual result: -- string(5) "Array" -- Edit bug report at http://bugs.php.net/?id=42686&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42686&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42686&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42686&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42686&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42686&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42686&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42686&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42686&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42686&r=support Expected behavior:http://bugs.php.net/fix.php?id=42686&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42686&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42686&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42686&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42686&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42686&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42686&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42686&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42686&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42686&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42686&r=mysqlcfg
#41899 [Com]: Can't open files with leading relative path of '..' and '..' is not readable
ID: 41899 Comment by: ian at onlineloop dot com Reported By: geoffwa at cs dot rmit dot edu dot au Status: Assigned Bug Type: Streams related Operating System: Solaris 10 PHP Version: 5.2.3 Assigned To: tony2001 New Comment: Unfortunately we are not in a position to wither wait for PHP6 nor immediately migrate to it when it does come out. We have too many users with too many scripts on our server, and telling over 800 people that they have to adjust their scripts in less than 6 months just doesn't work here :-( With the continuing failure to fix this bug, we are left in a very uncomfortable situation, either continue with the security hole loaded 5.1.6, or apply the patch you offered. No one from the PHP project has logged into the system we set up for them on an E3500 since 5 July 2007 either, so I'm really left wondering about the seriousness there is to actually fix this bug. Anyway, I have seen from the source for PHP that realpath is definately not a function from Sun. realplath is all from the PHP project itself, so the attempt to shovel off the blame to Sun (post from 6 Jul 3:16pm) is not justifiable. Besides, this all worked just fine up until PHP 5.2.0 came out... Previous Comments: [2007-09-13 01:56:00] geoffwa at cs dot rmit dot edu dot au I'll stress again that while the patch may work, I'm not sure if it's 'correct' or not, mainly because I have no idaa what php_checkuid_ex() is supposed to return, safe_mode-isms like open_basedir may need it. I just traced the execution of the offending PHP script repeatedly for the failure case, and deduced that the expand_filepath() call in php_checkuid_ex() that I've removed in the patch was returning an empty path under similar conditions to where a getcwd() call would fail. The actual path blatting appeared to occur in virtual_file_ex(), and we produced a separate patch which completely short-circuited this function and also made the all test conditions work. Given that PHP6 is removing safe_mode completely, I imagine this problem will hopefully be fixed then :) [2007-09-12 11:53:14] ian at onlineloop dot com I've tried the patch offered by Geoff. It seems to work just fine for us too in the cvs version from today (php5.2-200709121030). [2007-09-12 10:38:34] ian at onlineloop dot com Verified that this is still not working in 5.2.4. We made a system available on a Sun E3500, partially for the purposes of fixing this bug. The last login from anyone from the PHP team was on 5 July 2007. Is there any time plan to fix this bug? We are running on Solaris 10 and are stuck on PHP 5.1.6 because of this problem, so the situation for us is critical. [2007-08-14 15:21:39] wdierkes at 5dollarwhitebox dot org I have verified that this is *NOT* fixed in the latest CVS snapshot. Tested on Redhat Enterprise Linux 4 i386. Can we can an ETA on an official patch? [2007-07-07 02:04:42] geoffwa at cs dot rmit dot edu dot au No idea if this is correct but it fixes it: diff -ur ./php5.2-200707060030/main/safe_mode.c ./php-5.2-snap/main/safe_mode.c --- ./php5.2-200707060030/main/safe_mode.c 2007-01-13 00:30:58.0 +1100 +++ ./php-5.2-snap/main/safe_mode.c 2007-07-07 11:42:10.804129000 +1000 @@ -86,7 +86,8 @@ * If that fails, passthrough and check directory... */ if (mode != CHECKUID_ALLOW_ONLY_DIR) { - expand_filepath(filename, path TSRMLS_CC); + // VCWD_STAT() can handle relative paths right? + strlcpy(path, filename, MAXPATHLEN); ret = VCWD_STAT(path, &sb); if (ret < 0) { if (mode == CHECKUID_DISALLOW_FILE_NOT_EXISTS) { diff -ur ./php5.2-200707060030/main/streams/plain_wrapper.c ./php-5.2-snap/main/streams/plain_wrapper.c --- ./php5.2-200707060030/main/streams/plain_wrapper.c 2007-04-19 00:31:35.0 +1000 +++ ./php-5.2-snap/main/streams/plain_wrapper.c 2007-07-07 11:58:57.673891000 +1000 @@ -888,9 +888,10 @@ return NULL; } - if ((realpath = expand_filepath(filename, NULL TSRMLS_CC)) == NULL) { - return NULL; - } + //if ((realpath = expand_filepath(filename, NULL TSRMLS_CC)) == NULL) { + // return NULL; + //} + realpath = estrndup(filename, strlen(filename)); if (persistent) { spprintf(&persistent_id, 0, "streams_stdio_%d_%s", open_flags, realpath); The remainder of the comments for this report
#33296 [Com]: popen (passthru etc.) doesn't work correct
ID: 33296 Comment by: uj at u dot g8tr Reported By: thomas dot wetzler at siemens dot com Status: No Feedback Bug Type: Program Execution Operating System: SUN OS PHP Version: 4.3.10 New Comment: http://www.meta-fx.com Previous Comments: [2005-07-19 09:47:33] screen at brainkrash dot com Tested script from on php4.4.0 cli/apache2 and php4-STABLE-200507190640 on Linux server and ALL samples worked. Found this bug searching for a similar (maybe the same) issue related to popen/freads calling SVN. I modified this test script and ran tests using 4.4.0 and php4-STABLE-200507190640 with the following results: script -- #!/usr/local/apache2/php/bin/php # results --- /usr/local/apache2/php/bin/php -f test.php > test440_cli.txt > works wget -O test440_apache2.txt http://brainkrash.com/~screen/test/test.php > all 10 fail with no return from fgets /usr/local/apache2/php/bin/php -f test.php > test4-200507190640_cli.txt > works wget -O test4-200507190640_apache2.txt http://brainkrash.com/~screen/test/test.php > all 10 fail with no return from fgets expected result --- 0*** Subprozess: 'Resource id #4'; resource usage: svn [options] [args] Subversion command-line client, version 1.2.1. Type 'svn help ' for help on a specific subcommand. Most subcommands take file and/or directory arguments, recursing on the directories. If no arguments are supplied to such a command, it recurses on the current directory (inclusive) by default. Available subcommands: add blame (praise, annotate, ann) ... failure results --- 0*** Subprozess: 'Resource id #2'; resource [2005-06-23 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2005-06-15 19:16:03] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Try also the latest PHP 4 snapshot. [2005-06-15 15:54:16] thomas dot wetzler at siemens dot com We tried out PHP Version 5. With the commandline (php.exe) it seems to work but with the mod_php-module we get the same failure. Because the testing of our application take a long time, it would be good if you can find a solution for Version 4. [2005-06-11 15:18:48] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33296 -- Edit this bug report at http://bugs.php.net/?id=33296&edit=1
#41655 [Csd->Opn]: open_basedir bypass via glob()
ID: 41655 Updated by: [EMAIL PROTECTED] Reported By: dr at peytz dot dk -Status: Closed +Status: Open Bug Type: Safe Mode/open_basedir Operating System: Linux PHP Version: 5.2.3 Assigned To: iliaa New Comment: The fix for this bug introduced a regression. Using: $a =glob("/home/pierre/cvs/php52/ext/*/tests/*");' Where: open_basedir = /home/pierre/cvs/php52 glob fails to access this path: Warning: glob(): Unable to access /home/pierre/cvs/php52/ext/*/tests in Command line code on line 1 Previous Comments: [2007-06-12 12:57:50] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. [2007-06-11 17:14:02] dr at peytz dot dk Description: file_exists() etc. does not allow checking the existence of files outside the directories specified in open_basedir. This can be circumvented using glob(). glob() does check open_basedir, but its return type still reveals whether files exist outside open_basedir. The existence of a file can be checked using !is_array(glob($filename)). Reproduce code: --- var_dump(glob('/etc/hosts')); var_dump(glob('/etc/does-not-exist')); Expected result: bool(false) bool(false) or array(0) { } array(0) { } Actual result: -- bool(false) array(0) { } -- Edit this bug report at http://bugs.php.net/?id=41655&edit=1
#41350 [Com]: Error in my_thread_global_end()
ID: 41350 Comment by: thorsten at phpmyfaq dot de Reported By: graham at directhostinguk dot com Status: Feedback Bug Type: MySQL related Operating System: Windows 2003 PHP Version: 5.2.3 Assigned To: scottmac New Comment: The bug still exists with today's build: zend_mm_heap corrupted Error in my_thread_global_end(): 252 threads didn't exit Previous Comments: [2007-09-14 06:53:08] csharp dot net dot 2007 at hotmail dot com Error in my_thread_global_end(): 1, Error in my_thread_global_end(): 3 I have the same issue. I opened php.ini and disabled the PHP_IISFUNC like this : ;[PHP_IISFUNC] ;extension=php_iisfunc.dll The problem goes away. [2007-09-12 15:51:29] Chicken at TheMooFarm dot com Forgot to add PHP was installed by the MIS php-5.2.4-win32-installer.msi but then I copied over the missing DLLs by downloading the ZIP php-5.2.4-Win32.zip why are there missing dlls in the MSI install anyway ?¿? I know I am complaining a lot (this stuff is free after all) but isnt this a release version shouldnt a msi install the dlls heh :o) anyway GD seems to load GD Version bundled (2.0.34 compatible) in phpinfo Hope there is a fix soon lots of people trying to have XP development computers so they can design their CMS / Blog sites really need access to what is working on their servers. [2007-09-12 15:25:36] Chicken at TheMooFarm dot com This is sucking real hard I am using Mysql Ver5.041-community-nt apache_2.2.4-win32-x86-no_ssl php-5.2.4-win32-installer.msi TRIED ALSO from Mysql's site php_5.2.0_mysqli_5.0.27-win32.zip I do a install of PHP Version 5.2.4 I only enable 3 extensions [PHP_CURL] extension=php_curl.dll [PHP_GD2] extension=php_gd2.dll [PHP_MYSQL] extension=php_mysqli.dll I have tried replacing the Mysql DLL shipping with PHP with the Mysql Connectoid and the DLL that ships with Mysql libmysql.dll The GD2 Extension Loads the Curl and Mysql Dlls CHOKE APACHE ERROR LOG PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\Apache2\\php\\ext\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\Apache2\\php\\ext\\php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0 If PHP can load GD without problems but it cant load Curl or Mysql or Mysqli It sounds like a problem in the compiled source code [2007-09-11 12:01:38] thorsten at phpmyfaq dot de It's the Apache 2.0 Handler on my system. We're doing a SELECT query on a really big 2 GB table with PEAR::MDB2 with ext/mysql. [2007-09-10 22:49:49] [EMAIL PROTECTED] ISAPI, CGI, CLI or FCGI? How are you producing it do you have to do anything specific or does everything produce it? I can't reproduce this on my test box apart from with -i / -m but thats since been fixed in CVS by dmitry. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41350 -- Edit this bug report at http://bugs.php.net/?id=41350&edit=1