#44791 [Opn->Ana]: pg_execute() works with boolean params and "true" but not with "false"
ID: 44791 Updated by: [EMAIL PROTECTED] Reported By: php at benjaminschulz dot com -Status: Open +Status: Analyzed Bug Type: PostgreSQL related Operating System: osx PHP Version: 5.3CVS-2008-04-21 (CVS) New Comment: The problem is due to the way the casting is done internally: SEPARATE_ZVAL(tmp); convert_to_string_ex(tmp); if (Z_TYPE_PP(tmp) != IS_STRING) { php_error_docref(NULL TSRMLS_CC, E_WARNING,"Error converting parameter"); _php_pgsql_free_params(params, num_params); RETURN_FALSE; } It could be improved by testing the variable type prior to convert. However I'm not sure if it is desired or if it has some bad side effects like BC breaks. Previous Comments: [2008-04-21 09:14:38] php at benjaminschulz dot com Description: Binding a boolean "false" to a statement doesn't work. Reproduce code: --- $result = pg_prepare($dbconn, "my_query", 'SELECT * FROM test WHERE boolfield = $1'); $result = pg_execute($dbconn, "my_query", array(true)); // works $result = pg_execute($dbconn, "my_query", array(false)); // triggers an error Expected result: No error ;) Actual result: -- Warning: pg_execute(): Query failed: ERROR: invalid input syntax for type boolean: "" in ... -- Edit this bug report at http://bugs.php.net/?id=44791&edit=1
#44791 [Ana]: pg_execute() works with boolean params and "true" but not with "false"
ID: 44791 User updated by: php at benjaminschulz dot com Reported By: php at benjaminschulz dot com Status: Analyzed Bug Type: PostgreSQL related Operating System: osx PHP Version: 5.3CVS-2008-04-21 (CVS) New Comment: This applies to pg_send_execute, too. Previous Comments: [2008-04-21 09:32:58] [EMAIL PROTECTED] The problem is due to the way the casting is done internally: SEPARATE_ZVAL(tmp); convert_to_string_ex(tmp); if (Z_TYPE_PP(tmp) != IS_STRING) { php_error_docref(NULL TSRMLS_CC, E_WARNING,"Error converting parameter"); _php_pgsql_free_params(params, num_params); RETURN_FALSE; } It could be improved by testing the variable type prior to convert. However I'm not sure if it is desired or if it has some bad side effects like BC breaks. [2008-04-21 09:14:38] php at benjaminschulz dot com Description: Binding a boolean "false" to a statement doesn't work. Reproduce code: --- $result = pg_prepare($dbconn, "my_query", 'SELECT * FROM test WHERE boolfield = $1'); $result = pg_execute($dbconn, "my_query", array(true)); // works $result = pg_execute($dbconn, "my_query", array(false)); // triggers an error Expected result: No error ;) Actual result: -- Warning: pg_execute(): Query failed: ERROR: invalid input syntax for type boolean: "" in ... -- Edit this bug report at http://bugs.php.net/?id=44791&edit=1
#44792 [NEW]: Serializing objects with protected members introduces null charcters
From: alex at fav dot or dot it Operating system: PHP version: 5.2.5 PHP Bug Type: Strings related Bug description: Serializing objects with protected members introduces null charcters Description: The output from the serialization of objects that contain protected (and possibly private also) members contains null characters. These characters are unnecessary and can cause problems when inserting the serialized data into databases. An asterisk is placed before the variable name in the serialized string, which I assume is to mark it as protected. This asterisk is surrounded by null characters. This appears to be the same as the closed #29865 (closed 10/2005), but in version 5.2.5 and the latest snapshot, the bug still exists. Reproduce code: --- php -r 'class Foo { protected $bar = 1; } $v = new Foo; echo serialize($v);' | hexdump Expected result: The output should not contain null characters (shown as '00') around the asterisk. Actual result: -- 000 3a4f 3a33 4622 6f6f 3a22 3a31 737b 363a 010 223a 2a00 6200 7261 3b22 3a69 3b31 007d 01f -- Edit bug report at http://bugs.php.net/?id=44792&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44792&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44792&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44792&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44792&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44792&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44792&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=44792&r=needscript Try newer version:http://bugs.php.net/fix.php?id=44792&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44792&r=support Expected behavior:http://bugs.php.net/fix.php?id=44792&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44792&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44792&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44792&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44792&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44792&r=dst IIS Stability:http://bugs.php.net/fix.php?id=44792&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44792&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44792&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44792&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=44792&r=mysqlcfg
#44791 [NEW]: pg_execute() works with boolean params and "true" but not with "false"
From: php at benjaminschulz dot com Operating system: osx PHP version: 5.3CVS-2008-04-21 (CVS) PHP Bug Type: PostgreSQL related Bug description: pg_execute() works with boolean params and "true" but not with "false" Description: Binding a boolean "false" to a statement doesn't work. Reproduce code: --- $result = pg_prepare($dbconn, "my_query", 'SELECT * FROM test WHERE boolfield = $1'); $result = pg_execute($dbconn, "my_query", array(true)); // works $result = pg_execute($dbconn, "my_query", array(false)); // triggers an error Expected result: No error ;) Actual result: -- Warning: pg_execute(): Query failed: ERROR: invalid input syntax for type boolean: "" in ... -- Edit bug report at http://bugs.php.net/?id=44791&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44791&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44791&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44791&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44791&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44791&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44791&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=44791&r=needscript Try newer version:http://bugs.php.net/fix.php?id=44791&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44791&r=support Expected behavior:http://bugs.php.net/fix.php?id=44791&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44791&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44791&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44791&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44791&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44791&r=dst IIS Stability:http://bugs.php.net/fix.php?id=44791&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44791&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44791&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44791&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=44791&r=mysqlcfg
#42209 [Opn->Csd]: fail on make for sapi/apache2handler/apache_config.lo
ID: 42209 Updated by: [EMAIL PROTECTED] Reported By: ika dot bensamihan at comverse dot com -Status: Open +Status: Closed Bug Type: Apache2 related Operating System: CentOS release 5 (Final) PHP Version: 6CVS-2007-08-04 (snap) 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. Fixed in CVS long ago. Previous Comments: [2007-08-04 21:27:25] ika dot bensamihan at comverse dot com Description: Make falls on make/gmake /root/cvs/php6.0-200708042030/sapi/apache2handler/apache_config.c:175: error: incompatible type for argument 1 of 'zend_alter_ini_entry' gmake: *** [sapi/apache2handler/apache_config.lo] Error 1 Reproduce code: --- ./configure --with-pic --with-curl --with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-gettext --with-iconv --with-jpeg-dir=/usr --with-openssl --enable-exif --enable-ftp --enable-sockets --with-kerberos --enable-shmop --enable-calendar --with-libxml-dir=/usr --with-apxs2=/usr/sbin/apxs --with-icu-dir=/usr/local Expected result: Make success Actual result: -- /root/cvs/php6.0-200708042030/sapi/apache2handler/apache_config.c:175: error: incompatible type for argument 1 of 'zend_alter_ini_entry' gmake: *** [sapi/apache2handler/apache_config.lo] Error 1 -- Edit this bug report at http://bugs.php.net/?id=42209&edit=1
#44793 [NEW]: ArrayObject does not report as Iterator
From: matthew at zend dot com Operating system: Linux (Ubuntu) PHP version: 5.2.5 PHP Bug Type: SPL related Bug description: ArrayObject does not report as Iterator Description: ArrayObject extends ArrayAccess, which implements ArrayIterator and in turn Iterator. However, when checking to see if a concrete instance of ArrayObject implements Iterator, the return is false. Reproduce code: --- $o = new ArrayObject(array()); if ($o instanceof Iterator) { echo "Instance of Iterator"; } else { echo "Failed"; } Expected result: Instance of Iterator Actual result: -- Failed -- Edit bug report at http://bugs.php.net/?id=44793&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44793&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44793&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44793&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44793&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44793&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44793&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=44793&r=needscript Try newer version:http://bugs.php.net/fix.php?id=44793&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44793&r=support Expected behavior:http://bugs.php.net/fix.php?id=44793&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44793&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44793&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44793&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44793&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44793&r=dst IIS Stability:http://bugs.php.net/fix.php?id=44793&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44793&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44793&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44793&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=44793&r=mysqlcfg
#43563 [Com]: Apache Crash during oci_execute with fault address 0X000baee7
ID: 43563 Comment by: tdrewes at gmx dot net Reported By: bteissier at tennaxia dot com Status: No Feedback Bug Type: OCI8 related Operating System: Win 2K3 PHP Version: 5.2.5 Assigned To: sixd New Comment: Hi, I have a similiar problem with my setup here: PHP 5.2.5 Windows XP SP2 OCI8 Apache 2.0.63 When calling this code: ---8< $sql = 'BEGIN rtm.getrtmsitesummary(:p_site_id, :p_site_type_code_no, :p_site_status_type_code_no, :p_last_contact_time_from, :p_last_contact_time_to, :p_zip_code, :p_city, :p_cursor, :p_error); END;'; $stmt = OCIParse($conn, $sql); // Create a new cursor resource $datalist = oci_new_cursor($conn); // Bind the cursor resource to the Oracle argument oci_bind_by_name($stmt,":p_site_id",$filter_siteid); oci_bind_by_name($stmt,":p_site_type_code_no",$filter_sitetype); oci_bind_by_name($stmt,":p_site_status_type_code_no",$filter_sitestatus); oci_bind_by_name($stmt,":p_last_contact_time_from",$fromdate); oci_bind_by_name($stmt,":p_last_contact_time_to",$todate); oci_bind_by_name($stmt,":p_zip_code",$filter_zipcode); oci_bind_by_name($stmt,":p_city",$filter_city); oci_bind_by_name($stmt,":p_cursor",$datalist,-1,OCI_B_CURSOR); oci_bind_by_name($stmt,":p_error",$p_error,70); // Execute the statement $result = oci_execute($stmt); ---8< oci_execute crashes sometimes (about 50% of the time). The weird thing is: The first time it works all the time. When calling the php screen/function again, it crashes with a probability of ~50%. When calling the php screen/function again, it crashes with a probability of ~90%. "Crashes" means in my context: oci_execute is not returning. Apache crashes with this error: --- Faulting application Apache.exe, version 2.0.63.200, faulting module orageneric10.dll, version 10.2.0.1, fault address 0x000baee7. --- Previous Comments: [2008-02-06 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2008-01-29 01:17:37] [EMAIL PROTECTED] I can't reproduce with PHP 5.2.5 CLI on Windows XP using Oracle XE (10.2.0.1) libraries and database. [2007-12-13 10:50:25] bteissier at tennaxia dot com In sqlplus => OK With php cli => same crash Other plateforms : app on XP/2003 server and oracle 10g on XP/2003 server => OK [2007-12-11 19:57:24] [EMAIL PROTECTED] I couldn't reproduce this - though I was using Linux and Instant Client 11g. Does the crash happen consistently? Does it happen if you run the script in CLI? Does it happen to databases on other platforms or versions? Does it happen in SQL*Plus, . . . [2007-12-11 14:28:06] bteissier at tennaxia dot com The snaphot does not solve the problem. My company also used Zend Core for Oracle but had the same problem. 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/43563 -- Edit this bug report at http://bugs.php.net/?id=43563&edit=1
#44793 [Opn->Bgs]: ArrayObject does not report as Iterator
ID: 44793 Updated by: [EMAIL PROTECTED] Reported By: matthew at zend dot com -Status: Open +Status: Bogus Bug Type: SPL related Operating System: Linux (Ubuntu) PHP Version: 5.2.5 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. class ArrayObject implements IteratorAggregate, Traversable, ArrayAccess, Serializable, Countable. Traversable is not the same as Iterator: Traversable allows an object to be magically iterated by, i.e foreach, while Iterator explicitly provides userland iteration interface through next/valid/current/key/rewind. Previous Comments: [2008-04-21 12:52:27] matthew at zend dot com Description: ArrayObject extends ArrayAccess, which implements ArrayIterator and in turn Iterator. However, when checking to see if a concrete instance of ArrayObject implements Iterator, the return is false. Reproduce code: --- $o = new ArrayObject(array()); if ($o instanceof Iterator) { echo "Instance of Iterator"; } else { echo "Failed"; } Expected result: Instance of Iterator Actual result: -- Failed -- Edit this bug report at http://bugs.php.net/?id=44793&edit=1
#44793 [Bgs]: ArrayObject does not report as Iterator
ID: 44793 User updated by: matthew at zend dot com Reported By: matthew at zend dot com Status: Bogus Bug Type: SPL related Operating System: Linux (Ubuntu) PHP Version: 5.2.5 New Comment: This is a bug in SPL, which is bundled in PHP core; additionally, it exposes a potential issue with how inheritence is resolved in the language. Please re-open. Previous Comments: [2008-04-21 15:51:24] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. class ArrayObject implements IteratorAggregate, Traversable, ArrayAccess, Serializable, Countable. Traversable is not the same as Iterator: Traversable allows an object to be magically iterated by, i.e foreach, while Iterator explicitly provides userland iteration interface through next/valid/current/key/rewind. [2008-04-21 12:52:27] matthew at zend dot com Description: ArrayObject extends ArrayAccess, which implements ArrayIterator and in turn Iterator. However, when checking to see if a concrete instance of ArrayObject implements Iterator, the return is false. Reproduce code: --- $o = new ArrayObject(array()); if ($o instanceof Iterator) { echo "Instance of Iterator"; } else { echo "Failed"; } Expected result: Instance of Iterator Actual result: -- Failed -- Edit this bug report at http://bugs.php.net/?id=44793&edit=1
#44793 [Bgs->Opn]: ArrayObject does not report as Iterator
ID: 44793 Updated by: [EMAIL PROTECTED] Reported By: matthew at zend dot com -Status: Bogus +Status: Open Bug Type: SPL related Operating System: Linux (Ubuntu) PHP Version: 5.2.5 New Comment: Re-opening Previous Comments: [2008-04-21 16:03:38] matthew at zend dot com This is a bug in SPL, which is bundled in PHP core; additionally, it exposes a potential issue with how inheritence is resolved in the language. Please re-open. [2008-04-21 15:51:24] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. class ArrayObject implements IteratorAggregate, Traversable, ArrayAccess, Serializable, Countable. Traversable is not the same as Iterator: Traversable allows an object to be magically iterated by, i.e foreach, while Iterator explicitly provides userland iteration interface through next/valid/current/key/rewind. [2008-04-21 12:52:27] matthew at zend dot com Description: ArrayObject extends ArrayAccess, which implements ArrayIterator and in turn Iterator. However, when checking to see if a concrete instance of ArrayObject implements Iterator, the return is false. Reproduce code: --- $o = new ArrayObject(array()); if ($o instanceof Iterator) { echo "Instance of Iterator"; } else { echo "Failed"; } Expected result: Instance of Iterator Actual result: -- Failed -- Edit this bug report at http://bugs.php.net/?id=44793&edit=1
#44793 [Opn->Bgs]: ArrayObject does not report as Iterator
ID: 44793 Updated by: [EMAIL PROTECTED] Reported By: matthew at zend dot com -Status: Open +Status: Bogus Bug Type: SPL related Operating System: Linux (Ubuntu) PHP Version: 5.2.5 New Comment: Actually, ArrayAccess does not implment ArrayIterator, but vice versa. ArrayObject therefor does not implement Iterator. Previous Comments: [2008-04-21 16:07:34] [EMAIL PROTECTED] Re-opening [2008-04-21 16:03:38] matthew at zend dot com This is a bug in SPL, which is bundled in PHP core; additionally, it exposes a potential issue with how inheritence is resolved in the language. Please re-open. [2008-04-21 15:51:24] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. class ArrayObject implements IteratorAggregate, Traversable, ArrayAccess, Serializable, Countable. Traversable is not the same as Iterator: Traversable allows an object to be magically iterated by, i.e foreach, while Iterator explicitly provides userland iteration interface through next/valid/current/key/rewind. [2008-04-21 12:52:27] matthew at zend dot com Description: ArrayObject extends ArrayAccess, which implements ArrayIterator and in turn Iterator. However, when checking to see if a concrete instance of ArrayObject implements Iterator, the return is false. Reproduce code: --- $o = new ArrayObject(array()); if ($o instanceof Iterator) { echo "Instance of Iterator"; } else { echo "Failed"; } Expected result: Instance of Iterator Actual result: -- Failed -- Edit this bug report at http://bugs.php.net/?id=44793&edit=1
#44794 [NEW]: Inconsistent order of argument for strtr compared to str_replace
From: php dot net at mog dot se Operating system: PHP version: 5.2.5 PHP Bug Type: Strings related Bug description: Inconsistent order of argument for strtr compared to str_replace Description: The similar but different string replacement functions str_replace strtr() have an inconsistent order of arguments, in strtr() $subject is the first argument and in str_replace it is the last. strtr($subject, $search, $replace) str_replace($from, $to, $subject) There is no logic in this behaviour so every time i use these functions i have to look them up to find out which is which. There is no backwards compatible way to fix this as all arguments can be strings, so new API functions would be needed while keeping strtr and str_replace as is. The PHP API desparatley needs a naming convention and this IMO is one of it's worst examples. Expected result: Without an obvious fix i can only offer my ideas on how to fix this: #1 Adding a str_translate($from, $to, $subject) method would be possible, assuming that this order is consistent with the rest of PHP's API #2 A solution which is very logical & consistent would be if strings acted like objects, then $subject->replace($from, $to) and $subject->translate($from, $to) would be possible. My guess would be that treating strings as objects would not be a clean implementation, but perhaps an OO version of string is possible in SPL. -- Edit bug report at http://bugs.php.net/?id=44794&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44794&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44794&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44794&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44794&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44794&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44794&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=44794&r=needscript Try newer version:http://bugs.php.net/fix.php?id=44794&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44794&r=support Expected behavior:http://bugs.php.net/fix.php?id=44794&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44794&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44794&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44794&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44794&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44794&r=dst IIS Stability:http://bugs.php.net/fix.php?id=44794&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44794&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44794&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44794&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=44794&r=mysqlcfg
#18556 [Com]: Setting locale to 'tr_TR' lowercases class names
ID: 18556 Comment by: jreeve at pelagodesign dot com Reported By: spud at nothingness dot org Status: No Feedback Bug Type: Scripting Engine problem Operating System: Linux (RedHat 7.2) PHP Version: 5CVS, 4CVS (2005-10-04) Assigned To: andrei New Comment: We are still getting this bug with PHP 5.2.3 PHP 5.2.3 (cli) (built: Feb 7 2008 06:40:06) As noted below, this function: Produces this error: tr_TR.utf8 DOMImplementationList No Longer Exists! DOMImplementationSource No Longer Exists! DOMImplementation No Longer Exists! DOMProcessingInstruction No Longer Exists! RecursiveIteratorIterator No Longer Exists! IteratorIterator No Longer Exists! FilterIterator No Longer Exists! RecursiveFilterIterator No Longer Exists! ParentIterator No Longer Exists! LimitIterator No Longer Exists! CachingIterator No Longer Exists! RecursiveCachingIterator No Longer Exists! NoRewindIterator No Longer Exists! AppendIterator No Longer Exists! InfiniteIterator No Longer Exists! RegexIterator No Longer Exists! RecursiveRegexIterator No Longer Exists! EmptyIterator No Longer Exists! ArrayIterator No Longer Exists! RecursiveArrayIterator No Longer Exists! SplFileInfo No Longer Exists! DirectoryIterator No Longer Exists! RecursiveDirectoryIterator No Longer Exists! SimpleXMLIterator No Longer Exists! InvalidArgumentException No Longer Exists! __PHP_Incomplete_Class No Longer Exists! Previous Comments: [2007-08-16 17:24:36] tokul at users dot sourceforge dot net class_exists() function uses zend_str_tolower(). zend_str_tolower() uses zend_tolower(). zend_tolower() uses _tolower_l() on Windows and tolower() on other oses. _tolower_l() is not locale aware. tolower() is LC_CTYPE aware. Turkish language can trigger some i18n programming errors in case insensitive comparison functions, because small latin i is not equal to capital latin i in Turkish language. Azerbaijani (az) and Kurdish (ku) locales use Turkish language rules on Linux. P.S. According to msdn documentation _tolower_l() is not meant to be called directly and is provided for internal use by _totlower_l [2007-06-03 22:22:16] mike dot ditum at tripleplay-services dot com I can confirm that this bug is still there... I'm testing with snapshot php5.2-200706031230 and get the following... Instantiating an infoBlob with a lowercase iFooInstantiating an InfoBlob with an uppercase I Fatal error: Class 'InfoBlob' not found in /root/php5.2-200706031230/test.php on line 18 Another simple script I have discovered that shows the same problem is... For this program I get the following output... [EMAIL PROTECTED] php5.2-200706031230]# sapi/cli/php ~/test2.php tr_TR.utf8 DOMImplementationList No Longer Exists! DOMImplementationSource No Longer Exists! DOMImplementation No Longer Exists! DOMProcessingInstruction No Longer Exists! RecursiveIteratorIterator No Longer Exists! IteratorIterator No Longer Exists! FilterIterator No Longer Exists! RecursiveFilterIterator No Longer Exists! ParentIterator No Longer Exists! LimitIterator No Longer Exists! CachingIterator No Longer Exists! RecursiveCachingIterator No Longer Exists! NoRewindIterator No Longer Exists! AppendIterator No Longer Exists! InfiniteIterator No Longer Exists! RegexIterator No Longer Exists! RecursiveRegexIterator No Longer Exists! EmptyIterator No Longer Exists! ArrayIterator No Longer Exists! RecursiveArrayIterator No Longer Exists! SplFileInfo No Longer Exists! DirectoryIterator No Longer Exists! RecursiveDirectoryIterator No Longer Exists! SimpleXMLIterator No Longer Exists! InvalidArgumentException No Longer Exists! __PHP_Incomplete_Class No Longer Exists! This does not just occur with tr_TR.utf8 it also occurs with the following locales... tr_CY.utf8, ku_TR.utf8 and az_AZ.utf8. Thanks [2006-09-03 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2006-08-26 15:05:36] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Can't reproduce... [2006-04-10 11:04:53] [EMAIL PROTECTED] Andrei, care to take a look? 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/18556 -
#22999 [Com]: proc_close() sometimes returns -1 when called process exited with status of 0
ID: 22999 Comment by: liamr at umich dot edu Reported By: phil at concretecomputing dot co dot uk Status: No Feedback Bug Type: Filesystem function related Operating System: sun os PHP Version: 5CVS Assigned To: wez New Comment: http://bugs.php.net/bug.php?id=29123 suggests that --enable-sigchild prevents pclose and proc_close from obtaining the proper exit status. This bug (22999) says that this wouldn't be fixed in PHP4, but would be in PHP5. This is still a problem with 5.2.x. The tip suggested in http://bugs.php.net/bug.php?id=17538... $ret = (proc_close($proc) >> 8) & 0xff; just changes the "-1" into "255" Do you have any suggestions for anyone who needs to obtain the actual exit code using pclose() or proc_close() /and/ has to use --enable-sigchild (because of oracle)? Previous Comments: [2006-08-24 21:04:28] lindsay at bitleap dot com I still see this problem running php 5.1.4 on linux kernel 2.6.16. I do use pcntl and the configure command is pasted below. If there is any additional info I can provide to help, let me know. Thanks! Configure Command => './configure' '--prefix=/usr/lib64/php5' '--sysconfdir=/etc' '--cache-file=./config.cache' '--with-libdir=lib64' '--enable-cli' '--disable-cgi' '--with-config-file-path=/etc/php/cli-php5' '--with-config-file-scan-dir=/etc/php/cli-php5/ext-active' '--without-pear' '--disable-bcmath' '--with-bz2' '--disable-calendar' '--disable-ctype' '--without-curl' '--without-curlwrappers' '--disable-dbase' '--disable-dom' '--disable-exif' '--without-fbsql' '--without-fdftk' '--disable-filepro' '--disable-ftp' '--with-gettext' '--with-gmp' '--disable-hash' '--without-hwapi' '--without-iconv' '--without-informix' '--without-kerberos' '--disable-libxml' '--disable-mbstring' '--with-mcrypt' '--enable-memory-limit' '--without-mhash' '--without-ming' '--without-msql' '--without-mssql' '--with-ncurses' '--with-openssl' '--with-openssl-dir=/usr' '--enable-pcntl' '--disable-pdo' '--with-pgsql' '--with-pspell' '--without-recode' '--disable-simplexml' '--disable-shmop' '--with-snmp' '--disable-soap' '--enable-sockets' '--without-sybase' '--without-sybase-ct' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--without-tidy' '--disable-tokenizer' '--disable-wddx' '--disable-xml' '--disable-xmlreader' '--disable-xmlwriter' '--without-xmlrpc' '--without-xsl' '--with-zlib' '--disable-debug' '--enable-dba' '--without-cdb' '--with-db4' '--without-flatfile' '--without-gdbm' '--without-inifile' '--without-qdbm' '--without-freetype-dir' '--without-t1lib' '--disable-gd-jis-conv' '--disable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gd' '--without-mysqli' '--with-readline' '--without-libedit' '--without-mm' '--without-sqlite' [2005-08-06 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2005-07-30 00:55:45] [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 [2003-10-08 07:23:47] [EMAIL PROTECTED] Won't fix in PHP 4 (changes required are too messy to introduce to stable branch), will fix in PHP 5. [2003-04-17 13:37:25] michael at six dot de We have the same issue with pclose() Testcase: Most of the time $status is -1, sometimes 0. PHP-4.3.2RC1, Solaris 7, --enable-sigchild PHP is compiled with --enable-sigchild because the oracle client is needed too, this was recommended in former bug descriptions. Is this still the case for oracle? 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/22999 -- Edit this bug report at http://bugs.php.net/?id=22999&edit=1
#44710 [Opn->Csd]: mssql stored proc run causes canary mismatch on efree()
ID: 44710 User updated by: proactive1 at gmail dot com Reported By: proactive1 at gmail dot com -Status: Open +Status: Closed Bug Type: MSSQL related Operating System: Debian Linux 4 PHP Version: 5.2.5 New Comment: Upgraded to PHP 5.3 which had resolved the issues that I was having. The current version free of described issues is: PHP 5.2.3-1+lenny1 (cli) (built: Oct 3 2007 19:22:40) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies Previous Comments: [2008-04-13 15:39:07] proactive1 at gmail dot com Description: Environement: apache2, PHP 5.2.5-3 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 21 2008 02:03:40) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies Issue: When the attached php code is executed against mssql stored procedure with certain set of variables ($dateFrom & $dateTo) it causes the canary mismatch error to appear in apache error.log and "page cannot be displayed" in the browser. The stored procedure runs perfectly with any set of dates data from the mssql server. For example: when $dateFrom = 2008-01-01 and $dateTo = 2008-02-14, I am getting an expected result as per attached. However, when $dateFrom = 2008-01-01 and $dateTo = 2008-02-15, there is a "canary mismatch on efree() - heap overflow detected" error is being generated and page cannot be displayed. I have applied a patch to php_mssql.c as per Iliya's suggestion in bug #43861. Here is a header from the current php_mssql.c: /* $Id: php_mssql.c,v 1.152.2.13.2.8 2008/03/05 23:53:23 iliaa Exp $ */ . Do I need to provide more info? Any help would be greatly appreciated! Reproduce code: --- "; while ($row = mssql_fetch_assoc($res)){ printf ("%12.20s%12.20s%12.20s%12.20s%18.28s%18.28s%18.28s%18.28s%18.28s\n",$row['Symbol'],$row['Buys'],$row['Sells'],$row['Position '],$row['TotalVolume'],$row['GrossPnL'],$row['ClrFees'],$row['ExFees'],$row['NetPnL']); } echo ""; mssql_free_result($res); mssql_close($link); ?> Expected result: PnL Report for 2008-01-01 to 2008-02-14 period Symbol: Buys: Sells: Position: TotalVolume: GPnL: CFees: ExFees: NetPnL: prod111541154 0 2308 2420.00115.40 1477.12827.48 prod2 15 15 030 118.75 1.50 17.70 99.55 prod3 13 13 026 100.00 1.30 15.34 83.36 prod446144614 0 9228 2812.50461.40 5444.52 -3093.42 prod511301130 0 2260 8480.00113.00 1107.40 7259.60 prod6 15 15 030 -165.00 1.50 19.20 -185.70 Generated on: Sunday April 13, 2008, 09:57 AM Actual result: -- [Sun Apr 13 09:38:22 2008] [error] [client 10.X.X.X] ALERT - canary mismatch on efree() - heap overflow detected (attacker '10. X.X.X, file '/var/www/apache2-default/phpproject/sql2.php'), referer: http://10.X.X.X/apache2-default/phpproject/pnl_gen erator.html -- Edit this bug report at http://bugs.php.net/?id=44710&edit=1
#44795 [NEW]: nl2br should have option for generating HTML instead of XHTML
From: mmiikkee13 at gmail dot com Operating system: Linux PHP version: 5.2.5 PHP Bug Type: Feature/Change Request Bug description: nl2br should have option for generating HTML instead of XHTML Description: nl2br should include an optional argument to make it generate HTML instead of XHTML. Not every site uses XHTML, and PHP doesn't usually seem like an XHTML-specific language to me - heck, it can even echo out C code if you were that crazy. (No offense to anyone who's actually tried that.) XHTML could still be the default, but the function should be changed to something like nl2br($text, $xhtml=FALSE). While may only generate a warning in the W3C validator, it recommends only using it in XHTML documents, not HTML. Besides that, people view pages with browsers, not hyperactive validators. -- Edit bug report at http://bugs.php.net/?id=44795&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44795&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44795&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44795&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44795&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44795&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44795&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=44795&r=needscript Try newer version:http://bugs.php.net/fix.php?id=44795&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44795&r=support Expected behavior:http://bugs.php.net/fix.php?id=44795&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44795&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44795&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44795&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44795&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44795&r=dst IIS Stability:http://bugs.php.net/fix.php?id=44795&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44795&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44795&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44795&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=44795&r=mysqlcfg
#44795 [Opn->Bgs]: nl2br should have option for generating HTML instead of XHTML
ID: 44795 Updated by: [EMAIL PROTECTED] Reported By: mmiikkee13 at gmail dot com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Linux PHP Version: 5.2.5 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Duplicated. Bug #34381 Previous Comments: [2008-04-22 01:09:29] mmiikkee13 at gmail dot com Description: nl2br should include an optional argument to make it generate HTML instead of XHTML. Not every site uses XHTML, and PHP doesn't usually seem like an XHTML-specific language to me - heck, it can even echo out C code if you were that crazy. (No offense to anyone who's actually tried that.) XHTML could still be the default, but the function should be changed to something like nl2br($text, $xhtml=FALSE). While may only generate a warning in the W3C validator, it recommends only using it in XHTML documents, not HTML. Besides that, people view pages with browsers, not hyperactive validators. -- Edit this bug report at http://bugs.php.net/?id=44795&edit=1
#44729 [Fbk->Opn]: display_errors = Off not respected
ID: 44729 User updated by: hsbrown2 at verizon dot net Reported By: hsbrown2 at verizon dot net -Status: Feedback +Status: Open Bug Type: PHP options/info functions Operating System: Windows Server 2008 PHP Version: 5.2.5 Assigned To: fb-req-jani New Comment: After applying the latest snap (http://snaps.php.net/win32/php5.2-win32-latest.zip) the issue persists. Here is the actual text from the log file: [21-Apr-2008 19:22:06] PHP Warning: Invalid argument supplied for foreach() in E:\wwwroot\components\com_comprofiler\plugin\user\plug_cbcore\cb.core.php on line 240 You should be able to reach the phpinfo() via this link: http://71.164.9.37/test.php Please let me know directly via email if the link does not work, as it is possible my ISP is blocking this. This is a test development server and was never intended to be exposed to the Internet, however I have unblocked port 80 for the purposes of investigating this issue. Please note also that I would like to use an NTS build. Thread safety is enabled on this snap. Thank you Previous Comments: [2008-04-17 21:10:29] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi And please, use the binary distro instead of compiling yourself. If the problem persists, please provide a live URL to the phpinfo(). Also provide the actual output in the log file. [2008-04-16 02:26:23] hsbrown2 at verizon dot net PHP Version 5.2.5 System Windows NT WINWEB1 6.0 build 6001 Build Date Nov 8 2007 23:32:05 Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--disable-zts" "--disable-isapi" "--disable-activescript" Server API CGI/FastCGI Virtual Directory Support disabled Configuration File (php.ini) Path C:\Windows Loaded Configuration File C:\Windows\php.ini PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety disabled Zend Memory Manager enabled IPv6 Support enabled Registered PHP Streams php, file, data, http, ftp, compress.zlib, compress.bzip2 Registered Stream Socket Transports tcp, udp Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*, bzip2.* This program makes use of the Zend Scripting Language Engine: Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies PHP Credits Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference Off Off allow_url_fopen On On allow_url_include Off Off always_populate_raw_post_data Off Off arg_separator.input & & arg_separator.output & & asp_tags Off Off auto_append_file no value no value auto_globals_jit On On auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_classes no value no value disable_functions no value no value display_errors Off Off display_startup_errors Off Off doc_root no value no value docref_ext no value no value docref_root no value no value enable_dl On On error_append_string no value no value error_log E:\wwwroot\logs\phperrors.log E:\wwwroot\logs\phperrors.log error_prepend_string no value no value error_reporting 6135 6135 expose_php On On extension_dir ext ext file_uploads On On highlight.bg #FF #FF highlight.comment #FF8000 #FF8000 highlight.default #BB #BB highlight.html #00 #00 highlight.keyword #007700 #007700 highlight.string #DD #DD html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .;C:\php5\pear .;C:\php5\pear log_errors On On log_errors_max_len 1024 1024 magic_quotes_gpc Off Off magic_quotes_runtime Off Off magic_quotes_sybase Off Off mail.force_extra_parameters no value no value max_execution_time 30 30 max_input_nesting_level 64 64 max_input_time 60 60 memory_limit 128M 128M open_basedir no value no value output_buffering 4096 4096 output_handler no value no value post_max_size 8M 8M precision 14 14 realpath_cache_size 16K 16K realpath_cache_ttl 120 120 register_argc_argv Off Off register_globals Off Off register_long_arrays Off Off report_memleaks On On report_zend_debug On On safe_mode Off Off safe_mode_exec_dir no value no value safe_mode_gid Off Off sa
#44796 [NEW]: missing in PHP net manual
From: peter dot mlich at volny dot cz Operating system: winxp PHP version: 5.2.5 PHP Bug Type: Unknown/Other Function Bug description: missing in PHP net manual Description: Missing something about ora_ function, copy please from this pages: http://www.phpbuilder.com/manual/en/function.ora-logon.php I have wamp server for Win, i can active oracle.dll, but i cant active oci8.dll. Why, i dont know. I active both, but ora_logon write Ok, oci_... write undefined. I can try connect to our Oracle db, but i dont find manual for ora_... . Peter Reproduce code: --- ok Expected result: ok Actual result: -- ok -- Edit bug report at http://bugs.php.net/?id=44796&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44796&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44796&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44796&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44796&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44796&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44796&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=44796&r=needscript Try newer version:http://bugs.php.net/fix.php?id=44796&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44796&r=support Expected behavior:http://bugs.php.net/fix.php?id=44796&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44796&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44796&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44796&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44796&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44796&r=dst IIS Stability:http://bugs.php.net/fix.php?id=44796&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44796&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44796&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44796&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=44796&r=mysqlcfg