#29421 [NEW]: array_search confusions
From: redeye at erisx dot de Operating system: * PHP version: 5.0.0 PHP Bug Type: Arrays related Bug description: array_search confusions Description: When using array_search with strict set to FALSE will allways return the first matching element of an array, which is absolutly correct, but will also match every (boolean) TRUE value of an array (which is bad). This way, you could either hope no value is set to (boolean) TRUE or are forced to enable strict, which is not allways desired. This behavoir should either be better documented ( as is the behavior of FALSE ( , 0 , -1 , FALSE ) or changed to only match against ( 1 , 1 , TRUE , TRUE ). Reproduce code: --- $array = array ( 'foo' , TRUE , 'bar' ) ; $search = array_search ( 'baz' , $array ) ; var_dump ( $search ) ; Expected result: bool(false) Actual result: -- int(1) -- Edit bug report at http://bugs.php.net/?id=29421edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29421r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29421r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29421r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29421r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29421r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29421r=needscript Try newer version: http://bugs.php.net/fix.php?id=29421r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29421r=support Expected behavior: http://bugs.php.net/fix.php?id=29421r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29421r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29421r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29421r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29421r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29421r=dst IIS Stability: http://bugs.php.net/fix.php?id=29421r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29421r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29421r=float
#29409 [Opn-Ver]: PHP segfaults when domDocument::documentElement return as variable
ID: 29409 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Verified Bug Type: XSLT related Operating System: WinXP w/SP1 PHP Version: 5.0.0 New Comment: Fix is on the way Previous Comments: [2004-07-27 17:07:14] [EMAIL PROTECTED] Description: When you assign a the DomDocument::documentElement to a variable before returning it from a function called by the XSL extension, PHP segfaults. See code for better explanation. - Davey Reproduce code: --- ?php $xsl = XSL ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:php=http://php.net/xsl; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:crtx=http://synapticmedia.net/xmlns/crtx/template; xsl:output method=xml version=1.0 encoding=UTF-8 indent=yes omit-xml-declaration=yes / xsl:strip-space elements=*/ xsl:template match=/ xsl:copy-of select=php:function('returnDomElement') / /xsl:template /xsl:stylesheet XSL; $xml = XML root/root XML; function returnDomElement() { $xml = 'rootchildcdata/child/root'; $dom = domDocument::loadXML($xml); /* change to 'return $dom-documentElement' and it works */ $return = $dom-documentElement; return $return } $xsl = domDocument::loadXML($xsl); $xml = domDocument::loadXML($xml); $xp = new xsltProcessor; $xp-registerPhpFunctions(); $xp-importStylesheet($xsl); echo $xp-transformToXML($xml); ? Expected result: root childcdata/child /root Actual result: -- / in the output and a segfault (details will be added by chregu) -- Edit this bug report at http://bugs.php.net/?id=29409edit=1
#29258 [Fbk-Csd]: conversion between unix timestamp and variant VT_date
ID: 29258 User updated by: arnout at argeweb dot nl Reported By: arnout at argeweb dot nl -Status: Feedback +Status: Closed Bug Type: COM related Operating System: Windows 2003 server,standard PHP Version: 5.0.0 New Comment: Seems to be fixed in CVS. Thanks! Previous Comments: [2004-07-22 14:49:13] [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 Please try a snapshot. [2004-07-19 15:19:43] arnout at argeweb dot nl Description: Converting dates using variant_date_from_timestamp() loses 2 hours. Might be some timezone-like thing but then again: variant_date_to_timestamp() does give a precise translation. I'm running apache 2 with php 5.0.0 RC 2. I tried both CGI and through apache. Reproduce code: --- ? $nu = date('Ymd'); echo now: $nu\n; $timestamp = mktime( 0, 0, 0, date('m'), date('d'), date('Y') ); // Ymd = 2004 07 19 echo now timestamp: $timestamp\n; echo a.k.a. : .$timestamp. = .date('Ymd', $timestamp ).\n; $variant = variant_date_from_timestamp( $timestamp ); //$variant = variant_date_from_timestamp( time() ); echo variant: .$variant.\n; $var_timestamp = variant_date_to_timestamp( $variant ); echo and back again: .$var_timestamp. = .date('Ymd', $var_timestamp ).\n; ? Expected result: now: 20040719 now timestamp: 1090188000 a.k.a. : 1090188000 = 20040719 variant: 19-7-2004 0:00:00 and back again: 1090188000 = 20040719 Actual result: -- now: 20040719 now timestamp: 1090188000 a.k.a. : 1090188000 = 20040719 variant: 18-7-2004 22:00:00 and back again: 1090180800 = 20040718 // 2 hours gone! And even worse: The date changed! -- Edit this bug report at http://bugs.php.net/?id=29258edit=1
#28468 [Com]: Installed PHP5 now all scripts timeout
ID: 28468 Comment by: ydhainaut at ifrance dot com Reported By: tom dot dean at scambs dot gov dot uk Status: Open Bug Type: *General Issues Operating System: Windows XP PHP Version: 5.0.0RC2 New Comment: i had the same problem command line works fine (php.exe phpinfo.php) but no result in IIS try using php_cgi.exe rather than php.exe with IIS Previous Comments: [2004-05-21 11:35:01] tom dot dean at scambs dot gov dot uk Description: Hi there, I have just installed PHP5RC2 on my PC. I am using Win XP and IIS. Having followed all the instructions for a fresh install of PHP5RC2 I attempted to run one of my simpler scripts but I got a timeout. I then attempted to run a script containing just ?php phpinfo();? but this also failed with a timeout. I kept the original PHP folder for PHP4.3.3 and I can swap the folders back and run the scripts succesfully under PHP 4.3.3 (even using the new php.ini file). I am using a fresh php.ini file as included in the PHP5RC2 zip file. I tried to install PHP5RC1 a few weeks ago and had the same problem and found another person on experts-exchange with the same problem but no solution. -- Edit this bug report at http://bugs.php.net/?id=28468edit=1
#28018 [Com]: Missing files
ID: 28018 Comment by: ydhainaut at ifrance dot com Reported By: hendrik dot schmieder at jedox dot com Status: Bogus Bug Type: *General Issues Operating System: Windows PHP Version: 5CVS-2004-04-16 (dev) New Comment: i have the same problem : php.ini (V 5.0) is refering to php_zip.dll but no file in directory ext. so function zip_open doesnt work. i tried copy old version (v 4.36) of php_zip.dll in the directory ext and uncomment the significant line in php.ini but .. uhh.. doesn't work is there actually a solution ? best regards - Yves-Marie Previous Comments: [2004-04-19 09:23:18] hendrik dot schmieder at jedox dot com Hello, is this statement about all files in group a and group b or only about the files in group b ? with best regards Hendrik Schmieder [2004-04-16 15:15:25] [EMAIL PROTECTED] Those extensions don't exist anymore. [2004-04-16 03:59:57] hendrik dot schmieder at jedox dot com Description: Hello, i have downloaded the Snapshot from Apr 16, 2004 06:30 GMT. But there are some files missing in this snapshot: Group a: gds32.dll iconv.dll libmcrypt.dll php_db.dll php_hyperwave.dll php_iisfunc.dll php_interbase.dll php_printer.dll Group b: php_crack.dll php_db.dll php_domxml.dll php_pspell.dll php_w32api.dll php_yaz.dll php_zip.dll There are no php5 versions for the files in group b. with best regards Hendrik Schmieder -- Edit this bug report at http://bugs.php.net/?id=28018edit=1
#29402 [Ana-Fbk]: Oracle 9i lib path issue in configure script
ID: 29402 Updated by: [EMAIL PROTECTED] Reported By: brian dot bush at alltel dot com -Status: Analyzed +Status: Feedback Bug Type: *Configuration Issues Operating System: SunOS 5.8 PHP Version: 5.0.0 Assigned To: tony2001 New Comment: Could you plz try this patch: http://tony2004.phpclub.net/dev/tmp/patch_29402.diff and tell me does it work for you? Run ./buildconf --force ./configure after applying it. Previous Comments: [2004-07-27 04:38:40] brian dot bush at alltel dot com Description: We were getting an error about the readline library not being found during the configure process. We have just upgraded to Oracle 9.2.0 which has moved its 32-bit libraries to $ORACLE_HOME/lib32 from $ORACLE_HOME/lib. config.log gave more clues that this was the problem. We fixed it by changing the $OCI8_DIR/lib and $ORACLE_DIR/lib to $OCI8/lib32 and $ORACLE_DIR/lib32 respectively in the configure script. I think the configure script should have an option added that will specify to use 64 or 32 bit Oracle libraries. -- Edit this bug report at http://bugs.php.net/?id=29402edit=1
#29408 [Opn-Bgs]: Binding certain types of variables clears all bindings
ID: 29408 User updated by: mynameisfiber at gmail dot com Reported By: mynameisfiber at gmail dot com -Status: Open +Status: Bogus Bug Type: MSSQL related Operating System: linux 2.6.5-gentoo-r1 PHP Version: 4.3.7 New Comment: thanks alot! that fixed everything right up proving it wasn't infact a bug. i'm putting a note in the mssql_bind page to clear this up for others. thanks again :-) Previous Comments: [2004-07-27 16:14:20] patrick dot schutte at gmx dot de Hi, try mssql_bind($query, @orgId, $org, SQLINT2,FALSE,FALSE); mssql_bind($query, @loginName, $user, SQLVARCHAR,FALSE,FALSE,n); n=len of varchar in stroed Procedure Works fine with PHP5/freetds0.62.3/MSSQL2000/tdsversion=7.0 [2004-07-27 15:57:47] mynameisfiber at gmail dot com Description: i am trying to do mssql (through freetds 0.62.3) with stored proc's however if i try sending in a parameter of SQLVARCHAR, SQLCHAR, SQLTEXT, none of the parameters go through... in the following example, i get an error if @loginName is sent as a SQLVARCHAR (and uppon sniffing the actual request i see that NO parameters are sent in this case) however if i change it to SQLINT2 everything works fine (except @loginName goes in as '0' which isn't productive). the only possible thing i can think of to explain this is that the message is too long and becomes truncated? or maybe this version of PHP hasn't updated it's mssql connection module? does anyone have any ideas or even any solutions? thanks alot! :-) Reproduce code: --- (after connecting to the database) $query = mssql_init('adSetUserByLogin', $dbcnx); $org = 360; $user = a; mssql_bind($query, @orgId, $org, SQLINT2); mssql_bind($query, @loginName, $user, SQLVARCHAR); $res = mssql_execute($query); Expected result: i would have expected the stored procedure to go on just fine so that it's output could be later retrieved Actual result: -- Warning: mssql_execute(): message: Procedure 'adSetUserByLogin' expects parameter '@orgId', which was not supplied. (severity 16) in /var/www/localhost/htdocs/aosr/test.php on line 24 Warning: mssql_execute(): stored procedure execution failed in /var/www/localhost/htdocs/aosr/test.php on line 24 Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in /var/www/localhost/htdocs/aosr/test.php on line 27 -- Edit this bug report at http://bugs.php.net/?id=29408edit=1
#29423 [NEW]: reference count gets wrong when return-reference-calling a normal function
From: stefan at hotpaenz dot de Operating system: Linux 2.6.3 PHP version: 5CVS-2004-07-28 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: reference count gets wrong when return-reference-calling a normal function Description: See the code below: An object of ClassA is passed to FuncB, which calls FuncA with the return-by-reference operator. FuncA is not designed to return by reference. The reference count seems to get wrong by doing that so the object is discarded when FuncB returns. Reproduce code: --- ?php class ClassA { } function FuncA($obj) { return $obj; } function FuncB($obj) { $dummy = FuncA($obj); } $obj = new ClassA(); FuncB($obj); $str='This is a string' var_dump($obj); Expected result: object(ClassA)#1 (0) { } Actual result: -- string(16) This is a string -- Edit bug report at http://bugs.php.net/?id=29423edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29423r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29423r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29423r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29423r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29423r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29423r=needscript Try newer version: http://bugs.php.net/fix.php?id=29423r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29423r=support Expected behavior: http://bugs.php.net/fix.php?id=29423r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29423r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29423r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29423r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29423r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29423r=dst IIS Stability: http://bugs.php.net/fix.php?id=29423r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29423r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29423r=float
#29424 [NEW]: Width and Height inverted for JPEG2000 files
From: bertrand dot bourgier at free dot fr Operating system: Windows 2000 Pro PHP version: 5.0.0 PHP Bug Type: GetImageSize related Bug description: Width and Height inverted for JPEG2000 files Description: Take a JPEG2000 file (indifferently JPC or JP2 format). JPC format sample file: http://www.crc.ricoh.com/~gormish/jpeg2000conformance/J2KP4files/codestreams_profile0/p0_04.j2k JP2 format sample file: http://www.crc.ricoh.com/~gormish/jpeg2000conformance/J2KP4files/testfiles_jp2/file1.jp2 I downloaded those 2 files so that I can do my tests locally and avoid any network related issue. Then, when I run 'getimagesize' on those JPEG2000 files, I get a result, but the Width and Height information are inverted. Reproduce code: --- Test 1: ?php list($width, $height, $type, $attr) = getimagesize(p0_04.j2k); echo Width: $widthBRHeight: $height; ? Test 2: ?php list($width, $height, $type, $attr) = getimagesize(file1.jp2); echo Width: $widthBRHeight: $height; ? Expected result: Test 1: Width: 640 Height: 480 Test 2: Width: 768 Height: 512 Actual result: -- Test 1: Width: 480 Height: 640 Test 2: Width: 512 Height: 768 As you can see, Width and Height are inverted. -- Edit bug report at http://bugs.php.net/?id=29424edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29424r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29424r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29424r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29424r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29424r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29424r=needscript Try newer version: http://bugs.php.net/fix.php?id=29424r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29424r=support Expected behavior: http://bugs.php.net/fix.php?id=29424r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29424r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29424r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29424r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29424r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29424r=dst IIS Stability: http://bugs.php.net/fix.php?id=29424r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29424r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29424r=float
#29279 [Opn-Fbk]: echo 0; terminates output
ID: 29279 Updated by: [EMAIL PROTECTED] Reported By: milky at users dot sf dot net -Status: Open +Status: Feedback Bug Type: Strings related Operating System: Linux, glibc2.3 PHP Version: 5.0.0 New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. Any log entries? Any reproduce script? Previous Comments: [2004-07-20 13:47:53] milky at users dot sf dot net Description: (Hard to reproduce.) In one of my scripts any variant of outputting a variable set to (string) 0 ended the output. Appearantly happened for var_dump(), print_r(), echo() and print(). Initially it appeared to be a pcre problem: $_SERVER[QUERY_STRING] = q=examples=0s=1s=7; preg_match_all('/s=(\d+)/', $_SERVER[QUERY_STRING], $uu); echo implode( , $uu[1]); But it probably isn't. Appears that earlier parts of any of the other included scripts changed interpreter behaviour and lead to the strange effect. It seems not configuration-related or to be a general bug, as the same ?php echo 0;' ? gives no problem in short scripts. Only fails in CGI environment, doesn't happen on cmdline. same effect: - echo 0; - echo '0'; OTH this doesn't output anything strange (binary): - echo 1; Not sure, if this is a bug at all. The 0 breaks also with 5rc2, 4.3.x and down to 4.1.2 (all in -cgi/fcgi incarnation) But btw: echo \000; echo +++; echo 0; echo ...; will correctly return the [EMAIL PROTECTED] but nothing after that. related to #16388 ? Reproduce code: --- ?php //... #... # include(htm/head); # contains no php code echo 0; # ends output // more code follows #... (all other code and include()s being commented out to reproduce) ? -- Edit this bug report at http://bugs.php.net/?id=29279edit=1
#29271 [Opn-Bgs]: behaviour of $string['text'] = 'new string';
ID: 29271 Updated by: [EMAIL PROTECTED] Reported By: nospam0 at malkusch dot de -Status: Open +Status: Bogus Bug Type: Strings related Operating System: * PHP Version: 5.0.0 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php It's expected behaviour: 'index' is casted to it's integer value (0), that's why you get this result. Previous Comments: [2004-07-20 01:54:22] nospam0 at malkusch dot de Description: $string = 'a bla'; $string['index'] = 'b blub'; does the same work as $string = 'a bla'; $string{(int)'index'} = 'b blub'{0}; without any notic of undefined index or too long replacing string. But it should throw any notice, because one could expect that the code should produce a new Array('index' = 'b blubb'). Reproduce code: --- $string = 'a bla'; $string['index'] = 'b blub'; var_dump($string); Expected result: Either notices for use of deprecated [], undefined offset 'index' and too long replace char (and of course the actual result) or 'a bla' is deleted and $string has array('index' = 'b blubb') as value. Actual result: -- string(5) b bla -- Edit this bug report at http://bugs.php.net/?id=29271edit=1
#29271 [Bgs]: behaviour of $string['text'] = 'new string';
ID: 29271 User updated by: nospam0 at malkusch dot de Reported By: nospam0 at malkusch dot de Status: Bogus Bug Type: Strings related Operating System: * PHP Version: 5.0.0 New Comment: It's expected behaviour: 'index' is casted to it's integer value (0), that's why you get this result. But as I use $string[] and not $string{} it's undefined wether it should be a new array or a string. So why doesn't PHP throw an error? Previous Comments: [2004-07-28 12:39:59] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php It's expected behaviour: 'index' is casted to it's integer value (0), that's why you get this result. [2004-07-20 01:54:22] nospam0 at malkusch dot de Description: $string = 'a bla'; $string['index'] = 'b blub'; does the same work as $string = 'a bla'; $string{(int)'index'} = 'b blub'{0}; without any notic of undefined index or too long replacing string. But it should throw any notice, because one could expect that the code should produce a new Array('index' = 'b blubb'). Reproduce code: --- $string = 'a bla'; $string['index'] = 'b blub'; var_dump($string); Expected result: Either notices for use of deprecated [], undefined offset 'index' and too long replace char (and of course the actual result) or 'a bla' is deleted and $string has array('index' = 'b blubb') as value. Actual result: -- string(5) b bla -- Edit this bug report at http://bugs.php.net/?id=29271edit=1
#29426 [NEW]: Incomplete/inconsistent functionality
From: php at peterrobins dot co dot uk Operating system: Linux 2.4 PHP version: 5.0.0 PHP Bug Type: SimpleXML related Bug description: Incomplete/inconsistent functionality Description: According to the manual page, you can add a node with SimpleXML, but this does not seem to work, either as $xml-movie[0]-characters[0]-character[0]-age = '21'; nor as $xml-movie[0]-rating[2] = 'not bad'; Deletion works on attributes unset($xml-movie[0]-rating[1]['type']); but at node level, deletes all unset($xml-movie[0]-rating); This is inconsistent with reading where $xml-movie[0]-rating fetches the first node only. unset($xml-movie-rating); deletes all ratings for the 1st movie only. It does not appear possible to delete just 1 node unset($xml-movie[0]-rating[1]); Because objs are now refs not copies, can do this $rat = $xml-movie[0]-rating[0]; $rat['name'] = 'judge'; but not this $rat = 'new content'; nor this $rat-child[0] = 'new rating'; and if I try and do $rat-child = 'new rating'; I get 'Attempt to assign property of non-object' -- Edit bug report at http://bugs.php.net/?id=29426edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29426r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29426r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29426r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29426r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29426r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29426r=needscript Try newer version: http://bugs.php.net/fix.php?id=29426r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29426r=support Expected behavior: http://bugs.php.net/fix.php?id=29426r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29426r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29426r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29426r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29426r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29426r=dst IIS Stability: http://bugs.php.net/fix.php?id=29426r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29426r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29426r=float
#29271 [Bgs]: behaviour of $string['text'] = 'new string';
ID: 29271 Updated by: [EMAIL PROTECTED] Reported By: nospam0 at malkusch dot de Status: Bogus Bug Type: Strings related Operating System: * PHP Version: 5.0.0 New Comment: $string already IS a string and you still can use array-brackets to access a particular symbol, so it won't become an array. Previous Comments: [2004-07-28 13:15:34] nospam0 at malkusch dot de It's expected behaviour: 'index' is casted to it's integer value (0), that's why you get this result. But as I use $string[] and not $string{} it's undefined wether it should be a new array or a string. So why doesn't PHP throw an error? [2004-07-28 12:39:59] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php It's expected behaviour: 'index' is casted to it's integer value (0), that's why you get this result. [2004-07-20 01:54:22] nospam0 at malkusch dot de Description: $string = 'a bla'; $string['index'] = 'b blub'; does the same work as $string = 'a bla'; $string{(int)'index'} = 'b blub'{0}; without any notic of undefined index or too long replacing string. But it should throw any notice, because one could expect that the code should produce a new Array('index' = 'b blubb'). Reproduce code: --- $string = 'a bla'; $string['index'] = 'b blub'; var_dump($string); Expected result: Either notices for use of deprecated [], undefined offset 'index' and too long replace char (and of course the actual result) or 'a bla' is deleted and $string has array('index' = 'b blubb') as value. Actual result: -- string(5) b bla -- Edit this bug report at http://bugs.php.net/?id=29271edit=1
#29427 [NEW]: preg_match offset not equivalent to substr
From: x-g at monkeyblah dot com Operating system: Windows XP PHP version: 4.3.8 PHP Bug Type: *Regular Expressions Bug description: preg_match offset not equivalent to substr Description: According to the manual, passing an offset to preg_match is equivalent to passing substr($string, $offset) to the function. This is not the case, however; regular expressions that match on beginning-of-string will not match if an offset is specified, but work fine if substr() is used in a supposedly equivalent manner. Either this is a problem with regular expressions giving unexpected behaviour, or perhaps the manual just need to be changed to reflect the difference. Reproduce code: --- $string = abc def; if (preg_match(/^[a-zA-Z]+/, $string, $matches, 0, 4)) echo Matches\n; else echo Does not match\n; if (preg_match(/^[a-zA-Z]+/, substr($string, 4), $matches, 0)) echo Matches\n; else echo Does not match\n; Expected result: Matches Matches Actual result: -- Does not match Matches -- Edit bug report at http://bugs.php.net/?id=29427edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29427r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29427r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29427r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29427r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29427r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29427r=needscript Try newer version: http://bugs.php.net/fix.php?id=29427r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29427r=support Expected behavior: http://bugs.php.net/fix.php?id=29427r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29427r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29427r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29427r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29427r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29427r=dst IIS Stability: http://bugs.php.net/fix.php?id=29427r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29427r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29427r=float
#29271 [Bgs]: behaviour of $string['text'] = 'new string';
ID: 29271 User updated by: nospam0 at malkusch dot de Reported By: nospam0 at malkusch dot de Status: Bogus Bug Type: Strings related Operating System: * PHP Version: 5.0.0 New Comment: $string already IS a string and you still can use array-brackets to access a particular symbol So PHP will never throw an error, even [] on strings is deprecated since PHP4? Previous Comments: [2004-07-28 13:25:55] [EMAIL PROTECTED] $string already IS a string and you still can use array-brackets to access a particular symbol, so it won't become an array. [2004-07-28 13:15:34] nospam0 at malkusch dot de It's expected behaviour: 'index' is casted to it's integer value (0), that's why you get this result. But as I use $string[] and not $string{} it's undefined wether it should be a new array or a string. So why doesn't PHP throw an error? [2004-07-28 12:39:59] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php It's expected behaviour: 'index' is casted to it's integer value (0), that's why you get this result. [2004-07-20 01:54:22] nospam0 at malkusch dot de Description: $string = 'a bla'; $string['index'] = 'b blub'; does the same work as $string = 'a bla'; $string{(int)'index'} = 'b blub'{0}; without any notic of undefined index or too long replacing string. But it should throw any notice, because one could expect that the code should produce a new Array('index' = 'b blubb'). Reproduce code: --- $string = 'a bla'; $string['index'] = 'b blub'; var_dump($string); Expected result: Either notices for use of deprecated [], undefined offset 'index' and too long replace char (and of course the actual result) or 'a bla' is deleted and $string has array('index' = 'b blubb') as value. Actual result: -- string(5) b bla -- Edit this bug report at http://bugs.php.net/?id=29271edit=1
#12715 [Com]: IE download file twice when serve from DB.
ID: 12715 Comment by: cgursan at hotmail dot com Reported By: miki at canaan dot co dot il Status: Bogus Bug Type: Output Control Operating System: Linux PHP Version: 4.0.6 New Comment: When you drop the content disposition it prompts for download of the php file. And also Opera works fine with it. But in IE I can't find the solution does anyone know? Previous Comments: [2001-08-15 04:07:42] miki at canaan dot co dot il found a way around, but I had to drop: header(Content-Disposition: filename=$file_name); when ever Content-Disposition found in the code IE load the page twice. Or no one know the answer ( with Content-Disposition ) or its a bug. Any way I think the solution need to apear on the manual to avoid lots of site that double the dl time. [2001-08-13 10:23:41] [EMAIL PROTECTED] Not a bug. Ask further support questions on the appropriate mailing list: http://www.php.net/support.php [2001-08-13 09:53:08] miki at canaan dot co dot il When I download file stored on DB using IE, Its take me double the time then Netscape takes. I discovered that IE download the file twice. one when the headers are read and latter when the file is requested again. here is the code: ? $query = select * from files where issue_id='$id'; $result = mysql_query ($query) or die (Invalid query); $data = @MYSQL_RESULT($result,0, file_data); $type = @MYSQL_RESULT($result,0, file_type); $file_name = @MYSQL_RESULT($result,0, file_name); $file_size = @MYSQL_RESULT($result,0, file_size); // # To force save file //header(Content-disposition: attachment; filename=\$file_name\); Header(Content-type: $type); header(Content-Length: $file_size); header(Content-Disposition: filename=$file_name); echo $data; ? -- Edit this bug report at http://bugs.php.net/?id=12715edit=1
#29271 [Com]: behaviour of $string['text'] = 'new string';
ID: 29271 Comment by: m dot ford at leedsmet dot ac dot uk Reported By: nospam0 at malkusch dot de Status: Bogus Bug Type: Strings related Operating System: * PHP Version: 5.0.0 New Comment: Why should it? It's only deprecated, not obsolete -- and there's not even a hint of a date being scheduled for its withdrawal. (Deprecated meaning, roughly, not encouraged and may be withdrawn one day, maybe, if the php gurus ever get around to it.) As withdrawal of this feature hasn't been announced yet, I think you can take it it'll probably be around at least for the lifetime of PHP 5 -- but the use of {} instead of [] is strongly encouraged. Cheers! Mike Previous Comments: [2004-07-28 13:49:59] nospam0 at malkusch dot de $string already IS a string and you still can use array-brackets to access a particular symbol So PHP will never throw an error, even [] on strings is deprecated since PHP4? [2004-07-28 13:25:55] [EMAIL PROTECTED] $string already IS a string and you still can use array-brackets to access a particular symbol, so it won't become an array. [2004-07-28 13:15:34] nospam0 at malkusch dot de It's expected behaviour: 'index' is casted to it's integer value (0), that's why you get this result. But as I use $string[] and not $string{} it's undefined wether it should be a new array or a string. So why doesn't PHP throw an error? [2004-07-28 12:39:59] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php It's expected behaviour: 'index' is casted to it's integer value (0), that's why you get this result. [2004-07-20 01:54:22] nospam0 at malkusch dot de Description: $string = 'a bla'; $string['index'] = 'b blub'; does the same work as $string = 'a bla'; $string{(int)'index'} = 'b blub'{0}; without any notic of undefined index or too long replacing string. But it should throw any notice, because one could expect that the code should produce a new Array('index' = 'b blubb'). Reproduce code: --- $string = 'a bla'; $string['index'] = 'b blub'; var_dump($string); Expected result: Either notices for use of deprecated [], undefined offset 'index' and too long replace char (and of course the actual result) or 'a bla' is deleted and $string has array('index' = 'b blubb') as value. Actual result: -- string(5) b bla -- Edit this bug report at http://bugs.php.net/?id=29271edit=1
#29409 [Ver-Csd]: PHP segfaults when domDocument::documentElement return as variable
ID: 29409 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Verified +Status: Closed Bug Type: XSLT related Operating System: WinXP w/SP1 PHP Version: 5.0.0 New Comment: 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. Previous Comments: [2004-07-28 09:12:38] [EMAIL PROTECTED] Fix is on the way [2004-07-27 17:07:14] [EMAIL PROTECTED] Description: When you assign a the DomDocument::documentElement to a variable before returning it from a function called by the XSL extension, PHP segfaults. See code for better explanation. - Davey Reproduce code: --- ?php $xsl = XSL ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:php=http://php.net/xsl; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:crtx=http://synapticmedia.net/xmlns/crtx/template; xsl:output method=xml version=1.0 encoding=UTF-8 indent=yes omit-xml-declaration=yes / xsl:strip-space elements=*/ xsl:template match=/ xsl:copy-of select=php:function('returnDomElement') / /xsl:template /xsl:stylesheet XSL; $xml = XML root/root XML; function returnDomElement() { $xml = 'rootchildcdata/child/root'; $dom = domDocument::loadXML($xml); /* change to 'return $dom-documentElement' and it works */ $return = $dom-documentElement; return $return } $xsl = domDocument::loadXML($xsl); $xml = domDocument::loadXML($xml); $xp = new xsltProcessor; $xp-registerPhpFunctions(); $xp-importStylesheet($xsl); echo $xp-transformToXML($xml); ? Expected result: root childcdata/child /root Actual result: -- / in the output and a segfault (details will be added by chregu) -- Edit this bug report at http://bugs.php.net/?id=29409edit=1
#29429 [NEW]: unset( $GLOBALS['foo']); unset only global variable, not variables that REFERED
From: kingoleg at mail dot ru Operating system: All PHP version: 4.3.8 PHP Bug Type: Scripting Engine problem Bug description: unset( $GLOBALS['foo']); unset only global variable, not variables that REFERED Description: unset( $GLOBALS['foo']); unset only global variable, not variables that REFERED to global variable How we can unset global variable with all referenced variable using unset() function? Do we must user assign to null? Reproduce code: --- ?php function a( $foo) { $foo = 'ok'; b( $foo); var_dump( $foo); } function b( $foo) { $foo = 'not ok'; unset( $GLOBALS['foo']); } global $foo; $foo = 'global'; a($foo); var_dump( $foo); ? Expected result: NULL NULL Actual result: -- string(6) not ok NULL -- Edit bug report at http://bugs.php.net/?id=29429edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29429r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29429r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29429r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29429r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29429r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29429r=needscript Try newer version: http://bugs.php.net/fix.php?id=29429r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29429r=support Expected behavior: http://bugs.php.net/fix.php?id=29429r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29429r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29429r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29429r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29429r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29429r=dst IIS Stability: http://bugs.php.net/fix.php?id=29429r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29429r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29429r=float
#26737 [Com]: unexpected __sleep() serialization behavior
ID: 26737 Comment by: albin at kth dot se Reported By: rob dot wills at gmail dot com Status: Critical Bug Type: Zend Engine 2 problem Operating System: * PHP Version: 5.0.0 New Comment: What is even the point of __sleep being supposed to return an array of the properties that should be serialized? I think it would be much easier just to manually unset those variables that you DON'T want to serialize, and letting PHP serialize everything else. I thought __sleep was supposed just to be a way of closing database-connections etc, but due to the current implementation that seems almost impossible. Previous Comments: [2004-07-18 13:44:42] [EMAIL PROTECTED] version info change [2004-07-15 12:44:57] [EMAIL PROTECTED] Verified. The workaround still works too. [2004-07-15 04:14:39] rob dot wills at gmail dot com PHP5.0.0 still exhibits this behaviour. Is there anything else I can provide to help with this issue/bug? Thanks, Rob [2004-07-13 00:10:35] trevorrowe at gmail dot com Last posting was made on feb 26, its now jul 12. Anyone have any more current news on this bug? The bug seems to still persist in php5 rc3. mastabog's suggestion of padding the variable name with nulls for private, padding the * for protected and nothing for public works, but seems like an ugly hack. My biggest fear is when the bug is patched, my variable names will be double padded and things will start to break. [2004-02-26 21:24:38] mastabog at hotmail dot com Complete info on this bug: To quote rob at cue dot cc, you don't have to enclose only the class name with null characters. As far as I've seen you have to enclose with null chars ALL Php5 serialization identifiers of class properties types, the ones I figured out to be for now (let x be the property name): - class name if x is 'private' = \0 . __CLASS__ . \0x - * if x is 'protected' = \0*\0x - nothing if x is 'public' = x Here's what I mean: ?php class aTest { public $a = 'one'; protected $b = 'two'; private $c = 'three'; private $d = 'something you dont wanna save'; function __sleep() { return array(a, \0*\0b, \0aTest\0c); // or // return array(a, // \0*\0b, // \0 . __CLASS__ . \0c); } } ? Anything else in the return array of __sleep() and the property will come up empty after unserialization ... not nice. My hope is that this is a bug, cus forming those strings with null chars is just, well, ugly :) 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/26737 -- Edit this bug report at http://bugs.php.net/?id=26737edit=1
#29399 [Fbk-Opn]: Unserialize() really doesn't like some input strings...
ID: 29399 User updated by: AxelLuttgens at swing dot be Reported By: AxelLuttgens at swing dot be -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Mac OS 10.3.4 PHP Version: 4.3.8 New Comment: First of all, sorry for the inaccuracy of my previous information. I forgot to use the compiled CLI, so that I used the stock install one (which I leave in place for maintaining compatibility with Apple's upgrades, if any). In a word, both my compiled CLI and apache module fail in the same way. Fortunately, in a sense ;-) Same crash in var_unserializer.c at line 320. So, I reviewed what I wrote at the time of another report (Bug #26078), which had been classified as Won't Fix. Since then, some slight differences have been introduced in the code of var_unserializer.re, so that the potential problems I noticed at that time may now have turned into real problems. So, I just tried this change in the code of var_unserializer.c: 309 if(yych = '}') goto yy13; 310 /* if(yych = '\277') goto yy15; */ 311 if(yych = 255) goto yy15; 312 goto yy2; Of course, the compile warning now goes as comparison always true. All tests (make test) concerning serialize/unserialize pass. (they did before too, so that I didn't notice anything at that level) The resulting CLI and module now both accept something like this: ?php for ($i = 0; $i 256; $i++) { $str = chr($i); unserialize($str); } ? without crashing. And I didn't encounter crashes with my real work php codings any more. Of course, these are not extensive testings. But there is good hope to be on the right way. HTH, Axel Previous Comments: [2004-07-27 18:48:49] [EMAIL PROTECTED] Please leave at feedback until more information is available. [2004-07-27 17:09:39] AxelLuttgens at swing dot be Thanks for the reply! I downloaded the cvs, and noticed that var_unserializer.c has not been modified since the version I have compiled (files 100% identical). Do you really think the problem could be solved with the cvs? I ask because I'm really busy at the moment, and possibly a bit lazy too... :-) But your reply of course made me think a bit further. So, executing the short sample file through the CLI doesn't trigger the exception. I also performed some other quick tests, that could lead to the conclusion that my compile has some flaws :-( I'll investigate further, and hope to be able to keep you informed as soon as possible. In the meantime, sorry for what could prove to be just noise, Axel [2004-07-27 02:10:56] [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 I've tried the sample script and I got the expected FALSE output as well as E_NOTICE saying: unserialize(): Error at offset 0 of 1 bytes [2004-07-26 23:42:50] AxelLuttgens at swing dot be Description: It took me a long time to locate the source of seemingly random crashes I was experiencing these days. But I now believe to have found a very clean example of crashing code on my system. Of course, my real code handles more interesting strings than the one used in the example ;-) This could help to explain some other bug reports related to unserialize(), but that remained rather elusive or without a clear conclusion. Could also be related to another note of mine (Bug #26078). HTH, Axel Reproduce code: --- ?php $str = chr(236); print_r(unserialize($str)); ? Expected result: According to the docs, I would have expected unserialize() to return FALSE, as the input string clearly doesn't result from a prior serialize(). Actual result: -- Here follows an excerpt of the resulting crash log: Date/Time: 2004-07-26 17:56:11 +0200 OS Version: 10.3.4 (Build 7H63) Report Version: 2 Command: httpd Path:/usr/sbin/httpd PID: 1237 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0002 Thread 0 Crashed: 0 libphp4.so 0x020eccc8 php_var_unserialize + 0x180 (var_unserializer.c:320) 1 libphp4.so 0x020e5418 zif_unserialize + 0xa4 (var.c:681) 2 libphp4.so 0x0214bc68 execute + 0x1b58 (zend_execute.c:1635) 3 libphp4.so 0x0213db34
#28384 [Com]: Missing support for BOTH dbm and db4 on FreeBSD machines.
ID: 28384 Comment by: dada at bbs dot giga dot net dot tw Reported By: achowe at snert dot com Status: Closed Bug Type: DBM/DBA related Operating System: FreeBSD PHP Version: 4.3.5 Assigned To: helly New Comment: How to enable dba with 'dbm' handler support? The FreeBSD ports seems disable 'dbm' handler, and I don't know how to enable it. Previous Comments: [2004-05-13 19:30:16] [EMAIL PROTECTED] I do not see the point here. You can combine dbm handler with db2/db3/db4/gdbm/ndbm handler. It is just a question in which library the dbm functions live. [2004-05-13 12:33:30] achowe at snert dot com Description: FreeBSD builds libc with Berkeley DB 1.85 support included. This is a known boneheaded issue on their part. Apart from that, ALL the system databases, in particular Sendmail databases, are built by default using BDB 1.85. PHP4 on FreeBSD appears to have been ported to use DB4, but this means its not possible to access and modify /etc/mail/{access, aliases, mailertable, virtusertable} etc. built using the older BDB. Therefore it becomes necessary to support BOTH file types through handlers dbm and db4. This is true for FreeBSD 4.x and I think FreeBSD 5.x -- Edit this bug report at http://bugs.php.net/?id=28384edit=1
#29290 [Csd]: LD ORACLE OCI
ID: 29290 Updated by: [EMAIL PROTECTED] Reported By: jketabchy at swd-ag dot de Status: Closed Bug Type: *Compile Issues Operating System: AIX 5.2 PHP Version: 4.3.8 New Comment: If it's not too difficult for you, could you please test this patch: http://tony2004.phpclub.net/dev/tmp/m4.4-5.diff ? It should fix the problem with using lib directory instead of lib32 at 64-bit platforms. Previous Comments: [2004-07-23 11:12:57] jketabchy at swd-ag dot de Thanks for Help. I exported the LD_LIBRARY_PATH for Oracle 9i in ORACLE_HOME/lib32 and edited the Makefile to change the PATHS to lib32. the Same procedure for Apache src/modules/php4/MakeFile and it works find. Now make works fine. ./configure --with-oci8 --with-apache=../apache-1.3.31 okay vi Makefile and change LD_LIBRARY_PATH=$ORACLE_HOME/lib to lib32 make make install to Apache: cd .. cd apache-1.3.31/src/modules/php4 same changes to Makefile cd apache-1.3.31 ./configure --prefix=/usr/local/apache --enable-module=ssl --activate-module=src/modules/php4/libphp4.a make make install cp ../php-4.3.8/php.ini-dist /usr/local/lib/php.ini and done. Thanks Regards Jahan Ketabchy [2004-07-21 14:16:25] jketabchy at swd-ag dot de i still have problem to compile PHP on IAX 5.2 [2004-07-21 10:41:24] jketabchy at swd-ag dot de okay: export CFLAGS=$CFLAGS -m32 ./configure --with-oci8 --with-pache=/usr/local/apache_1.3.31 loading cache ./config.cache checking host system type... powerpc-ibm-aix5.2.0.0 checking for gcc... (cached) gcc checking whether the C compiler (gcc -m32 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. Result = compiler cannot create executables. is it means, i have to install another GCC Compiler??? Reagrds [2004-07-21 10:35:34] [EMAIL PROTECTED] just do `export CFLAGS=$CFLAGS -m32` before ./configure make. [2004-07-21 10:29:07] jketabchy at swd-ag dot de in which file do i have to add CFLAGS=-m32 Regards Ketabchy 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/29290 -- Edit this bug report at http://bugs.php.net/?id=29290edit=1
#22318 [Com]: /usr/libexec/elf/ld: cannot find -ldl
ID: 22318 Comment by: a dot forghieri at emmegi dot it Reported By: lbv at ntmk dot ru Status: No Feedback Bug Type: Compile Failure Operating System: FreeBSD 4.7 with linux emu PHP Version: 4.3.0 New Comment: FreeBSD 5.1-RELEASE PHP 4.3.8 (cli) csdk 2.81 Whenever ad add --with-informix=/usr/local/informix to the configuration arguments, and a make , I get : /usr/bin/ld: cannot find -ldl Previous Comments: [2004-06-11 21:45:57] holger42 at gmx dot de For me it fails to! 4.8-RELEASE, php-4.3.6 csdk 2.81.UC1 /bin/sh /usr/ports/www/mod_php4/work/php-4.3.6/libtool --silent --preserve-dup-deps --mode=link gcc -export-dynamic -g -O2 -L/opt/informix/lib -L/opt/informix/lib/esql -L/usr/ports/www/mod_php4/work/php-4.3.6/ext/informix -R /opt/informix/lib -R /opt/informix/lib/esql -R /usr/ports/www/mod_php4/work/php-4.3.6/ext/informix ext/ctype/ctype.lo ext/informix/ifx.lo ext/mysql/php_mysql.lo ext/mysql/libmysql/libmysql.lo ext/mysql/libmysql/errmsg.lo ext/mysql/libmysql/net.lo ext/mysql/libmysql/violite.lo ext/mysql/libmysql/password.lo ext/mysql/libmysql/my_init.lo ext/mysql/libmysql/my_lib.lo ext/mysql/libmysql/my_static.lo ext/mysql/libmysql/my_malloc.lo ext/mysql/libmysql/my_realloc.lo ext/mysql/libmysql/my_create.lo ext/mysql/libmysql/my_delete.lo ext/mysql/libmysql/my_tempnam.lo ext/mysql/libmysql/my_open.lo ext/mysql/libmysql/mf_casecnv.lo ext/mysql/libmysql/my_read.lo ext/mysql/libmysql/my_write.lo ext/mysql/libmysql/errors.lo ext/mysql/libmysql/my_error.lo ext/mysql/libmysql/my_getwd.lo ext/mysql/libmysql/my_div.lo ext/mysql/libmysql/mf_pack.lo ext/mysql/libmysql/my_messnc.lo ext/mysql/libmysql/mf_dirname.lo ext/mysql/libmysql/mf_fn_ext.lo ext/mysql/libmysql/mf_wcomp.lo ext/mysql/libmysql/typelib.lo ext/mysql/libmysql/safemalloc.lo ext/mysql/libmysql/my_alloc.lo ext/mysql/libmysql/mf_format.lo ext/mysql/libmysql/mf_path.lo ext/mysql/libmysql/mf_unixpath.lo ext/mysql/libmysql/my_fopen.lo ext/mysql/libmysql/mf_loadpath.lo ext/mysql/libmysql/my_pthread.lo ext/mysql/libmysql/my_thr_init.lo ext/mysql/libmysql/thr_mutex.lo ext/mysql/libmysql/mulalloc.lo ext/mysql/libmysql/string.lo ext/mysql/libmysql/default.lo ext/mysql/libmysql/my_compress.lo ext/mysql/libmysql/array.lo ext/mysql/libmysql/my_once.lo ext/mysql/libmysql/list.lo ext/mysql/libmysql/my_net.lo ext/mysql/libmysql/dbug.lo ext/mysql/libmysql/strmov.lo ext/mysql/libmysql/strxmov.lo ext/mysql/libmysql/strnmov.lo ext/mysql/libmysql/strmake.lo ext/mysql/libmysql/strend.lo ext/mysql/libmysql/strfill.lo ext/mysql/libmysql/is_prefix.lo ext/mysql/libmysql/int2str.lo ext/mysql/libmysql/str2int.lo ext/mysql/libmysql/strinstr.lo ext/mysql/libmysql/strcont.lo ext/mysql/libmysql/strcend.lo ext/mysql/libmysql/bchange.lo ext/mysql/libmysql/bmove.lo ext/mysql/libmysql/bmove_upp.lo ext/mysql/libmysql/longlong2str.lo ext/mysql/libmysql/strtoull.lo ext/mysql/libmysql/strtoll.lo ext/mysql/libmysql/charset.lo ext/mysql/libmysql/ctype.lo ext/overload/overload.lo ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo ext/posix/posix.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo
#29431 [NEW]: segfault using stream_* with UDP
From: [EMAIL PROTECTED] Operating system: all PHP version: 5CVS-2004-07-28 (dev) PHP Bug Type: Network related Bug description: segfault using stream_* with UDP Description: PHP 5 HEAD segfaults with the given code. Below are URLs with valgrind/gdb output. Reproduce code: --- ? $socket = stream_socket_server(udp://127.0.0.1:13, $errno, $errstr, STREAM_SERVER_BIND); if (!$socket) die($errstr ($errno)); do { $pkt = stream_socket_recvfrom($socket, 1, 0, $peer); stream_socket_sendto($socket, date(D M j H:i:s Y\r\n), 0, $peer); } while ($pkt !== false); ? Actual result: -- http://testes.aborla.net/gdb.txt http://testes.aborla.net/out.pid7736 -- Edit bug report at http://bugs.php.net/?id=29431edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29431r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29431r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29431r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29431r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29431r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29431r=needscript Try newer version: http://bugs.php.net/fix.php?id=29431r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29431r=support Expected behavior: http://bugs.php.net/fix.php?id=29431r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29431r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29431r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29431r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29431r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29431r=dst IIS Stability: http://bugs.php.net/fix.php?id=29431r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29431r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29431r=float
#29432 [NEW]: error message when adding an event to calendar
From: martin at academyx dot com Operating system: PHP version: Irrelevant PHP Bug Type: Calendar related Bug description: error message when adding an event to calendar Description: error message when adding an event to calendar it would not allow me to post a class. no error about incorrect data, etc. -- Edit bug report at http://bugs.php.net/?id=29432edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29432r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29432r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29432r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29432r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29432r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29432r=needscript Try newer version: http://bugs.php.net/fix.php?id=29432r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29432r=support Expected behavior: http://bugs.php.net/fix.php?id=29432r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29432r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29432r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29432r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29432r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29432r=dst IIS Stability: http://bugs.php.net/fix.php?id=29432r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29432r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29432r=float
#29433 [NEW]: The built in function is_callable, does not return false, on unreachable functi
From: freeload at softhome dot net Operating system: Windows NT/XP PHP version: 5.0.0 PHP Bug Type: *General Issues Bug description: The built in function is_callable, does not return false, on unreachable functi Description: The built in function is_callable, does not return false, on unreachable functions, like protected and private ones. Reproduce code: --- ?php class test_class { private function test_func1(){} protected function test_func2(){} } $object = new test_class; var_dump(is_callable(array($object,'test_func1'))); echo chr(10); var_dump(is_callable(array($object,'test_func2'))); ? Expected result: bool(false) bool(false) Actual result: -- bool(true) bool(true) -- Edit bug report at http://bugs.php.net/?id=29433edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29433r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29433r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29433r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29433r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29433r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29433r=needscript Try newer version: http://bugs.php.net/fix.php?id=29433r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29433r=support Expected behavior: http://bugs.php.net/fix.php?id=29433r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29433r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29433r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29433r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29433r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29433r=dst IIS Stability: http://bugs.php.net/fix.php?id=29433r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29433r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29433r=float
#16093 [Com]: mail does not work
ID: 16093 Comment by: mark at intuitiveisp dot com Reported By: sc2 at gmx dot at Status: Bogus Bug Type: Mail related Operating System: suse 7.1 PHP Version: 4.1.2 New Comment: This is a Bug... It should return true or false 100% of the time... If it can't get a shell it should log an error somewhere. Previous Comments: [2002-03-15 19:52:04] [EMAIL PROTECTED] PHP needs an executeable shell to run the sendmail binary; make sure a sheel is executeable at least by the apache user (/bin/sh or /bin/bash). Anyway it's a system configuration error, not a PHP bug. [2002-03-15 07:30:53] sc2 at gmx dot at What's the return value of mail(), is it false ? nope Have you tried calling sendmail from command line if it properly works? this works fine, it works to fine to send mail from a cgi form. It only looks that the php doesnt contact sendmail. on other servers/Dist. works fine. sorry for bad. english [2002-03-15 07:09:18] [EMAIL PROTECTED] What's the return value of mail(), is it false ? Have you tried calling sendmail from command line if it properly works? [2002-03-15 06:27:30] sc2 at gmx dot at The mail send function does not work. there are no errors. the sendmail path is correct (php.ini / configure scan) and sendmail works fine (manuall + cgi mail) there no errors to see in logs. sendmail never becomes a mail from php (if i use a php mail script, then sendmail log neves shows from to . so i think php never contact sendmail to send the mail) on other servers (redhat and other dist.) i dont have problems with mail functions. if you need more information please say it. thank you- -- Edit this bug report at http://bugs.php.net/?id=16093edit=1
#29127 [Csd-Opn]: PHP has encountered an Access Violation
ID: 29127 User updated by: bojo at gvea dot com Reported By: bojo at gvea dot com -Status: Closed +Status: Open Bug Type: Reproducible crash Operating System: Windows 2003 Server PHP Version: 5.0.0 New Comment: Access Violation errors continue to happen after a clean rebuild using both the 5.0.x-dev and 5.1.x-dev snapshots. However, the errors occur at a lower frequency. Previous Comments: [2004-07-23 02:36:25] jbrady at sbccd dot cc dot ca dot us I had this bug, but the latest snap fixed it. But it didn't fix the crash in IIS when you stop the service. I just upgraded from php 4.3.8 to 5.0 on my Windows XP machine, and got it working, only to get the access violation. At that time, IIS also crashed when I tried to stop the service (using net stop IIS Admin). I read this bug report, got the latest snapshot, and it fixed the access violation that was reported in the browser. Now, when ever I start IIS, run a page containing ?php phpinfo(); ?, and then try to stop IIS, it crashes. It brings up the microsoft crash report, asking to send it to Microsoft. [2004-07-23 02:29:30] [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. [2004-07-23 02:19:30] SI at wcreplays dot com getting same errors, also win2k3. have had the error on a 3 line file ? echo blah; ?, also have it in the middle of a dir enum loop, consistently after same element, the dir I am displaying only has subdirs. Email me if I should test stuff. [2004-07-22 13:37:59] jmjt at lut dot fi Any possibility of getting a version for PHP 4.3.8 of the DLL? The access violation bug is highly reproducible also there and I'm big stuck here not wanting to go below 4.3.8 because of the serious bugs and not ready to go to 5.0.0 yet. [2004-07-21 22:29:33] noidea_2 at hotmail dot com I'm also getting the Access Violation error randomly. Email me if I have to test things. 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/29127 -- Edit this bug report at http://bugs.php.net/?id=29127edit=1
#29127 [Opn-Csd]: PHP has encountered an Access Violation
ID: 29127 Updated by: [EMAIL PROTECTED] Reported By: bojo at gvea dot com -Status: Open +Status: Closed Bug Type: Reproducible crash Operating System: Windows 2003 Server PHP Version: 5.0.0 New Comment: The issue reported was solved. Please keep this report closed. If you can reproduce another problem please open a new report and include the reproducing code. Previous Comments: [2004-07-28 20:16:53] bojo at gvea dot com Access Violation errors continue to happen after a clean rebuild using both the 5.0.x-dev and 5.1.x-dev snapshots. However, the errors occur at a lower frequency. [2004-07-23 02:36:25] jbrady at sbccd dot cc dot ca dot us I had this bug, but the latest snap fixed it. But it didn't fix the crash in IIS when you stop the service. I just upgraded from php 4.3.8 to 5.0 on my Windows XP machine, and got it working, only to get the access violation. At that time, IIS also crashed when I tried to stop the service (using net stop IIS Admin). I read this bug report, got the latest snapshot, and it fixed the access violation that was reported in the browser. Now, when ever I start IIS, run a page containing ?php phpinfo(); ?, and then try to stop IIS, it crashes. It brings up the microsoft crash report, asking to send it to Microsoft. [2004-07-23 02:29:30] [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. [2004-07-23 02:19:30] SI at wcreplays dot com getting same errors, also win2k3. have had the error on a 3 line file ? echo blah; ?, also have it in the middle of a dir enum loop, consistently after same element, the dir I am displaying only has subdirs. Email me if I should test stuff. [2004-07-22 13:37:59] jmjt at lut dot fi Any possibility of getting a version for PHP 4.3.8 of the DLL? The access violation bug is highly reproducible also there and I'm big stuck here not wanting to go below 4.3.8 because of the serious bugs and not ready to go to 5.0.0 yet. 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/29127 -- Edit this bug report at http://bugs.php.net/?id=29127edit=1
#28141 [Opn-Asn]: socket_read return type: false vs , when PHP_NORMAL_READ
ID: 28141 Updated by: [EMAIL PROTECTED] -Summary: socket_read return type: false vs Reported By: php at richardneill dot org -Status: Open +Status: Assigned Bug Type: Sockets related Operating System: Linux -PHP Version: 5.0.0RC1 +PHP Version: 5.0.0+ -Assigned To: +Assigned To: andrey New Comment: Assigning to myself (to get notification if i forget), changing the version. Previous Comments: [2004-07-26 10:37:34] php at hristov dot com I will take a look later today or these days. But for now, the code in the function is : if (type == PHP_NORMAL_READ) { retval = php_read(php_sock-bsd_socket, tmpbuf, length, 0); } else { retval = recv(php_sock-bsd_socket, tmpbuf, length, 0); } if (retval == -1) { PHP_SOCKET_ERROR(php_sock, unable to read from socket, errno); efree(tmpbuf); RETURN_FALSE; } [2004-07-26 01:18:08] php at richardneill dot org re-setting to open as requested by automatic email. Sorry - I think I confused your system by commenting as another user rather than as the original submitter. [2004-07-26 01:00:05] 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. [2004-07-18 17:13:56] php2 at richardneill dot org I've still got the same thing happening in PHP5.0.0(final) I'm having some trouble with your example, so I'm using the attached instead. It's basically copied from the php-sockets manual, but slightly modified. The key point: according to the documentation, when (socket_read()===false), it means something has gone very wrong, i.e. a fatal error. However, in practice, all this means is that the other side has closed the connection. I'm running this code as ./testsock.php and the client is simply: netcat localhost The problem is that, if netcat is killed with Ctrl-C, then the server suffers a fatal error. I don't think that it should. I've tried it under both version php-cli-4.3.7-4mdk (the current devel version from Mandrake cooker) and php-5.0.0-cli which I just compiled. In both cases, the same thing happens. Regards Richard - #!/usr/local/bin/php ?php error_reporting(E_ALL); /* Allow the script to hang around waiting for connections. */ set_time_limit(0); /* Turn on implicit output flushing so we see what we're getting as it comes in. */ ob_implicit_flush(); $address = '127.0.0.1'; $port = ; if (($sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) 0) { echo socket_create() failed: reason: . socket_strerror($sock) . \n; }else{ echo Created socket $sock\n; } if (($ret = socket_bind($sock, $address, $port)) 0) { echo socket_bind() failed: reason: . socket_strerror($ret) . \n; }else{ echo Bound socket $sock to port $port on address $address\n; } if (($ret = socket_listen($sock, 5)) 0) { echo socket_listen() failed: reason: . socket_strerror($ret) . \n; }else{ echo listening...\n; } do { if (($msgsock = socket_accept($sock)) 0) { echo socket_accept() failed: reason: . socket_strerror($msgsock) . \n; break; } /* Send instructions. */ $msg = Welcome to the PHP Test Server.\nTo quit, type 'quit'. To shut down the server type 'shutdown'.\n. To crash this server, quit netcat with Ctrl-C\n; socket_write($msgsock, $msg, strlen($msg)); do { $buf = socket_read($msgsock, 2048, PHP_NORMAL_READ); if ($buf==''){ echo Socket received an empty string.\n; } if ($buf ===false){ echo socket_read() failed: reason: . socket_strerror($ret) . . This shouldn't happen. Fatal exit.\n; break 2; } /* According to the documentation, testing for socket_read being false is a sign of a fatal error, whereas an empty string is means the remote side has closed the connection. Actually both and false indicate the remote side has closed the connection. the socket_strerror isn't very helpful - it says operation not permitted */ $buf=trim($buf); #Trim whitespace. if ($buf == 'quit') { echo Quit command received\n; break; } if ($buf == 'shutdown') { socket_close($msgsock); echo Shutdown command received\n; break 2; } $talkback = PHP: You said '$buf'.\n; socket_write($msgsock, $talkback, strlen($talkback)); echo $buf\n; } while (true); socket_close($msgsock); echo Closed msgsocket;
#29434 [NEW]: Unable to connect to SQL server2000
From: rjahanzeb at computer dot org Operating system: win2k PHP version: 4.3.7 PHP Bug Type: MSSQL related Bug description: Unable to connect to SQL server2000 Description: I am unable to connect to SQL Server 2000 from the server which has SSL Certificate installed via PHP. I can connect to the same database using JSP from the same server. I have made following changes to default php.ini -uncomment the mssql.dll extension -change the extension_dir -and set register_global to on. Is there an issue with PHP connecting to SQL Server over SSL? -- Edit bug report at http://bugs.php.net/?id=29434edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29434r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29434r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29434r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29434r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29434r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29434r=needscript Try newer version: http://bugs.php.net/fix.php?id=29434r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29434r=support Expected behavior: http://bugs.php.net/fix.php?id=29434r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29434r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29434r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29434r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29434r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29434r=dst IIS Stability: http://bugs.php.net/fix.php?id=29434r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29434r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29434r=float
#28988 [Opn]: Syslog NOT logging Errors to the Event Viewer
ID: 28988 User updated by: mgilbert at kcm dot org Reported By: mgilbert at kcm dot org Status: Open Bug Type: IIS related Operating System: Windows Server 2003 PHP Version: 4.3.7 New Comment: OK We just tried the test. I wrote a simple PHP script that logs and event and echos the message to the screen. When we run that PHP script from the command line interface it loggs the event to the event viewer. When we run the same script from a Web Browser it does not logg the event to the event viewer. We have checked all of the security settings, in fact temporarily they gave IIS Admin privaliges and it still did not logg to the event viewer. Previous Comments: [2004-07-27 23:06:13] mgilbert at kcm dot org I am working with one of our guys in our DCAT dept to test this (I do not have admin rights). I will let you know the results. Thank you for responding [2004-07-27 17:58:19] msisolak at yahoo dot com If you run a script with the code snippet you have interactively from a command prompt (logged in as a Administrator user) is it able to write to the Event Log? [2004-07-01 22:47:28] mgilbert at kcm dot org Description: This error was orrigionally logged at an IIS forum. The Forum administrator had the same problem and sugested that we logg this error on the PHP web site. Below is some of the text from our origional message. This is the link to the origional message: http://www.iis-resources.com/modules/newbb/viewtopic.php?topic_id=1560forum=5 We recently migrated a website from Windows 2000 to Windows 2003 using the iis 6.0 Migration tool provided by Microsoft. PHP is installed and seems to work fine with the exception of a challenge one of my developers approached me with recently. This function works fine on Windows 2000, but doesn't on Windows 2003. He has some code to log errors to the system event log but the events are not getting logged. We have logging enabled in the PHP.ini : ; Log errors to syslog (Event Log on NT, not valid in Windows 95). error_log = syslog I've attempted giving IUSR_website account more permissions on the box (including administrative rights for a very short period of time to make sure that NTFS permissions are not blocking anything) Any information you could provide would be greatly appreciated. Thanks, Reproduce code: --- if ($priority ) { openlog(Website, LOG_ODELAY, LOG_USER); syslog($priority, $error_log); closelog(); } Expected result: It should log an event in the event Windows Event Viewer. Actual result: -- Did not log the event. -- Edit this bug report at http://bugs.php.net/?id=28988edit=1
#29434 [Opn-Fbk]: Unable to connect to SQL server2000
ID: 29434 Updated by: [EMAIL PROTECTED] Reported By: rjahanzeb at computer dot org -Status: Open +Status: Feedback Bug Type: MSSQL related Operating System: win2k PHP Version: 4.3.7 New Comment: Please provide more information about your setup and the error/warning messages you are getting. The PHP extension uses the TDS protocol on port 1433 or netbios over TCP/IP to communicate with the server. Previous Comments: [2004-07-28 21:06:42] rjahanzeb at computer dot org Description: I am unable to connect to SQL Server 2000 from the server which has SSL Certificate installed via PHP. I can connect to the same database using JSP from the same server. I have made following changes to default php.ini -uncomment the mssql.dll extension -change the extension_dir -and set register_global to on. Is there an issue with PHP connecting to SQL Server over SSL? -- Edit this bug report at http://bugs.php.net/?id=29434edit=1
#29434 [Fbk-Opn]: Unable to connect to SQL server2000
ID: 29434 User updated by: rjahanzeb at computer dot org Reported By: rjahanzeb at computer dot org -Status: Feedback +Status: Open Bug Type: MSSQL related Operating System: win2k PHP Version: 4.3.7 New Comment: I have two development servers one that runs PHP (and JSP) and one that runs MSSQL Server. I have two production servers, one that runs PHP (and JSP) and one that runs MSSQL Server cluster. The development PHP server can successfully connect to the development MSSQL server with both PHP and JSP. The production PHP server can successfully connect to the development MSSQL server with both PHP and JSP. The production PHP server can successfully connect to the production MSSQL server using JSP but not PHP. In all cases the database username, password and database connection details are the same. The php.ini files are the same on the development and production PHP servers. Webserver on production server has SSL. Error I get is Warning: mssql_connect(): Unable to connect to server: (servername) Note two things are different. One of the database server is a cluster and one of the production server has SSL. Previous Comments: [2004-07-28 21:36:46] [EMAIL PROTECTED] Please provide more information about your setup and the error/warning messages you are getting. The PHP extension uses the TDS protocol on port 1433 or netbios over TCP/IP to communicate with the server. [2004-07-28 21:06:42] rjahanzeb at computer dot org Description: I am unable to connect to SQL Server 2000 from the server which has SSL Certificate installed via PHP. I can connect to the same database using JSP from the same server. I have made following changes to default php.ini -uncomment the mssql.dll extension -change the extension_dir -and set register_global to on. Is there an issue with PHP connecting to SQL Server over SSL? -- Edit this bug report at http://bugs.php.net/?id=29434edit=1
#29435 [NEW]: Segmentation Fault 11 in strlen()
From: rob at alterlinks dot fr Operating system: Linux Mandrake 2.4.19-16 PHP version: 5.0.0 PHP Bug Type: Reproducible crash Bug description: Segmentation Fault 11 in strlen() Description: Tested with PHP5.0.0 and later Snapshots with Apache 1.3.31 and 2.0.50, systematically a Segmentation Fault 11 (error_log Apache), blank page is shown. OK with PHP4.3.8. Result of debug : [EMAIL PROTECTED] logs]# gdb ../bin/httpd GNU gdb 5.2.1-2mdk (Mandrake Linux) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i586-mandrake-linux-gnu... (gdb) run -X Starting program: /usr/local/free_websites/bin/httpd -X Program received signal SIGSEGV, Segmentation fault. 0x40186bc3 in strlen () from /lib/i686/libc.so.6 (gdb) Result of bt #0 0x40186bc3 in strlen () from /lib/i686/libc.so.6 #1 0x40473993 in add_property_string_ex (arg=0x1, key=0x82a4664 \001, key_len=0, str=0x1 Address 0x1 out of bounds, duplicate=135993744) at /download/php5-200407261830/Zend/zend_API.c:1132 #2 0x4032b406 in zif_mysql_fetch_field (ht=1, return_value=0x82a4664, this_ptr=0x0, return_value_used=1) at /download/php5-200407261830/ext/mysql/php_mysql.c:2250 #3 0x40497feb in zend_do_fcall_common_helper (execute_data=0xbfffd280, opline=0x820b7dc, op_array=0x824cd28) at /download/php5-200407261830/Zend/zend_execute.c:2699 #4 0x40498760 in zend_do_fcall_handler (execute_data=0xbfffd280, opline=0x820b7dc, op_array=0x824cd28) at /download/php5-200407261830/Zend/zend_execute.c:2831 #5 0x4049460c in execute (op_array=0x824cd28) at /download/php5-200407261830/Zend/zend_execute.c:1391 #6 0x40498184 in zend_do_fcall_common_helper (execute_data=0xbfffd350, opline=0x4088fb70, op_array=0x829207c) at /download/php5-200407261830/Zend/zend_execute.c:2728 #7 0x40498652 in zend_do_fcall_by_name_handler (execute_data=0xbfffd350, opline=0x4088fb70, op_array=0x829207c) at /download/php5-200407261830/Zend/zend_execute.c:2813 #8 0x4049460c in execute (op_array=0x829207c) at /download/php5-200407261830/Zend/zend_execute.c:1391 #9 0x40470841 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /download/php5-200407261830/Zend/zend.c:1068 #10 0x404295b2 in php_execute_script (primary_file=0xb600) at /download/php5-200407261830/main/main.c:1631 #11 0x404a149e in php_handler (r=0x842ab78) at /download/php5-200407261830/sapi/apache2handler/sapi_apache2.c:535 #12 0x0807e18b in ap_run_handler (r=0x842ab78) at config.c:152 #13 0x0807e72e in ap_invoke_handler (r=0x6) at config.c:358 #14 0x0806d1fb in ap_process_request (r=0x842ab78) at http_request.c:246 #15 0x08068fef in ap_process_http_connection (c=0x81f2058) at http_core.c:250 #16 0x08087e2b in ap_run_process_connection (c=0x81f2058) at connection.c:42 #17 0x0807cbf1 in child_main (child_num_arg=4) at prefork.c:609 #18 0x0807cdad in make_child (s=0x80bb120, slot=0) at prefork.c:649 #19 0x0807ce0e in startup_children (number_to_start=5) at prefork.c:721 #20 0x0807d553 in ap_mpm_run (_pconf=0x80b89f0, plog=0x80f0ad0, s=0x80b69e8) at prefork.c:940 #21 0x0808299a in main (argc=2, argv=0xb994) at main.c:617 #22 0x4012a082 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) Reproduce code: --- phpMyAdmin script, page sql.php Expected result: Display of contents of Database tables Actual result: -- Segmentation Fault 11 (no coredump), see gdb results (bt) -- Edit bug report at http://bugs.php.net/?id=29435edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29435r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29435r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29435r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29435r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29435r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29435r=needscript Try newer version: http://bugs.php.net/fix.php?id=29435r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29435r=support Expected behavior: http://bugs.php.net/fix.php?id=29435r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29435r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29435r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29435r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29435r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29435r=dst IIS Stability: http://bugs.php.net/fix.php?id=29435r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29435r=gnused
#26962 [Com]: __toString is not called during (string) cast and inside an expression
ID: 26962 Comment by: Maik_Heller at hotmail dot com Reported By: alex_mailbox53 at yahoo dot com Status: No Feedback Bug Type: Zend Engine 2 problem Operating System: Gentoo Linux PHP Version: 5.0.0b3 (beta3) New Comment: problem still exists even with lates build (for win) Previous Comments: [2004-01-24 23:59:56] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to Open. Thank you. [2004-01-19 13:07:05] [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 [2004-01-19 05:01:43] alex_mailbox53 at yahoo dot com Description: The ZEND_CHANGES defines that __toString method whould be called whenever object is casted to sting. But actually it is casted to string only during print (echo) operator. Even the example in ZEND_CHANGES does not work: class Foo { function __toString() { return What ever; } $obj = Foo; $str = (string) $obj; // call __toString() echo $obj; // call __toString() print $str will print the Object sring, not the What ever. One more code example: class Integer { private $value; function __construct($val) { $this-value = $val; } function __toString() { return (string)($this-value); } } $i = new Integer(10); if (10 == $i) echo '10 :-)'; 10!!! :-) is not printed. Expected result: When object is accessed in expressions it should be explicitly casted to sting nor vartype. -- Edit this bug report at http://bugs.php.net/?id=26962edit=1
#26962 [NoF-Bgs]: __toString is not called during (string) cast and inside an expression
ID: 26962 Updated by: [EMAIL PROTECTED] Reported By: alex_mailbox53 at yahoo dot com -Status: No Feedback +Status: Bogus Bug Type: Zend Engine 2 problem Operating System: Gentoo Linux PHP Version: 5.0.0b3 (beta3) New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php For 5.0.x this is expected behavior. __toString() will only called automatically for echo and print constructs. Maybe we'll change that for 5.1. Previous Comments: [2004-07-28 22:40:13] Maik_Heller at hotmail dot com problem still exists even with lates build (for win) [2004-01-24 23:59:56] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to Open. Thank you. [2004-01-19 13:07:05] [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 [2004-01-19 05:01:43] alex_mailbox53 at yahoo dot com Description: The ZEND_CHANGES defines that __toString method whould be called whenever object is casted to sting. But actually it is casted to string only during print (echo) operator. Even the example in ZEND_CHANGES does not work: class Foo { function __toString() { return What ever; } $obj = Foo; $str = (string) $obj; // call __toString() echo $obj; // call __toString() print $str will print the Object sring, not the What ever. One more code example: class Integer { private $value; function __construct($val) { $this-value = $val; } function __toString() { return (string)($this-value); } } $i = new Integer(10); if (10 == $i) echo '10 :-)'; 10!!! :-) is not printed. Expected result: When object is accessed in expressions it should be explicitly casted to sting nor vartype. -- Edit this bug report at http://bugs.php.net/?id=26962edit=1
#24499 [Com]: Notice: Undefined property: stdClass::
ID: 24499 Comment by: jmaguire123 at hotmail dot com Reported By: wks at wks dot ch Status: Closed Bug Type: Zend Engine 2 problem Operating System: * PHP Version: 5.0.0b1 (beta1) Assigned To: helly New Comment: I tried the latest CVS snapshot (php5-200407281830.tar.gz)as recommened above but it did not fix my issue. I am still seeing: Undefined property: stdClass::$id Undefined property: stdClass::$name (Using PEAR::DB) with mysql on the back end, here is what I am trying to do: $stmt = SELECT * FROM . CUSTOMER_TABLE; $result = $conn-query($stmt); while ($customer = (object) $result-fetchRow() ) { if ($customer-id == $params['cid']) { $t-set_var(CID_SELECTED, selected); } else { $t-set_var(CID_SELECTED, ); } $t-set_var(CUSTOMER_ID, $customer-id); $t-set_var(CUSTOMER_NAME, $customer-name); } etc.. All of the above code worked fine in PHP 4.3.7 (and still does--I checked). Broken in PHP 5 (and page goes into an infinate loop of notices) Any help is greatly appreciated.. Suggest re-opening this bug report. -John Previous Comments: [2003-07-21 07:13:38] [EMAIL PROTECTED] This bug has been fixed in CVS. In case this was a PHP problem, 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/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. [2003-07-20 12:18:36] [EMAIL PROTECTED] This affects more than ext/pgsql. some internal facility is wrong it seems. [2003-07-10 08:53:05] wks at wks dot ch I've just changed the status from documentation to crash 'cause that's what it does. In more details: $this-id is a private variable of the class Id $id-id is a propertie of a PostgreSQL object php 5.0.0b1 is unable to dereference the $id-id property of the $id PostgreSQL object ! [2003-07-05 07:25:26] wks at wks dot ch There's unfortunately been added a note by someone who hasn't understood the problem at all. $this-id is a private variable of the class Id $id-id is a propertie of a PostgreSQL object php 5.0.0b1 is unable to derive the $id-id property of the $id PostgreSQL object ! [2003-07-05 06:26:07] [EMAIL PROTECTED] Make it a doc problem since you obviously didn't read the docs. And close it since it's all your fault :-) What you're missing class { private $id; function getId() { $this-id = 1; return $this-id; } } 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/24499 -- Edit this bug report at http://bugs.php.net/?id=24499edit=1
#29366 [Opn-Csd]: Change in error_reporting behavior
ID: 29366 User updated by: nbi at gmx dot de -Summary: Change in error_reporting behavier Reported By: nbi at gmx dot de -Status: Open +Status: Closed Bug Type: PHP options/info functions Operating System: Windows XP PHP Version: 4.3.8 New Comment: Yes, indead: mysql.trace_mode = Off solved the problem. However, mysql.trace_mode could be ON up to PHP 4.3.6 without having any apparent effect, though. Thanks for your help. Previous Comments: [2004-07-27 23:45:59] evan at fusion-zero dot com In php.ini, you probably have mysql.trace.mode set to On You need to set it to Off, just like this. ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and ; SQL-Erros will be displayed. mysql.trace_mode = Off [2004-07-24 21:11:59] nbi at gmx dot de Description: There seems to be a change in error_reporting(), that came up from PHP 4.3.6 to 4.3.7: Setting error_reporting(0) did NOT display a warning like Warning: mysql_query(): Your query requires a full tablescan (table xyz, 4 rows affected). Use EXPLAIN to optimize your query. in xyz.php on line 594 With PHP 4.3.7 and 4.3.8 this warning is displayed, despite settings of error_reporting(0) or ini_set ('error_reporting', 0) -- Edit this bug report at http://bugs.php.net/?id=29366edit=1
#26962 [Bgs]: __toString is not called during (string) cast and inside an expression
ID: 26962 Updated by: [EMAIL PROTECTED] Reported By: alex_mailbox53 at yahoo dot com Status: Bogus Bug Type: Zend Engine 2 problem -Operating System: Gentoo Linux +Operating System: * -PHP Version: 5.0.0b3 (beta3) +PHP Version: 5.0.0 New Comment: Actually this is a PEAR problem. PEAR is not compatible with PHP 5. It is designed for PHP 4 only. Previous Comments: [2004-07-28 23:01:20] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php For 5.0.x this is expected behavior. __toString() will only called automatically for echo and print constructs. Maybe we\'ll change that for 5.1. [2004-07-28 22:40:13] Maik_Heller at hotmail dot com problem still exists even with lates build (for win) [2004-01-24 23:59:56] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to Open. Thank you. [2004-01-19 13:07:05] [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 [2004-01-19 05:01:43] alex_mailbox53 at yahoo dot com Description: The ZEND_CHANGES defines that __toString method whould be called whenever object is casted to sting. But actually it is casted to string only during print (echo) operator. Even the example in ZEND_CHANGES does not work: class Foo { function __toString() { return What ever; } $obj = Foo; $str = (string) $obj; // call __toString() echo $obj; // call __toString() print $str will print the Object sring, not the What ever. One more code example: class Integer { private $value; function __construct($val) { $this-value = $val; } function __toString() { return (string)($this-value); } } $i = new Integer(10); if (10 == $i) echo '10 :-)'; 10!!! :-) is not printed. Expected result: When object is accessed in expressions it should be explicitly casted to sting nor vartype. -- Edit this bug report at http://bugs.php.net/?id=26962edit=1
#29402 [Fbk-Opn]: Oracle 9i lib path issue in configure script
ID: 29402 User updated by: brian dot bush at alltel dot com Reported By: brian dot bush at alltel dot com -Status: Feedback +Status: Open Bug Type: *Configuration Issues Operating System: SunOS 5.8 PHP Version: 5.0.0 Assigned To: tony2001 New Comment: The patch works great. I was able to successfully compile with Oracle 8.1.7 and Oracle 9.2.0. Great job. Thanks. --brian Previous Comments: [2004-07-28 10:18:06] [EMAIL PROTECTED] Could you plz try this patch: http://tony2004.phpclub.net/dev/tmp/patch_29402.diff and tell me does it work for you? Run ./buildconf --force ./configure after applying it. [2004-07-27 04:38:40] brian dot bush at alltel dot com Description: We were getting an error about the readline library not being found during the configure process. We have just upgraded to Oracle 9.2.0 which has moved its 32-bit libraries to $ORACLE_HOME/lib32 from $ORACLE_HOME/lib. config.log gave more clues that this was the problem. We fixed it by changing the $OCI8_DIR/lib and $ORACLE_DIR/lib to $OCI8/lib32 and $ORACLE_DIR/lib32 respectively in the configure script. I think the configure script should have an option added that will specify to use 64 or 32 bit Oracle libraries. -- Edit this bug report at http://bugs.php.net/?id=29402edit=1
#29350 [Com]: output_compression not working with zlib as loadable module
ID: 29350 Comment by: frank at atteveld dot demon dot nl Reported By: marcel at virtua dot ch Status: Open Bug Type: Output Control Operating System: FreeBSD 4.8p24 PHP Version: 4.3.8 New Comment: I have the same problem. Zlib won't work when it's compilled as a module. Therefor I have to add it to the Makefile myself. I'm running a FreeBSD I386 5.2-release with php 4.3.8 Previous Comments: [2004-07-23 14:13:00] marcel at virtua dot ch Description: After installing lang/php4-4.3.8_1 + php4-zlib and setting zlib.output_compression = On in php.ini, all I get is garbage (looking like compressed data). Tried different browsers. I had to compile php with --with-zlib, and not with zlib as a loadable module to get it working correctly. Reproduce code: --- any .php file Expected result: normal html code Actual result: -- unreadable binary data. -- Edit this bug report at http://bugs.php.net/?id=29350edit=1
#29436 [NEW]: PHP hangs on HTML comment in string
From: stefan dot teitge at web dot de Operating system: Windows XP Pro PHP version: 4.3.7 PHP Bug Type: Scripting Engine problem Bug description: PHP hangs on HTML comment in string Description: No changes to php.ini except script timeout. If this line independent from the variable name appears the php output hangs, that means no output after this point is produced. Hangs even when only !-- occours in any string. (see sample 2) Reproduce code: --- //sample 1 $a = !--; //sample 2 $a = !-; $a .= -; Expected result: the string shall be printed later on -- Edit bug report at http://bugs.php.net/?id=29436edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29436r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29436r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29436r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29436r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29436r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29436r=needscript Try newer version: http://bugs.php.net/fix.php?id=29436r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29436r=support Expected behavior: http://bugs.php.net/fix.php?id=29436r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29436r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29436r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29436r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29436r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29436r=dst IIS Stability: http://bugs.php.net/fix.php?id=29436r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29436r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29436r=float
#29435 [Opn-Fbk]: Segmentation Fault 11 in strlen()
ID: 29435 Updated by: [EMAIL PROTECTED] Reported By: rob at alterlinks dot fr -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Linux Mandrake 2.4.19-16 PHP Version: 5.0.0 New Comment: 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 ?php and ends with ?, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. Previous Comments: [2004-07-28 22:37:27] rob at alterlinks dot fr Description: Tested with PHP5.0.0 and later Snapshots with Apache 1.3.31 and 2.0.50, systematically a Segmentation Fault 11 (error_log Apache), blank page is shown. OK with PHP4.3.8. Result of debug : [EMAIL PROTECTED] logs]# gdb ../bin/httpd GNU gdb 5.2.1-2mdk (Mandrake Linux) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i586-mandrake-linux-gnu... (gdb) run -X Starting program: /usr/local/free_websites/bin/httpd -X Program received signal SIGSEGV, Segmentation fault. 0x40186bc3 in strlen () from /lib/i686/libc.so.6 (gdb) Result of bt #0 0x40186bc3 in strlen () from /lib/i686/libc.so.6 #1 0x40473993 in add_property_string_ex (arg=0x1, key=0x82a4664 \001, key_len=0, str=0x1 Address 0x1 out of bounds, duplicate=135993744) at /download/php5-200407261830/Zend/zend_API.c:1132 #2 0x4032b406 in zif_mysql_fetch_field (ht=1, return_value=0x82a4664, this_ptr=0x0, return_value_used=1) at /download/php5-200407261830/ext/mysql/php_mysql.c:2250 #3 0x40497feb in zend_do_fcall_common_helper (execute_data=0xbfffd280, opline=0x820b7dc, op_array=0x824cd28) at /download/php5-200407261830/Zend/zend_execute.c:2699 #4 0x40498760 in zend_do_fcall_handler (execute_data=0xbfffd280, opline=0x820b7dc, op_array=0x824cd28) at /download/php5-200407261830/Zend/zend_execute.c:2831 #5 0x4049460c in execute (op_array=0x824cd28) at /download/php5-200407261830/Zend/zend_execute.c:1391 #6 0x40498184 in zend_do_fcall_common_helper (execute_data=0xbfffd350, opline=0x4088fb70, op_array=0x829207c) at /download/php5-200407261830/Zend/zend_execute.c:2728 #7 0x40498652 in zend_do_fcall_by_name_handler (execute_data=0xbfffd350, opline=0x4088fb70, op_array=0x829207c) at /download/php5-200407261830/Zend/zend_execute.c:2813 #8 0x4049460c in execute (op_array=0x829207c) at /download/php5-200407261830/Zend/zend_execute.c:1391 #9 0x40470841 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /download/php5-200407261830/Zend/zend.c:1068 #10 0x404295b2 in php_execute_script (primary_file=0xb600) at /download/php5-200407261830/main/main.c:1631 #11 0x404a149e in php_handler (r=0x842ab78) at /download/php5-200407261830/sapi/apache2handler/sapi_apache2.c:535 #12 0x0807e18b in ap_run_handler (r=0x842ab78) at config.c:152 #13 0x0807e72e in ap_invoke_handler (r=0x6) at config.c:358 #14 0x0806d1fb in ap_process_request (r=0x842ab78) at http_request.c:246 #15 0x08068fef in ap_process_http_connection (c=0x81f2058) at http_core.c:250 #16 0x08087e2b in ap_run_process_connection (c=0x81f2058) at connection.c:42 #17 0x0807cbf1 in child_main (child_num_arg=4) at prefork.c:609 #18 0x0807cdad in make_child (s=0x80bb120, slot=0) at prefork.c:649 #19 0x0807ce0e in startup_children (number_to_start=5) at prefork.c:721 #20 0x0807d553 in ap_mpm_run (_pconf=0x80b89f0, plog=0x80f0ad0, s=0x80b69e8) at prefork.c:940 #21 0x0808299a in main (argc=2, argv=0xb994) at main.c:617 #22 0x4012a082 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) Reproduce code: --- phpMyAdmin script, page sql.php Expected result: Display of contents of Database tables Actual result: -- Segmentation Fault 11 (no coredump), see gdb results (bt) -- Edit this bug report at http://bugs.php.net/?id=29435edit=1
#29437 [NEW]: array_walk_recursive causes segfault
From: misc at sopic dot com Operating system: Suse Linux 9.0 PHP version: 5.0.0 PHP Bug Type: Reproducible crash Bug description: array_walk_recursive causes segfault Description: Execution of the code below causes Apache 2.0.49 (Prefork) to exit with a segfault. Apache error_log: [Wed Jul 28 23:25:22 2004] [notice] child pid 30256 exit signal Segmentation fault (11) [Wed Jul 28 23:25:23 2004] [notice] child pid 30252 exit signal Segmentation fault (11) [Wed Jul 28 23:25:23 2004] [notice] child pid 32257 exit signal Segmentation fault (11) [Wed Jul 28 23:25:24 2004] [notice] child pid 32314 exit signal Segmentation fault (11) [Wed Jul 28 23:25:25 2004] [notice] child pid 32316 exit signal Segmentation fault (11) './configure' '--with-apxs2=/usr/local/apache2-php5/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-zlib' '--with-xml' '--with-gd' '--with-ttf=/usr' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-mcrypt=/usr' '--enable-calendar' '--enable-bcmath' '--with-dom' '--with-xmlrpc' '--with-gettext' '--with-ftp' '--enable-shared' '--enable-memory-limit' '--with-freetype-dir=/usr' '--with-ldap=/usr' '--disable-short-tags' '--with-dom=/usr' Reproduce code: --- ?php function mysqlEscapeArray ($array) { if (!is_array($array)) { return false; } function my_escape_function ($value, $key) { $value = mysql_escape_string($value); } array_walk_recursive($array, 'my_escape_function'); return true; } $foobar = array('test' = array(foo = Zack's Laptop)); mysqlEscapeArray($foobar); ? Expected result: Array with escaped values Actual result: -- [New Thread 16384 (LWP 9165)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 9165)] 0x401ab05a in _int_malloc () from /lib/i686/libc.so.6 (gdb) bt #0 0x401ab05a in _int_malloc () from /lib/i686/libc.so.6 #1 0x401aa06c in malloc () from /lib/i686/libc.so.6 #2 0x403f34e6 in _emalloc (size=256) at /usr/local/src/php-5.0.0/Zend/zend_alloc.c:182 #3 0x40406957 in zend_stack_init (stack=0x404cd2dc) at /usr/local/src/php-5.0.0/Zend/zend_stack.c:28 #4 0x403fd9eb in shutdown_executor () at /usr/local/src/php-5.0.0/Zend/zend_execute_API.c:232 #5 0x40408060 in zend_deactivate () at /usr/local/src/php-5.0.0/Zend/zend.c:819 #6 0x403d0e50 in php_request_shutdown (dummy=0x0) at /usr/local/src/php-5.0.0/main/main.c:1212 #7 0x4043b1da in php_apache_request_dtor (r=0x81ed8b0) at /usr/local/src/php-5.0.0/sapi/apache2handler/sapi_apache2.c:435 #8 0x4043b5fd in php_handler (r=0x81ed8b0) at /usr/local/src/php-5.0.0/sapi/apache2handler/sapi_apache2.c:551 #9 0x0807d83b in ap_run_handler (r=0x81ed8b0) at config.c:152 #10 0x0807ddbe in ap_invoke_handler (r=0x81ed8b0) at config.c:358 #11 0x0806c98b in ap_process_request (r=0x81ed8b0) at http_request.c:246 #12 0x080686ac in ap_process_http_connection (c=0x81e90c0) at http_core.c:250 #13 0x080874db in ap_run_process_connection (c=0x81e90c0) at connection.c:42 #14 0x0807c31d in child_main (child_num_arg=1076259452) at prefork.c:609 #15 0x0807c42d in make_child (s=0x80dbf18, slot=0) at prefork.c:649 #16 0x0807c4f4 in startup_children (number_to_start=5) at prefork.c:721 #17 0x0807cb5d in ap_mpm_run (_pconf=0x80d97e8, plog=0x81118c8, s=0x0) at prefork.c:940 #18 0x08081f7a in main (argc=2, argv=0xb594) at main.c:617 -- Edit bug report at http://bugs.php.net/?id=29437edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29437r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29437r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29437r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29437r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29437r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29437r=needscript Try newer version: http://bugs.php.net/fix.php?id=29437r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29437r=support Expected behavior: http://bugs.php.net/fix.php?id=29437r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29437r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29437r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29437r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29437r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29437r=dst IIS Stability: http://bugs.php.net/fix.php?id=29437r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29437r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29437r=float
#29432 [Opn-Fbk]: error message when adding an event to calendar
ID: 29432 Updated by: [EMAIL PROTECTED] Reported By: martin at academyx dot com -Status: Open +Status: Feedback Bug Type:Calendar related PHP Version: Irrelevant New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. Previous Comments: [2004-07-28 18:11:22] martin at academyx dot com Description: error message when adding an event to calendar it would not allow me to post a class. no error about incorrect data, etc. -- Edit this bug report at http://bugs.php.net/?id=29432edit=1
#29433 [Opn-Fbk]: The built in function is_callable, does not return false, on unreachable functi
ID: 29433 Updated by: [EMAIL PROTECTED] Reported By: freeload at softhome dot net -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Windows NT/XP PHP Version: 5.0.0 New Comment: 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 Works just fine here. Previous Comments: [2004-07-28 18:22:46] freeload at softhome dot net Description: The built in function is_callable, does not return false, on unreachable functions, like protected and private ones. Reproduce code: --- ?php class test_class { private function test_func1(){} protected function test_func2(){} } $object = new test_class; var_dump(is_callable(array($object,'test_func1'))); echo chr(10); var_dump(is_callable(array($object,'test_func2'))); ? Expected result: bool(false) bool(false) Actual result: -- bool(true) bool(true) -- Edit this bug report at http://bugs.php.net/?id=29433edit=1
#29124 [Fbk-NoF]: imagecreateformjpeg crash.
ID: 29124 Updated by: [EMAIL PROTECTED] Reported By: divx at migraciones dot gov dot ar -Status: Feedback +Status: No Feedback Bug Type: GD related Operating System: linux PHP Version: Irrelevant New Comment: 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. Previous Comments: [2004-07-14 09:43:54] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. [2004-07-13 21:12:20] divx at migraciones dot gov dot ar Description: when i use the function imagecreateformjpeg() with some files its finish without error or return code, just finish the php ejecution. Reproduce code: --- $sarasa = imagecreatefromjpeg($im) or die(error); Expected result: i expect that it works.. . :) -- Edit this bug report at http://bugs.php.net/?id=29124edit=1
#29431 [Opn-Fbk]: pclose() and proc_close() not returning proper exit status
ID: 29431 Updated by: [EMAIL PROTECTED] -Summary: segfault using stream_* with UDP Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Network related -Operating System: all +Operating System: Linux 2.4 -PHP Version: 5CVS-2004-07-28 (dev) +PHP Version: 4.3.7 New Comment: Does it segfault if you disable the sockets extension? (Looking into your script now, but the valgrind output indicates that ext/sockets is still a bad choice) Previous Comments: [2004-07-28 17:31:09] [EMAIL PROTECTED] Description: PHP 5 HEAD segfaults with the given code. Below are URLs with valgrind/gdb output. Reproduce code: --- ? $socket = stream_socket_server(udp://127.0.0.1:13, $errno, $errstr, STREAM_SERVER_BIND); if (!$socket) die($errstr ($errno)); do { $pkt = stream_socket_recvfrom($socket, 1, 0, $peer); stream_socket_sendto($socket, date(D M j H:i:s Y\r\n), 0, $peer); } while ($pkt !== false); ? Actual result: -- http://testes.aborla.net/gdb.txt http://testes.aborla.net/out.pid7736 -- Edit this bug report at http://bugs.php.net/?id=29431edit=1
#29431 [Fbk-Csd]: segfault using stream_* with UDP
ID: 29431 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Closed Bug Type: Network related Operating System: Linux 2.4 PHP Version: 4.3.7 New Comment: Fixed in HEAD. Previous Comments: [2004-07-29 01:00:25] [EMAIL PROTECTED] Does it segfault if you disable the sockets extension? (Looking into your script now, but the valgrind output indicates that ext/sockets is still a bad choice) [2004-07-28 17:31:09] [EMAIL PROTECTED] Description: PHP 5 HEAD segfaults with the given code. Below are URLs with valgrind/gdb output. Reproduce code: --- ? $socket = stream_socket_server(udp://127.0.0.1:13, $errno, $errstr, STREAM_SERVER_BIND); if (!$socket) die($errstr ($errno)); do { $pkt = stream_socket_recvfrom($socket, 1, 0, $peer); stream_socket_sendto($socket, date(D M j H:i:s Y\r\n), 0, $peer); } while ($pkt !== false); ? Actual result: -- http://testes.aborla.net/gdb.txt http://testes.aborla.net/out.pid7736 -- Edit this bug report at http://bugs.php.net/?id=29431edit=1
#29437 [Opn-Csd]: array_walk_recursive causes segfault
ID: 29437 Updated by: [EMAIL PROTECTED] Reported By: misc at sopic dot com -Status: Open +Status: Closed Bug Type: Reproducible crash Operating System: Suse Linux 9.0 PHP Version: 5.0.0 New Comment: 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. Previous Comments: [2004-07-29 00:57:43] misc at sopic dot com Description: Execution of the code below causes Apache 2.0.49 (Prefork) to exit with a segfault. Apache error_log: [Wed Jul 28 23:25:22 2004] [notice] child pid 30256 exit signal Segmentation fault (11) [Wed Jul 28 23:25:23 2004] [notice] child pid 30252 exit signal Segmentation fault (11) [Wed Jul 28 23:25:23 2004] [notice] child pid 32257 exit signal Segmentation fault (11) [Wed Jul 28 23:25:24 2004] [notice] child pid 32314 exit signal Segmentation fault (11) [Wed Jul 28 23:25:25 2004] [notice] child pid 32316 exit signal Segmentation fault (11) './configure' '--with-apxs2=/usr/local/apache2-php5/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-zlib' '--with-xml' '--with-gd' '--with-ttf=/usr' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-mcrypt=/usr' '--enable-calendar' '--enable-bcmath' '--with-dom' '--with-xmlrpc' '--with-gettext' '--with-ftp' '--enable-shared' '--enable-memory-limit' '--with-freetype-dir=/usr' '--with-ldap=/usr' '--disable-short-tags' '--with-dom=/usr' Reproduce code: --- ?php function mysqlEscapeArray ($array) { if (!is_array($array)) { return false; } function my_escape_function ($value, $key) { $value = mysql_escape_string($value); } array_walk_recursive($array, 'my_escape_function'); return true; } $foobar = array('test' = array(foo = Zack's Laptop)); mysqlEscapeArray($foobar); ? Expected result: Array with escaped values Actual result: -- [New Thread 16384 (LWP 9165)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 9165)] 0x401ab05a in _int_malloc () from /lib/i686/libc.so.6 (gdb) bt #0 0x401ab05a in _int_malloc () from /lib/i686/libc.so.6 #1 0x401aa06c in malloc () from /lib/i686/libc.so.6 #2 0x403f34e6 in _emalloc (size=256) at /usr/local/src/php-5.0.0/Zend/zend_alloc.c:182 #3 0x40406957 in zend_stack_init (stack=0x404cd2dc) at /usr/local/src/php-5.0.0/Zend/zend_stack.c:28 #4 0x403fd9eb in shutdown_executor () at /usr/local/src/php-5.0.0/Zend/zend_execute_API.c:232 #5 0x40408060 in zend_deactivate () at /usr/local/src/php-5.0.0/Zend/zend.c:819 #6 0x403d0e50 in php_request_shutdown (dummy=0x0) at /usr/local/src/php-5.0.0/main/main.c:1212 #7 0x4043b1da in php_apache_request_dtor (r=0x81ed8b0) at /usr/local/src/php-5.0.0/sapi/apache2handler/sapi_apache2.c:435 #8 0x4043b5fd in php_handler (r=0x81ed8b0) at /usr/local/src/php-5.0.0/sapi/apache2handler/sapi_apache2.c:551 #9 0x0807d83b in ap_run_handler (r=0x81ed8b0) at config.c:152 #10 0x0807ddbe in ap_invoke_handler (r=0x81ed8b0) at config.c:358 #11 0x0806c98b in ap_process_request (r=0x81ed8b0) at http_request.c:246 #12 0x080686ac in ap_process_http_connection (c=0x81e90c0) at http_core.c:250 #13 0x080874db in ap_run_process_connection (c=0x81e90c0) at connection.c:42 #14 0x0807c31d in child_main (child_num_arg=1076259452) at prefork.c:609 #15 0x0807c42d in make_child (s=0x80dbf18, slot=0) at prefork.c:649 #16 0x0807c4f4 in startup_children (number_to_start=5) at prefork.c:721 #17 0x0807cb5d in ap_mpm_run (_pconf=0x80d97e8, plog=0x81118c8, s=0x0) at prefork.c:940 #18 0x08081f7a in main (argc=2, argv=0xb594) at main.c:617 -- Edit this bug report at http://bugs.php.net/?id=29437edit=1
#24499 [Com]: Notice: Undefined property: stdClass::
ID: 24499 Comment by: jmaguire123 at hotmail dot com Reported By: wks at wks dot ch Status: Closed Bug Type: Zend Engine 2 problem Operating System: * PHP Version: 5.0.0b1 (beta1) Assigned To: helly New Comment: After I removed (object) from the while loop, everything started working again. Must be my mistake. I guess one does not need to do that anymore. -John Previous Comments: [2004-07-28 23:07:01] jmaguire123 at hotmail dot com I tried the latest CVS snapshot (php5-200407281830.tar.gz)as recommened above but it did not fix my issue. I am still seeing: Undefined property: stdClass::$id Undefined property: stdClass::$name (Using PEAR::DB) with mysql on the back end, here is what I am trying to do: $stmt = SELECT * FROM . CUSTOMER_TABLE; $result = $conn-query($stmt); while ($customer = (object) $result-fetchRow() ) { if ($customer-id == $params['cid']) { $t-set_var(CID_SELECTED, selected); } else { $t-set_var(CID_SELECTED, ); } $t-set_var(CUSTOMER_ID, $customer-id); $t-set_var(CUSTOMER_NAME, $customer-name); } etc.. All of the above code worked fine in PHP 4.3.7 (and still does--I checked). Broken in PHP 5 (and page goes into an infinate loop of notices) Any help is greatly appreciated.. Suggest re-opening this bug report. -John [2003-07-21 07:13:38] [EMAIL PROTECTED] This bug has been fixed in CVS. In case this was a PHP problem, 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/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. [2003-07-20 12:18:36] [EMAIL PROTECTED] This affects more than ext/pgsql. some internal facility is wrong it seems. [2003-07-10 08:53:05] wks at wks dot ch I've just changed the status from documentation to crash 'cause that's what it does. In more details: $this-id is a private variable of the class Id $id-id is a propertie of a PostgreSQL object php 5.0.0b1 is unable to dereference the $id-id property of the $id PostgreSQL object ! [2003-07-05 07:25:26] wks at wks dot ch There's unfortunately been added a note by someone who hasn't understood the problem at all. $this-id is a private variable of the class Id $id-id is a propertie of a PostgreSQL object php 5.0.0b1 is unable to derive the $id-id property of the $id PostgreSQL object ! 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/24499 -- Edit this bug report at http://bugs.php.net/?id=24499edit=1
#29438 [NEW]: files missing from src tarball
From: jmichae3 at yahoo dot com Operating system: win32 PHP version: 4.3.8 PHP Bug Type: *General Issues Bug description: files missing from src tarball Description: arpa/ directory isn't included in the source distribution tarball. This prevents VC++ compilation of things like arpa/inet.h, which is required by nearly everything. No documentation is included with the source dist that explains how to build the project (it doesn't compile out-of-the-box), or where to obtain the required extra libraries (such as zlib). fastcgi project is missing in v5.0.0 zend project isn't found properly in v5.0.0 Actual result: -- I also get the following errors trying to compile the project: c:\prj\php-4.3.8\ext\bz2\php_bz2.h(28) : fatal error C1083: Cannot open include file: 'bzlib.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory C:\prj\php-4.3.8\ext\curl\curl.c(40) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory LINK : fatal error LNK1104: cannot open file php4ts_debug.lib c:\prj\php-4.3.8\ext\dba\dba_db3.c(35) : fatal error C1083: Cannot open include file: 'db.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\ext\domxml\php_domxml.h(25) : fatal error C1083: Cannot open include file: 'libxml/parser.h': No such file or directory C:\prj\php-4.3.8\ext\dotnet\dotnet.cpp(46) : fatal error C1083: Cannot open include file: 'Mscoree.h': No such file or directory C:\prj\php-4.3.8\ext\fbsql\php_fbsql.h(35) : fatal error C1083: Cannot open include file: 'FBCAccess/FBCAccess.h': No such file or directory c:\prj\php-4.3.8\ext\fdf\php_fdf.h(33) : fatal error C1083: Cannot open include file: 'FdfTk.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gd_gd2.c(21) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gd_jpeg.c(42) : fatal error C1083: Cannot open include file: 'jpeglib.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gd_png.c(10) : fatal error C1083: Cannot open include file: 'png.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gdft.c(63) : fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory c:\prj\php-4.3.8\ext\gettext\gettext.c(30) : fatal error C1083: Cannot open include file: 'libintl.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\ext\iconv\iconv.c(42) : fatal error C1083: Cannot open include file: 'iconv.h': No such file or directory fatal error C1083: Cannot open source file: 'C:\prj\php-4.3.8\ext\informix\ifx.c': No such file or directory C:\prj\php-4.3.8\ext\imap\php_imap.h(39) : fatal error C1083: Cannot open include file: 'c-client.h': No such file or directory c:\prj\php-4.3.8\ext\ingres_ii\ii.h(29) : fatal error C1083: Cannot open include file: 'iiapi.h': No such file or directory ..\..\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\ext\ldap\php_ldap.h(27) : fatal error C1083: Cannot open include file: 'lber.h': No such file or directory C:\prj\php-4.3.8\ext\mcrypt\mcrypt.c(34) : fatal error C1083: Cannot open include file: 'mcrypt.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory C:\prj\php-4.3.8\ext\notes\php_notes.c(29) : fatal error C1083: Cannot open include file: 'php.h': No such file or directory c:\prj\php-4.3.8\ext\oci8\php_oci8.h(52) : fatal error C1083: Cannot open include file: 'oci.h': No such file or directory c:\prj\php-4.3.8\ext\openssl\php_openssl.h(82) : fatal error C1083: Cannot open include file: 'openssl/ssl.h': No such file or directory C:\prj\php-4.3.8\ext\oracle\php_oracle.h(22) : fatal error C1083: Cannot open include file: 'oratypes.h': No such file or directory c:\prj\php-4.3.8\ext\pdf\php_pdf.h(26) : fatal error C1083: Cannot open include file: 'pdflib.h': No such file or directory C:\prj\php-4.3.8\ext\snmp\snmp.c(85) : fatal error C1083: Cannot open include file: 'asn1.h': No such file or directory C:\prj\php-4.3.8\ext\sybase_ct\php_sybase_ct.h(62) : fatal error C1083: Cannot open include file: 'ctpublic.h': No such file or directory C:\prj\php-4.3.8\ext\xmlrpc\libxmlrpc\encodings.c(51) : fatal error C1083: Cannot open include file: 'iconv.h': No such file or directory c:\prj\php-4.3.8\ext\xslt\php_sablot.h(28) : fatal error C1083: Cannot open include file: 'sablot.h': No such file or directory
#29439 [NEW]: Script encoded with Zend Encoder
From: bmlm at bol dot com dot br Operating system: WinXP and Linux PHP version: 5.0.0 PHP Bug Type: Scripting Engine problem Bug description: Script encoded with Zend Encoder Description: The scripts encoded with Zend Encoder in PHP5 disable the global variables: $_ENV and $_SERVER. OBS.: Only in encoded scripts. Using PHP5 Release and Zend Optimizer 2.5.3 Reproduce code: --- ? $arr = get_defined_vars(); print_r($arr); ? Expected result: Array ( [GLOBALS] = Array ( [_POST] = Array ( ) [_GET] = Array ( ) [_COOKIE] = Array ( ) [_FILES] = Array ( ) [_SERVER] = Array ( [HTTP_ACCEPT_ENCODING] = gzip, deflate [HTTP_ACCEPT_LANGUAGE] = pt-br [HTTP_CONNECTION] = Keep-Alive [HTTP_HOST] = localhost [REDIRECT_STATUS] = 200 [ORIG_PATH_INFO] = /index.php [ORIG_SCRIPT_NAME] = /php/php.exe [ORIG_SCRIPT_FILENAME] = /projetos/infra/php/php.exe [PHP_SELF] = /index.php etc... ) ) ) Actual result: -- Array ( [GLOBALS] = Array ( [_POST] = Array ( ) [_GET] = Array ( ) [_COOKIE] = Array ( ) [_FILES] = Array ( ) [arr] = Array ( ) ) ) -- Edit bug report at http://bugs.php.net/?id=29439edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29439r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29439r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29439r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29439r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29439r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29439r=needscript Try newer version: http://bugs.php.net/fix.php?id=29439r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29439r=support Expected behavior: http://bugs.php.net/fix.php?id=29439r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29439r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29439r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29439r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29439r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29439r=dst IIS Stability: http://bugs.php.net/fix.php?id=29439r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29439r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29439r=float
#28158 [Com]: Can't declare function protected in interface
ID: 28158 Comment by: ah08010-zend at yahoo dot com Reported By: dcahh at gmx dot de Status: Bogus Bug Type: Class/Object related Operating System: XP Pro PHP Version: 5CVS-2004-04-26 (dev) New Comment: Interfaces need, at a minimum, the ability to regulate the default public interface of their implementors. This includes specifically UNpublicizing the default public methods: __(con|de)struct, __call, __get, __set, etc. Even if the interface vs. abstract class is valid, it should still be possible to mark __construct as private for e.g., Singleton behavior. =Austin Previous Comments: [2004-04-26 17:43:48] dcahh at gmx dot de Yes, but is it correct that one can not declare a protected function in an abstract class as long as same implements an interface? [2004-04-26 17:34:41] [EMAIL PROTECTED] interfaces are, by definition, public. Abstract classes are not the same as interfaces. [2004-04-26 15:44:22] dcahh at gmx dot de Description: I can't have an abstract class provide it's functions protected to it's child classes, since I'm able to declare only public functions within an interface. Reproduce code: --- ?php interface AnyClassInterface { protected function doSomething ($sTest); } abstract class AnyClassAbstract { protected function doSomething ($sTest) { echo $sTest; } } class AnyClass { public funtion __construct() { $this-doSomething ('Hello World'); } } $oAnyObject = new AnyClass(); ? Expected result: One should be able to declare a function in an interface to be protected, so that classes extending the abstract class, which is implementing the interface is able to provide it's functions only to child-classes and to protect them from foreign classes. Actual result: -- Fatal error: Access type for interface method AnyClassInterface::doSomething() must be omitted or declared public in D:\apache-webroot\test\testphp\php5.php on line 5 -- Edit this bug report at http://bugs.php.net/?id=28158edit=1
#29439 [Opn-Bgs]: Script encoded with Zend Encoder
ID: 29439 Updated by: [EMAIL PROTECTED] Reported By: bmlm at bol dot com dot br -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: WinXP and Linux PHP Version: 5.0.0 New Comment: Visit http://www.zend.com/support/ for problems with Zend products. Previous Comments: [2004-07-29 03:18:12] bmlm at bol dot com dot br Description: The scripts encoded with Zend Encoder in PHP5 disable the global variables: $_ENV and $_SERVER. OBS.: Only in encoded scripts. Using PHP5 Release and Zend Optimizer 2.5.3 Reproduce code: --- ? $arr = get_defined_vars(); print_r($arr); ? Expected result: Array ( [GLOBALS] = Array ( [_POST] = Array ( ) [_GET] = Array ( ) [_COOKIE] = Array ( ) [_FILES] = Array ( ) [_SERVER] = Array ( [HTTP_ACCEPT_ENCODING] = gzip, deflate [HTTP_ACCEPT_LANGUAGE] = pt-br [HTTP_CONNECTION] = Keep-Alive [HTTP_HOST] = localhost [REDIRECT_STATUS] = 200 [ORIG_PATH_INFO] = /index.php [ORIG_SCRIPT_NAME] = /php/php.exe [ORIG_SCRIPT_FILENAME] = /projetos/infra/php/php.exe [PHP_SELF] = /index.php etc... ) ) ) Actual result: -- Array ( [GLOBALS] = Array ( [_POST] = Array ( ) [_GET] = Array ( ) [_COOKIE] = Array ( ) [_FILES] = Array ( ) [arr] = Array ( ) ) ) -- Edit this bug report at http://bugs.php.net/?id=29439edit=1
#28988 [Com]: Syslog NOT logging Errors to the Event Viewer
ID: 28988 Comment by: msisolak at yahoo dot com Reported By: mgilbert at kcm dot org Status: Open Bug Type: IIS related Operating System: Windows Server 2003 PHP Version: 4.3.7 New Comment: It sounds like the tighter security settings of Server 2003 are blocking the event logging requests when run from within IIS. Here is a pretty good summary of the issue and how to configure your server so that the IUSR account has Event Viewer write permissions: http://groups.google.com/groups?selm=522a7f75.0401211515.21e9d40e%40posting.google.com There is also this basic summary of the issues from Microsoft: http://support.microsoft.com/default.aspx?scid=kb;en-us;323076 Previous Comments: [2004-07-28 21:33:31] mgilbert at kcm dot org OK We just tried the test. I wrote a simple PHP script that logs and event and echos the message to the screen. When we run that PHP script from the command line interface it loggs the event to the event viewer. When we run the same script from a Web Browser it does not logg the event to the event viewer. We have checked all of the security settings, in fact temporarily they gave IIS Admin privaliges and it still did not logg to the event viewer. [2004-07-27 23:06:13] mgilbert at kcm dot org I am working with one of our guys in our DCAT dept to test this (I do not have admin rights). I will let you know the results. Thank you for responding [2004-07-27 17:58:19] msisolak at yahoo dot com If you run a script with the code snippet you have interactively from a command prompt (logged in as a Administrator user) is it able to write to the Event Log? [2004-07-01 22:47:28] mgilbert at kcm dot org Description: This error was orrigionally logged at an IIS forum. The Forum administrator had the same problem and sugested that we logg this error on the PHP web site. Below is some of the text from our origional message. This is the link to the origional message: http://www.iis-resources.com/modules/newbb/viewtopic.php?topic_id=1560forum=5 We recently migrated a website from Windows 2000 to Windows 2003 using the iis 6.0 Migration tool provided by Microsoft. PHP is installed and seems to work fine with the exception of a challenge one of my developers approached me with recently. This function works fine on Windows 2000, but doesn't on Windows 2003. He has some code to log errors to the system event log but the events are not getting logged. We have logging enabled in the PHP.ini : ; Log errors to syslog (Event Log on NT, not valid in Windows 95). error_log = syslog I've attempted giving IUSR_website account more permissions on the box (including administrative rights for a very short period of time to make sure that NTFS permissions are not blocking anything) Any information you could provide would be greatly appreciated. Thanks, Reproduce code: --- if ($priority ) { openlog(Website, LOG_ODELAY, LOG_USER); syslog($priority, $error_log); closelog(); } Expected result: It should log an event in the event Windows Event Viewer. Actual result: -- Did not log the event. -- Edit this bug report at http://bugs.php.net/?id=28988edit=1
#28988 [Opn-Fbk]: Syslog NOT logging Errors to the Event Viewer
ID: 28988 Updated by: [EMAIL PROTECTED] Reported By: mgilbert at kcm dot org -Status: Open +Status: Feedback Bug Type: IIS related Operating System: Windows Server 2003 PHP Version: 4.3.7 New Comment: 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 I fixed some thread safety issues with the syslog emulation we use on win32. Please try the next PHP 5.1 (unstable) snapshot dated after this message; if you report the issue as resolved, we can investigate back-porting the changes. Previous Comments: [2004-07-29 05:02:24] msisolak at yahoo dot com It sounds like the tighter security settings of Server 2003 are blocking the event logging requests when run from within IIS. Here is a pretty good summary of the issue and how to configure your server so that the IUSR account has Event Viewer write permissions: http://groups.google.com/groups?selm=522a7f75.0401211515.21e9d40e%40posting.google.com There is also this basic summary of the issues from Microsoft: http://support.microsoft.com/default.aspx?scid=kb;en-us;323076 [2004-07-28 21:33:31] mgilbert at kcm dot org OK We just tried the test. I wrote a simple PHP script that logs and event and echos the message to the screen. When we run that PHP script from the command line interface it loggs the event to the event viewer. When we run the same script from a Web Browser it does not logg the event to the event viewer. We have checked all of the security settings, in fact temporarily they gave IIS Admin privaliges and it still did not logg to the event viewer. [2004-07-27 23:06:13] mgilbert at kcm dot org I am working with one of our guys in our DCAT dept to test this (I do not have admin rights). I will let you know the results. Thank you for responding [2004-07-27 17:58:19] msisolak at yahoo dot com If you run a script with the code snippet you have interactively from a command prompt (logged in as a Administrator user) is it able to write to the Event Log? [2004-07-01 22:47:28] mgilbert at kcm dot org Description: This error was orrigionally logged at an IIS forum. The Forum administrator had the same problem and sugested that we logg this error on the PHP web site. Below is some of the text from our origional message. This is the link to the origional message: http://www.iis-resources.com/modules/newbb/viewtopic.php?topic_id=1560forum=5 We recently migrated a website from Windows 2000 to Windows 2003 using the iis 6.0 Migration tool provided by Microsoft. PHP is installed and seems to work fine with the exception of a challenge one of my developers approached me with recently. This function works fine on Windows 2000, but doesn't on Windows 2003. He has some code to log errors to the system event log but the events are not getting logged. We have logging enabled in the PHP.ini : ; Log errors to syslog (Event Log on NT, not valid in Windows 95). error_log = syslog I've attempted giving IUSR_website account more permissions on the box (including administrative rights for a very short period of time to make sure that NTFS permissions are not blocking anything) Any information you could provide would be greatly appreciated. Thanks, Reproduce code: --- if ($priority ) { openlog(Website, LOG_ODELAY, LOG_USER); syslog($priority, $error_log); closelog(); } Expected result: It should log an event in the event Windows Event Viewer. Actual result: -- Did not log the event. -- Edit this bug report at http://bugs.php.net/?id=28988edit=1
#28988 [Fbk]: Syslog NOT logging Errors to the Event Viewer
ID: 28988 Updated by: [EMAIL PROTECTED] Reported By: mgilbert at kcm dot org Status: Feedback Bug Type: IIS related Operating System: Windows Server 2003 PHP Version: 4.3.7 New Comment: Of course, it could just be tighter security; check that first, but be warned that there are some thread safety issues in the syslog implementation in all current stable releases of PHP. Previous Comments: [2004-07-29 05:03:11] [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 I fixed some thread safety issues with the syslog emulation we use on win32. Please try the next PHP 5.1 (unstable) snapshot dated after this message; if you report the issue as resolved, we can investigate back-porting the changes. [2004-07-29 05:02:24] msisolak at yahoo dot com It sounds like the tighter security settings of Server 2003 are blocking the event logging requests when run from within IIS. Here is a pretty good summary of the issue and how to configure your server so that the IUSR account has Event Viewer write permissions: http://groups.google.com/groups?selm=522a7f75.0401211515.21e9d40e%40posting.google.com There is also this basic summary of the issues from Microsoft: http://support.microsoft.com/default.aspx?scid=kb;en-us;323076 [2004-07-28 21:33:31] mgilbert at kcm dot org OK We just tried the test. I wrote a simple PHP script that logs and event and echos the message to the screen. When we run that PHP script from the command line interface it loggs the event to the event viewer. When we run the same script from a Web Browser it does not logg the event to the event viewer. We have checked all of the security settings, in fact temporarily they gave IIS Admin privaliges and it still did not logg to the event viewer. [2004-07-27 23:06:13] mgilbert at kcm dot org I am working with one of our guys in our DCAT dept to test this (I do not have admin rights). I will let you know the results. Thank you for responding [2004-07-27 17:58:19] msisolak at yahoo dot com If you run a script with the code snippet you have interactively from a command prompt (logged in as a Administrator user) is it able to write to the Event Log? 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/28988 -- Edit this bug report at http://bugs.php.net/?id=28988edit=1
#29438 [Opn-Bgs]: files missing from src tarball
ID: 29438 Updated by: [EMAIL PROTECTED] Reported By: jmichae3 at yahoo dot com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: win32 PHP Version: 4.3.8 New Comment: You didn't do your reasearch well enough: PHP 5 souce contains README.WIN32-BUILD-SYSTEM PHP manual includes: http://www.php.net/manual/en/install.windows.php#install.windows.build Previous Comments: [2004-07-29 03:13:47] jmichae3 at yahoo dot com Description: arpa/ directory isn't included in the source distribution tarball. This prevents VC++ compilation of things like arpa/inet.h, which is required by nearly everything. No documentation is included with the source dist that explains how to build the project (it doesn't compile out-of-the-box), or where to obtain the required extra libraries (such as zlib). fastcgi project is missing in v5.0.0 zend project isn't found properly in v5.0.0 Actual result: -- I also get the following errors trying to compile the project: c:\prj\php-4.3.8\ext\bz2\php_bz2.h(28) : fatal error C1083: Cannot open include file: 'bzlib.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory C:\prj\php-4.3.8\ext\curl\curl.c(40) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory LINK : fatal error LNK1104: cannot open file php4ts_debug.lib c:\prj\php-4.3.8\ext\dba\dba_db3.c(35) : fatal error C1083: Cannot open include file: 'db.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\ext\domxml\php_domxml.h(25) : fatal error C1083: Cannot open include file: 'libxml/parser.h': No such file or directory C:\prj\php-4.3.8\ext\dotnet\dotnet.cpp(46) : fatal error C1083: Cannot open include file: 'Mscoree.h': No such file or directory C:\prj\php-4.3.8\ext\fbsql\php_fbsql.h(35) : fatal error C1083: Cannot open include file: 'FBCAccess/FBCAccess.h': No such file or directory c:\prj\php-4.3.8\ext\fdf\php_fdf.h(33) : fatal error C1083: Cannot open include file: 'FdfTk.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gd_gd2.c(21) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gd_jpeg.c(42) : fatal error C1083: Cannot open include file: 'jpeglib.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gd_png.c(10) : fatal error C1083: Cannot open include file: 'png.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gdft.c(63) : fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory c:\prj\php-4.3.8\ext\gettext\gettext.c(30) : fatal error C1083: Cannot open include file: 'libintl.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\ext\iconv\iconv.c(42) : fatal error C1083: Cannot open include file: 'iconv.h': No such file or directory fatal error C1083: Cannot open source file: 'C:\prj\php-4.3.8\ext\informix\ifx.c': No such file or directory C:\prj\php-4.3.8\ext\imap\php_imap.h(39) : fatal error C1083: Cannot open include file: 'c-client.h': No such file or directory c:\prj\php-4.3.8\ext\ingres_ii\ii.h(29) : fatal error C1083: Cannot open include file: 'iiapi.h': No such file or directory ..\..\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\ext\ldap\php_ldap.h(27) : fatal error C1083: Cannot open include file: 'lber.h': No such file or directory C:\prj\php-4.3.8\ext\mcrypt\mcrypt.c(34) : fatal error C1083: Cannot open include file: 'mcrypt.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory C:\prj\php-4.3.8\ext\notes\php_notes.c(29) : fatal error C1083: Cannot open include file: 'php.h': No such file or directory c:\prj\php-4.3.8\ext\oci8\php_oci8.h(52) : fatal error C1083: Cannot open include file: 'oci.h': No such file or directory c:\prj\php-4.3.8\ext\openssl\php_openssl.h(82) : fatal error C1083: Cannot open include file: 'openssl/ssl.h': No such file or directory C:\prj\php-4.3.8\ext\oracle\php_oracle.h(22) : fatal error C1083: Cannot open include file: 'oratypes.h': No such file or directory c:\prj\php-4.3.8\ext\pdf\php_pdf.h(26) : fatal error C1083: Cannot open include file: 'pdflib.h': No such file or directory C:\prj\php-4.3.8\ext\snmp\snmp.c(85) : fatal error C1083: Cannot open include file: 'asn1.h': No such file or directory
#28425 [Asn-Fbk]: microtime returns old system time
ID: 28425 Updated by: [EMAIL PROTECTED] Reported By: bela at up2you dot se -Status: Assigned +Status: Feedback Bug Type: Date/time related Operating System: XP professional PHP Version: 4.3.6 Assigned To: wez New Comment: 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 ok, so maybe it took longer than a week... Please try next PHP 5.1 (unstable) snapshot dated after this message. If you confirm that it is working correctly, we can look into back-porting the fix to PHP 4.3. Previous Comments: [2004-05-18 01:21:53] [EMAIL PROTECTED] There are some nasty static variables in use in our gettimeofday() implementation. I've a feeling that the fix would be something that will only work in win98 and higher, so it might not be possible to fix in PHP 4.3.x, but be fair game for PHP 5. Assigning to myself; I'll look at it later in the week. [2004-05-18 00:02:33] bela at up2you dot se Description: microtime() is not affected after changing the system time. The bug is verified on IIS and PHP4isapi.dll. The only way to get right system time is to restart the IIS server. The example shows when changing system time from 23:48:13 to 23:38:13. Reproduce code: --- ?php header(Content-type: text/plain); list($usec, $sec) = explode( , microtime()); print date(Y-m-d H:i:s, $sec) . \r\n; print date(Y-m-d H:i:s, time()); ? Expected result: 2004-05-17 23:38:13 2004-05-17 23:38:13 Actual result: -- 2004-05-17 23:48:13 2004-05-17 23:38:13 -- Edit this bug report at http://bugs.php.net/?id=28425edit=1
#29171 [Opn-Bgs]: Do not fetch TimeStamp variable
ID: 29171 Updated by: [EMAIL PROTECTED] Reported By: alain at samoun dot com -Status: Open +Status: Bogus Bug Type: COM related Operating System: windows XP Pro PHP Version: 5.0.0 New Comment: This is intended behaviour. It's better for you this way :-) Previous Comments: [2004-07-26 17:22:24] msisolak at yahoo dot com This appears to be an issue with how ADOdb interacts with the new Variant object in PHP5 (not using variant_date_to_timestamp when pulling in a date value). See follow-up in ADOdb forum: http://phplens.com/lens/lensforum/msgs.php?id=10253 [2004-07-15 01:35:39] alain at samoun dot com Description: Problem getting TimeStamp data from Access database XP Pro - PHP 5.0.0 ADODB 2.7 Seems to be a casting problem: Instead of getting for example: 7/7/2004 4:58:10 PM (A Date/Time data type in Access) we get no data in PHP 5. PHP4.3 gets it correctly. Reproduce code: --- ?PHP $table= FORM_ID_274274176; #Initialize the Database include(adodb.inc.php); include(adodb-exceptions.inc.php); #Catch exeptions in PHP5 include(tohtml.inc.php); $db = ADONewConnection(ado_access); #Access database $access = 'C:\Program files\forms3\forms32k.mdb'; $myDSN='PROVIDER=Microsoft.Jet.OLEDB.4.0;' . 'DATA SOURCE=' . $access . ';'; //. 'USER ID=;PASSWORD=;'; @$db-pConnect($myDSN, , , ); #Query Access $query = SELECT TimeStamp,A,B FROM $table where A ='TOYOTA'; $result = $db-Execute($query) or die(Error in query: $query. . $db-ErrorMsg()); echo rs2html($result); ? Expected result: TimeStamp A B 7/7/2004 4:58:10 PM TOYOTA NISSAN 7/7/2004 4:59:00 PM TOYOTA 2 Actual result: -- TimeStamp A B Thu 01, Jan 1970TOYOTA NISSAN Thu 01, Jan 1970TOYOTA Note the actual value for the TimeStamp variable is 0, I suppose the Thu 01, Jan 1970 is a default? -- Edit this bug report at http://bugs.php.net/?id=29171edit=1
#28736 [Opn]: Uncaught exception 'com_exception'
ID: 28736 Updated by: [EMAIL PROTECTED] Reported By: andy at advancethermal dot com Status: Open Bug Type: COM related Operating System: WindowsXP PHP Version: 5CVS-2004-06-10 (dev) New Comment: bhobbs at itos dot uga dot edu: Please open a separate report for your issue; if you can, please determine the IDL for that COM object. (this might help: http://www.php.net/com_print_typeinfo) andy at advancethermal dot com: $creport-DiscardSavedData(); // method calls have () in PHP Marking this report as bogus since it contains no usable information about a PHP bug. Previous Comments: [2004-06-15 14:28:34] bhobbs at itos dot uga dot edu I have also had this issue. Win2K Server Apache 2.0.49 PHP 5.0.0 RC3 $oMapDoc = new COM(Autodesk.MapWindowFile) or die(Unable to instantiate a MapWindowFile object); ($bDATValidate) ? $oMapDoc-ValidateMwx = true : $oMapDoc-ValidateMwx = false; ($bDATCompress) ? $oMapDoc-CompressMlf = true : $oMapDoc-CompressMlf = false; $oMapDoc-ReadFromMwx($sMWXFilenam); ($sPermMWFFilenam = tempnam( $sOutputdir, mlf_ )) ? true : die(Unable to generate an output file name); unlink($sPermMWFFilenam); //It drops the temp file in place whether you use it or not $sPermMWFFilenam = str_replace(.tmp, .mlf, $sPermMWFFilenam); //print($sPermMWFFilenam .. $sGroupname .. $sLayername); $oMapDoc-WriteToMlf($sPermMWFFilenam, $sGroupname, $sLayername); // --This is the line that fails I'm not me tooing (I hope). The COM object in question is the Autodesk MapGuide Dynamic Authoring Toolkit. The call to instantiate, set a couple of properties and read a file work fine, but the call to create a new file (the WriteToMlf() call) fails with com_exception, source: unknown description: unknown. Catching the exception yeilds zero usable information. I tried casting the input values as VT_BSTR, VT_UNKNOWN and VT_VARIANT, but nothing worked. It should be noted that there is a similar method called WriteToMwf() that takes a single argument, and it works fine. While I'm at it, there's a method called WriteToMwfStream() that returns a binary array, but I can't get to it. Let me know and I'll see if I can dig up the idf for this thing. Brantley [2004-06-10 23:19:18] andy at advancethermal dot com Description: COM handling in php5-win32-200406101030 is failing where it works without error in 4.3.7. For CrystalRunTime.Application, it is crashing with the following commands: $creport-DiscardSavedData; (in example below) $creport-ReadRecords(); $creport-Export(false); Reproduce code: --- $crapp = new COM(CrystalRunTime.Application); $creport = $crapp-OpenReport(c:\\myweb\\reports\\myreport.rpt, 1); $creport-DiscardSavedData; Expected result: (no failure expected) Actual result: -- Fatal error: Uncaught exception 'com_exception' with message 'Error Member not found. ' in C:\myweb\htdocs\printlib.php:3 Stack trace: #0 C:\myweb\htdocs\faxcoverpage.php(26): PrintReport('myreport.rpt', '0', 'myreport', '', 'printmyreport.ph...', 'portrait', '1', Array) #1 {main} thrown in C:\myweb\htdocs\printlib.php on line 3 -- Edit this bug report at http://bugs.php.net/?id=28736edit=1
#29418 [Opn-Fbk]: OpenSSL mysteriously makes PHP segfault
ID: 29418 Updated by: [EMAIL PROTECTED] Reported By: sartre at gmail dot com -Status: Open +Status: Feedback Bug Type: OpenSSL related Operating System: Linux (Slackware 10.0) PHP Version: 4.3.8 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. Previous Comments: [2004-07-28 05:26:02] sartre at gmail dot com Description: (using PHP 4.3.8 as the standalone executable, OpenSSL 0.9.7d) I was writing a regression script for testing my script but when signing a certificate with a CA I stumbled upon an unending delay (self-signed first and then signed against the generated CA in the same script). The PHP executable (I am not running apache) does not always reproduce the segfault. The *error* (forced in the script): The client uses the same private key as the CA. PS: It's my first time using OpenSSL in PHP, and I do not understand most of it, but I didn't expect to get a segfault. Reproduce code: --- $key = openssl_pkey_new (); $csr = openssl_csr_new ($dn, $key); openssl_csr_export ($csr, $csr_exported); $csr_signed = openssl_csr_sign ($csr, NULL, $key, 365); openssl_x509_export ($csr_signed, $x509_exported); openssl_pkey_export ($key, $key_exported, ''); $key_public = openssl_pkey_get_public ($x509_exported); $struct = openssl_x509_parse ($x509_exported); // set $dn to other value $cert_ca = openssl_x509_read ($x509_exported); $cert_cakey = openssl_pkey_get_private ($cert_client); $client_csr = openssl_csr_new ($dn, $cert_cakey); openssl_csr_export ($client_csr, $client_csr_exported); // here! openssl_csr_sign ($client_csr, $cert_ca, $cert_cakey, 365); // (I cannot continue) Expected result: Segfault Actual result: -- #0 0x40536bff in mallopt () from /lib/libc.so.6 #1 0x40535a2f in free () from /lib/libc.so.6 #2 0x08189e7d in shutdown_memory_manager () #3 0x0816e470 in php_request_shutdown () #4 0x081a82c0 in main () (I expected to see any SSL function called) -- Edit this bug report at http://bugs.php.net/?id=29418edit=1
#29410 [Opn-WFx]: Setting of allow_furl_open_wrapper by users script
ID: 29410 Updated by: [EMAIL PROTECTED] Reported By: anders at schlund dot de -Status: Open +Status: Wont fix Bug Type: Feature/Change Request Operating System: Linux PHP Version: Irrelevant New Comment: Sorry, this won't happen. Previous Comments: [2004-07-27 17:46:12] anders at schlund dot de Description: The furl-wrapper enables script to open and include data from remote sites by opening an URL to that data. It is a very powerful and sometimes extremly useful extension for PHP, so almost no web host disables this feature. On the other hand, there are very often cases where insecure written scripts allow e.g. inclusion of config files from remote sites by handing a specially crafted parameter to the script. Although this is an insecurity in those scripts and not in PHP, PHP can help to change exploiting those scripts. Currently, allow_furl_open_wrapper is a system- configurable variable, i.e. the system administrator decides that all users are allowed to use this function. If the admin disables this feature, not a single user can use it. As the feature is useful to many 'power' users, disabling this feature is usually out of the question. Idea: change the variable allow_furl_open_wrapper to become a tri-state variable, e.g. the values On, Off and User. The 'user'-setting means that the function is initially disabled, but a user's php.ini or a special php-call from the user's script can enable this function. That way, a script usually runs a safe environment and can enable the potentially dangerous function when it thinks it does really require usage of the furl_open_wrapper. Reproduce code: --- n/a Expected result: n/a Actual result: -- n/a -- Edit this bug report at http://bugs.php.net/?id=29410edit=1
#29418 [Fbk-Opn]: OpenSSL mysteriously makes PHP segfault
ID: 29418 User updated by: sartre at gmail dot com Reported By: sartre at gmail dot com -Status: Feedback +Status: Open Bug Type: OpenSSL related Operating System: Linux (Slackware 10.0) PHP Version: 4.3.8 New Comment: There's a backtrace in the 'actual result' field.. Mysteriously it did not contain *any* zend routine. Whether this may or may not be a scripting bug, I (nor would any of we) didn't expect PHP to segfault (that's why I posted that). Thanks! Previous Comments: [2004-07-29 05:45:53] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. [2004-07-28 05:26:02] sartre at gmail dot com Description: (using PHP 4.3.8 as the standalone executable, OpenSSL 0.9.7d) I was writing a regression script for testing my script but when signing a certificate with a CA I stumbled upon an unending delay (self-signed first and then signed against the generated CA in the same script). The PHP executable (I am not running apache) does not always reproduce the segfault. The *error* (forced in the script): The client uses the same private key as the CA. PS: It's my first time using OpenSSL in PHP, and I do not understand most of it, but I didn't expect to get a segfault. Reproduce code: --- $key = openssl_pkey_new (); $csr = openssl_csr_new ($dn, $key); openssl_csr_export ($csr, $csr_exported); $csr_signed = openssl_csr_sign ($csr, NULL, $key, 365); openssl_x509_export ($csr_signed, $x509_exported); openssl_pkey_export ($key, $key_exported, ''); $key_public = openssl_pkey_get_public ($x509_exported); $struct = openssl_x509_parse ($x509_exported); // set $dn to other value $cert_ca = openssl_x509_read ($x509_exported); $cert_cakey = openssl_pkey_get_private ($cert_client); $client_csr = openssl_csr_new ($dn, $cert_cakey); openssl_csr_export ($client_csr, $client_csr_exported); // here! openssl_csr_sign ($client_csr, $cert_ca, $cert_cakey, 365); // (I cannot continue) Expected result: Segfault Actual result: -- #0 0x40536bff in mallopt () from /lib/libc.so.6 #1 0x40535a2f in free () from /lib/libc.so.6 #2 0x08189e7d in shutdown_memory_manager () #3 0x0816e470 in php_request_shutdown () #4 0x081a82c0 in main () (I expected to see any SSL function called) -- Edit this bug report at http://bugs.php.net/?id=29418edit=1
#29434 [Opn-Fbk]: Unable to connect to SQL server2000
ID: 29434 Updated by: [EMAIL PROTECTED] Reported By: rjahanzeb at computer dot org -Status: Open +Status: Feedback Bug Type: MSSQL related Operating System: win2k PHP Version: 4.3.7 New Comment: The SSL on the web server does not change anything with respect to the communication between the two servers. That's between the web server and the browser. Can you connect from the production php server using Query Analizer? This should be your first test. It sounds like a configuration problem. You should use 'Client Network Utility' to specify host and server configurations. If the server name you are using is unresolved it will not be possible to do a connection. Previous Comments: [2004-07-28 22:09:54] rjahanzeb at computer dot org I have two development servers one that runs PHP (and JSP) and one that runs MSSQL Server. I have two production servers, one that runs PHP (and JSP) and one that runs MSSQL Server cluster. The development PHP server can successfully connect to the development MSSQL server with both PHP and JSP. The production PHP server can successfully connect to the development MSSQL server with both PHP and JSP. The production PHP server can successfully connect to the production MSSQL server using JSP but not PHP. In all cases the database username, password and database connection details are the same. The php.ini files are the same on the development and production PHP servers. Webserver on production server has SSL. Error I get is Warning: mssql_connect(): Unable to connect to server: (servername) Note two things are different. One of the database server is a cluster and one of the production server has SSL. [2004-07-28 21:36:46] [EMAIL PROTECTED] Please provide more information about your setup and the error/warning messages you are getting. The PHP extension uses the TDS protocol on port 1433 or netbios over TCP/IP to communicate with the server. [2004-07-28 21:06:42] rjahanzeb at computer dot org Description: I am unable to connect to SQL Server 2000 from the server which has SSL Certificate installed via PHP. I can connect to the same database using JSP from the same server. I have made following changes to default php.ini -uncomment the mssql.dll extension -change the extension_dir -and set register_global to on. Is there an issue with PHP connecting to SQL Server over SSL? -- Edit this bug report at http://bugs.php.net/?id=29434edit=1