php-groups.com | Post Question | Search | About | Groups | Contact | Register | Login



php notes (593)

php bugs (293)

php cvs (289)

php doc cvs (213)

php qa reports (199)

php doc fr (184)

php doc de (159)

php doc bg (157)

php webmaster (152)

php general (150)


php.bugs Post New
Items(293) /3 Next >> Last >|
Subject Posted Replies From
#50656 [NEW]: Assign constant to var causes syntax error

From: willirl at gmail dot com Operating system: mac os x 10.6 PHP version: 5.3.1 PHP Bug Type: Compile Failure Bug description: Assign constant to var causes syntax error Description: ------------ This error is on Mac 10.6 has PHP 5.3.0 which is not shown in version selector. The code causes this error: Parse error: syntax error, unexpected T_VAR in /Users/willirl/Desktop/TEST Files/test.php on line 6 Reproduce code: --------------- <?php define('A_CONSTANT', 25); var $abc = A_CONSTANT; ?> Expected result: ---------------- No error.

1/4/2010 3:07:07 PM 1 php-b...@lists.php.net ("willirl at gmail dot com")
#50654 [NEW]: Nested heredocs fail

From: thuejk at gmail dot com Operating system: Debian Linux Unstable PHP version: 5.2.12 PHP Bug Type: Scripting Engine problem Bug description: Nested heredocs fail Description: ------------ Embedding a heredoc inside another heredoc fails to compile on 5.2.12. (The same code successfully compiles on 5.2.4-ubuntu, but running it has the wrong output.) Reproduce code: --------------- <?php $a = Array("b" => 1); echo <<<ZZ {$a[<<<B b B ]} ZZ; ?> Expected result: ---------------- 1 Actual result: -------------- Parse error: syntax er

1/4/2010 1:09:22 PM 0 php-b...@lists.php.net ("thuejk at gmail dot com")
#50653 [NEW]: str_split sequence handling

From: robert_xp at gmx dot net Operating system: PHP version: 5.3.1 PHP Bug Type: Feature/Change Request Bug description: str_split sequence handling Description: ------------ str_split is only able to split a string in periodical substrings. I think, it's a good improvement to allow arrays as a second parameter to handle sequences. I wrote a patch for that: http://www.xarg.org/2009/12/php-hacking/ Reproduce code: --------------- var_dump(str_split("0123456789abcdefwant to extract this?abcd", array(16, -4))); var_dump(str_split("hello how are you?",

1/4/2010 12:22:08 PM 0 php-b...@lists.php.net ("robert_xp at gmx dot net")
#50652 [NEW]: time call optimization

From: robert_xp at gmx dot net Operating system: PHP version: 5.3.1 PHP Bug Type: Performance problem Bug description: time call optimization Description: ------------ Sure, it is not so critical to patch this but you use ever time(NULL) to get the current time in most functions. There is a better way going over the SAPI interface and retrieve a cached value. I published also a patch for all time(NULL/0) calls on http://www.xarg.org/2009/12/php-hacking/ I also hacked the FCGI sapi to get the time value direclty from the webserver - yes it is not supported

1/4/2010 12:18:06 PM 1 php-b...@lists.php.net ("robert_xp at gmx dot net")
#50643 [NEW]: Translation attributes for strings

From: daniel at dseichter dot de Operating system: Linux, Windows PHP version: 5.3.1 PHP Bug Type: Feature/Change Request Bug description: Translation attributes for strings Description: ------------ I developed for many years in progress 4GL (OpenEdge from progress software) and in case of international projects, progress has the nice feature of translation attributes like for example: 'text':U, 'text':T10, 'text':L10 and 'text':R10 The :U,:T10,... after the string is relevant for the translation within the compiler of progress. :U: untranslateable :T

1/3/2010 1:26:18 PM 0 php-b...@lists.php.net ("daniel at dseichter dot de")
#50642 [NEW]: 'if(!$result)'

From: nakulgoud at gmail dot com Operating system: Windows XP SP2 PHP version: 5.3.1 PHP Bug Type: *Database Functions Bug description: 'if(!$result)' Description: ------------ After exection of query where mysql returns an empty set then 'if($result)' returns true.It should return false.How to handle this situation. Reproduce code: --------------- --- From manual page: function.mysql-fetch-row#Examples --- $query="select name from user where id=42'"; $result=mysql_query($query); if (!$result) { echo 'Could not run query: ' . mysql_error();

1/3/2010 12:54:09 PM 1 php-b...@lists.php.net ("nakulgoud at gmail dot com")
#50641 [NEW]: Extension directory

From: twallis at mts dot net Operating system: Windows PHP version: 5.2.12 PHP Bug Type: Performance problem Bug description: Extension directory Description: ------------ In the php.ini files included in the download the extensions directly is set as: extension_dir = "./" This prevents php from working. It took me four hours of searching until I tripped over documentation about extension_dir. Once I chenged the line to read: extension_dir = "c:/php/ext" the problem was fixed. Nowhere was it stated as part of the installation procedure to change this

1/3/2010 3:20:28 AM 1 php-b...@lists.php.net ("twallis at mts dot net")
#50638 [NEW]: User Stream $context is Not Populated

From: cullin dot wible at cullinwible dot com Operating system: CentOS 5.4 x86_64 PHP version: 5.3.1 PHP Bug Type: *General Issues Bug description: User Stream $context is Not Populated Description: ------------ When creating a user stream using the streamWrapper format, the $context variable is NOT set during the stream_open method call. Reproduce code: --------------- class TestStream { public $context; public function __construct() { /* do nothing */ } public function stream_open($path, $mode, $options, &$opened_path) { echo "Open

1/2/2010 11:10:27 PM 2 php-b...@lists.php.net ("cullin dot wible at cullinwible dot com")
#50636 [NEW]: MySQLi_Result sets values before calling constructor

From: stein at rhrk dot uni-kl dot de Operating system: PHP version: 5.2.12 PHP Bug Type: MySQLi related Bug description: MySQLi_Result sets values before calling constructor Description: ------------ MySQLi_Result::fetch_object sets properties before calling the constructor, see BUG #49521 The behavior is similar to the one in BUG #49521 which has been fixed as of PHP 5.2.12. Note: It should be considered that this behavior may be not bug at all. Calling the constructor BEFORE setting the properties (as done in BUG #49521) leaves no possibility to wor

1/2/2010 3:03:49 PM 1 php-b...@lists.php.net ("stein at rhrk dot uni-kl dot de")
#50635 [NEW]: Parse error occures if '?>' is put into a single-string comment

From: sergio at js-client dot com Operating system: PHP version: 5.3.1 PHP Bug Type: *General Issues Bug description: Parse error occures if '?>' is put into a single-string comment Description: ------------ Parse error (as unexpected $end) occures if '?>' is put into a single-string comment Reproduce code: --------------- <?php function comments_test() { //?> //preg_match_all('~(?>\s)=~s', $str); } ?> Expected result: ---------------- No parsing errors Actual result: -------------- PHP Parse error: syntax error, un

1/2/2010 2:14:22 PM 1 php-b...@lists.php.net ("sergio at js-client dot com")
#50633 [NEW]: Add constant FILTER_EXCEPTION_ON_FAILURE to throw exceptions

From: gmblar+php at gmail dot com Operating system: all PHP version: 5.3.1 PHP Bug Type: Filter related Bug description: Add constant FILTER_EXCEPTION_ON_FAILURE to throw exceptions Description: ------------ Add constant FILTER_EXCEPTION_ON_FAILURE to throw meaningful exceptions why filter fails Reproduce code: --------------- <?php $foo = filter_input(INPUT_GET, 'foo', FILTER_VALIDATE_INT, array( 'flags' => FILTER_REQUIRE_SCALAR + FILTER_EXCEPTION_ON_FAILURE, 'options' => array( 'min_range' => 5, 'max_range' => 42 ) ))

1/2/2010 9:47:46 AM 0 php-b...@lists.php.net ("gmblar+php at gmail dot com")
#50632 [NEW]: Return default value if var is undefined

From: gmblar+php at gmail dot com Operating system: all PHP version: 5.3.1 PHP Bug Type: Filter related Bug description: Return default value if var is undefined Description: ------------ if $_GET['foo'] is undefined, filter functions return NULL instead of the default value defined in options. Reproduce code: --------------- <?php $foo = filter_input(INPUT_GET, 'foo', FILTER_VALIDATE_INT, array( 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'default' => 23, 'min_range' => 5, 'max_range' => 42 ) ));

1/2/2010 9:38:41 AM 1 php-b...@lists.php.net ("gmblar+php at gmail dot com")
#50631 [NEW]: strtotime() gives incorrect output for certain date

From: barlow at fhtsolutions dot com Operating system: Linux or XP PHP version: 5.2.12 PHP Bug Type: Date/time related Bug description: strtotime() gives incorrect output for certain date Description: ------------ strtotime() reports an incorrect value for a particular date: 2010-03-15 It seems to think that this day has 23 hours! Reproduce code: --------------- --- From manual page: function.strtotime#Description --- <?php $a = strtotime("2010-03-14"); $b = strtotime("2010-03-15"); echo "Number of hours difference: ".(($b-$a)/3600)."<br />"; /

1/2/2010 6:04:30 AM 1 php-b...@lists.php.net ("barlow at fhtsolutions dot com")
#50630 [NEW]: Modulo on strings/floats won't work on huge numbers

From: bananen-joe at bananen-joe dot de Operating system: Windows XP SP3 PHP version: 5.3.1 PHP Bug Type: Scripting Engine problem Bug description: Modulo on strings/floats won't work on huge numbers Description: ------------ If you use the modulo operator on huge numbers (which cannot be converted into integers) you get a strange result. Even not error is reported. Reproduce code: --------------- error_reporting(E_ALL); $number = '9999999990'; echo "$number % 10 = ", $number % 10, "<br>"; $number = 9999999990; echo "$number % 10 = ", $number % 10, "<b

1/1/2010 10:25:25 PM 0 php-b...@lists.php.net ("bananen-joe at bananen-joe dot de")
#50629 [NEW]: Invalid CRT parameters detected in stream_get_contents()

From: viaujoc at videotron dot ca Operating system: Win2003 PHP version: 5.3.1 PHP Bug Type: Streams related Bug description: Invalid CRT parameters detected in stream_get_contents() Description: ------------ When using stream_get_contents() without the $maxlength argument, the warning "Warning: Invalid CRT parameters detected" is showing up. This only happens in PHP 5.3.1, it works correctly in PHP 5.2.12. Adding a very large value to $maxlength, even much larger than the actual content to be retrieve makes the warning go away. Reproduce code: --------

1/1/2010 7:45:06 PM 1 php-b...@lists.php.net ("viaujoc at videotron dot ca")
#50628 [NEW]: Trailing slash in dirname

From: ninive at gmx dot at Operating system: Linux 2.6.31 PHP version: 5.2.12 PHP Bug Type: Directory function related Bug description: Trailing slash in dirname Description: ------------ dirname("/hugo/") -> "/" Reproduce code: --------------- echo dirname("/hugo/") Expected result: ---------------- "/hugo" Actual result: -------------- "/" -- Edit bug report at http://bugs.php.net/?id=50628&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50628&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.

1/1/2010 7:11:29 PM 1 php-b...@lists.php.net ("ninive at gmx dot at")
#50627 [NEW]: mhash extension tests fail

From: rush at logic dot cz Operating system: PHP version: 5.2.12 PHP Bug Type: mhash related Bug description: mhash extension tests fail Description: ------------ PHP version 5.2.12 contains minor bug in files ext/mhash/tests/00{1,3}.phpt. Some occurrences of character 0x0d were replaced by 0x0a. This was possibly caused by revision control software. File ext/mhash/tests/001.phpt Offset 0x23f 0x0a should be replaced by 0x0d (MHASH_TIGER) File ext/mhash/tests/003.phpt Offset 0x2b9 0x0a should be replaced by 0x0d (MHASH_HAVAL224) File ext/mhash/

1/1/2010 7:10:20 PM 0 php-b...@lists.php.net ("rush at logic dot cz")
#50626 [NEW]: Oddly date related error message

From: sworddragon2 at aol dot com Operating system: Windows XP Professional SP3 PHP version: 5.3.1 PHP Bug Type: Output Control Bug description: Oddly date related error message Description: ------------ I have a script, that got sometimes a date - related error message but nowhere is such a function called. I don't got the errors myself, I see them just in my error log from other users. Maybe this is not a bug, but i'm searching for a few days for a solution and have no explanation why this bug at line 26 after a flush(); appears (line 26 is marked as a c

1/1/2010 6:58:13 PM 4 php-b...@lists.php.net ("sworddragon2 at aol dot com")
#50623 [NEW]: odbc_field_name

From: bpelletier at alct dot ca Operating system: Windows XP Pro PHP version: 5.3.1 PHP Bug Type: ODBC related Bug description: odbc_field_name Description: ------------ I use odbc_connect to connect to my sql server 2005. When I want a column where the field name longer than 31 characters, odbc_result cuts the name to 31 characters. I really need to know how to overrite the struct to have the possibilities to have at least 64 characters. Thanks for you help. I see many bugs reporting the same but no solution are proposes. Reproduce code: ------

12/31/2009 2:42:10 PM 0 php-b...@lists.php.net ("bpelletier at alct dot ca")
#50622 [NEW]: minus 0 returned

From: okycastro at gmail dot com Operating system: windows vista PHP version: 5.2.12 PHP Bug Type: *Math Functions Bug description: minus 0 returned Description: ------------ -0 is returns under the following example. I believe this is a bug. I see there was a bug about this a long time ago, But I think that the concept of a -0 is an invalid one. it just makes no sense. Even more if you consider that the following line will never gets executed if ($x < 0) //$x = -0 //NEVER EXECUTED if ($x <= 0) //$x = -0 //GETS EXECUTED Reproduce code: -----

12/31/2009 2:30:04 PM 1 php-b...@lists.php.net ("okycastro at gmail dot com")
#50621 [NEW]: Memory leak in OnUpdateUTF8String

From: mbeccati@php.net Operating system: Ubuntu 9.10 PHP version: 6SVN-2009-12-31 (SVN) PHP Bug Type: Unicode Engine related Bug description: Memory leak in OnUpdateUTF8String Description: ------------ Discovered this while checking for leaks in my own changes. It always happens, even with an empty script. 90 bytes are definitely lost, plus 7+ kbytes still reachable that I'm not reporting here (overlong list). Reproduce code: --------------- # valgrind --tool=memcheck --num-callers=30 --leak-check=full sapi/cli/php < /dev/null Expected result: ----

12/31/2009 1:27:17 PM 0 php-b...@lists.php.net ("mbecc...@php.net")
#50620 [NEW]: Can't download msi files

From: thejoho at gmail dot com Operating system: Windows XP SP3 PHP version: 5.2.12 PHP Bug Type: Unknown/Other Function Bug description: Can't download msi files Description: ------------ Website problem. http://windows.php.net/download/ I am trying to download from the above website, specifically the VC6 msi files (threadsafe or nonthreadsafe) but they hang after about 4.5MB and fail to download. I have managed to download some zips however but need the msi files. I have tried several browsers (IE8, Opera9, Firefox3.5) but no luck. Any problems there? An

12/31/2009 12:04:10 PM 1 php-b...@lists.php.net ("thejoho at gmail dot com")
#50619 [NEW]: date change year

From: klevisi at gmail dot com Operating system: linux PHP version: 5.2.12 PHP Bug Type: Date/time related Bug description: date change year Description: ------------ When the year changes it displays not the expected results Reproduce code: --------------- <?php for($i=0; $i<7; $i++) { echo date("o-m-d", mktime() + $i * 86400); echo '<br />'; } ?> Expected result: ---------------- 2009-12-31 2010-01-01 2010-01-02 2010-01-03 2010-01-04 2010-01-05 2010-01-06 Actual result: -------------- 2009-12-31 2009-01-01 2009-01-02 2009-01

12/31/2009 11:26:58 AM 1 php-b...@lists.php.net ("klevisi at gmail dot com")
#50618 [NEW]: php crashed when preg_replace on some case.

From: sarun37823 at bigfoot dot com Operating system: Linux PHP version: 5.2.12 PHP Bug Type: PCRE related Bug description: php crashed when preg_replace on some case. Description: ------------ I use preg_replace It work fine for most subject(data) except one. Reproduce code: --------------- <?php $page_c=implode('', file('phpbug1.data')); //download test file at //http://www.greatduo.da.ru/files/phpbug1.data $page_c=preg_replace('/<li[^<>]*>(?:.(?!made an edit|<\/?li))*.made[^<>]*<\/div><\/li>/sim', '', $page_c); ?> Expected result: -------------

12/31/2009 6:11:22 AM 4 php-b...@lists.php.net ("sarun37823 at bigfoot dot com")
#50617 [NEW]: PHP should have Perl style obtaining of values from arrays returned from functi

From: billyellison99 at gmail dot com Operating system: PHP version: 5.3.2RC1 PHP Bug Type: Feature/Change Request Bug description: PHP should have Perl style obtaining of values from arrays returned from functi Description: ------------ In Perl, I am able to do something like: print (explode(",", $myString))[1]; which would print the second result of explode (which returns an array). Sadly, this feature is lacking in PHP. I'd really like to see this in PHP, because it adds so much convenience to coding, and shortens it, rather than having to assign to

12/31/2009 5:16:57 AM 2 php-b...@lists.php.net ("billyellison99 at gmail dot com")
#50616 [NEW]: Invalid version number with phpinfo()

From: sezer@php.net Operating system: Windows 2003 R2 PHP version: 5.2.12 PHP Bug Type: PHP options/info functions Bug description: Invalid version number with phpinfo() Description: ------------ I got Windows zip package (not MSI) from website. This is version 5.2.12 I have Apache 2.2.13 configured with PHP. When I do phpinfo(), I see: PHP Version 5.2.9-1 System Windows NT XXX 5.2 build 3790 Build Date Mar 5 2009 20:01:54 So both version and build date does not match 5.2.12 release date. I do not have multiple php5ts.dll file and I did not do s

12/31/2009 4:14:13 AM 1 php-b...@lists.php.net ("se...@php.net")
#50615 [NEW]: preg_match() error

From: jzumbrun at gmail dot com Operating system: OsX 10.6.1 PHP version: 5.3.1 PHP Bug Type: Regexps related Bug description: preg_match() error Description: ------------ // $line equals line below from file: $route['infox/(.*)'] = "articles/$1"; Basically I have to manually put an \ in front of the / char after infox. preg_quote() wont escape it and the documentation doesnt say i need to escape / chars. preg_match() is forcing me to put one there. Reproduce code: --------------- --- From manual page: function.preg-quote --- $urlClass = '\$route\[

12/31/2009 2:19:37 AM 3 php-b...@lists.php.net ("jzumbrun at gmail dot com")
#50614 [NEW]: Certificate private key

From: dimarikson at yandex dot ru Operating system: FreeBSD 7, Windows XP PHP version: 5.2.12 PHP Bug Type: OpenSSL related Bug description: Certificate private key Description: ------------ Setting curl certificate option "CURLOPT_SSLCERT" arrouse checking of a private key and throws an error if key is not valid or empty: "(58) unable to set private key file". But many sites do not provide private key at all (i.e. only outgoing data being encrypted). So this makes impossible to communicate with these sites through php. -- Edit bug report at http:/

12/30/2009 10:51:59 PM 3 php-b...@lists.php.net ("dimarikson at yandex dot ru")
#50613 [NEW]: Expected warnings/notices not outputed by PHP on simple array access.

From: felix at amerimerchant dot com Operating system: Linux PHP version: 5.3.1 PHP Bug Type: Scripting Engine problem Bug description: Expected warnings/notices not outputed by PHP on simple array access. Description: ------------ When accessing a variable containing a boolean, integer, floating point, or null value using square bracket syntax, no warning or notice is generated (even if the array index could not exist if the type was silently juggled into a string or array). This occurs even with E_STRICT turned on. Reproduce code: --------------- <?php

12/30/2009 8:55:02 PM 2 php-b...@lists.php.net ("felix at amerimerchant dot com")
#50612 [NEW]: Memcached::setMulti can't support pure digit key

From: gnujava at gmail dot com Operating system: Linux 64bit PHP version: 5.3.1 PHP Bug Type: Unknown/Other Function Bug description: Memcached::setMulti can't support pure digit key Description: ------------ Memcached::setMulti can't support pure digit key file: php_memcached.c fun: php_memc_setMulti_impl line: 1009 if (zend_hash_get_current_key_ex(Z_ARRVAL_P(entries), &str_key, &str_key_len, &num_key, 0, NULL) != HASH_KEY_IS_STRING) { continue; } HASH_KEY_IS_STRING is not good ideal. Reproduce code: --------------- --- From manual p

12/30/2009 12:33:02 PM 1 php-b...@lists.php.net ("gnujava at gmail dot com")
#50611 [NEW]: Segfault when trying $var =& $non_array_var[some_index]

From: an0nym at narod dot ru Operating system: FreeBSD 7.2-RELEASE-p3 PHP version: 5.3.1 PHP Bug Type: Reproducible crash Bug description: Segfault when trying $var =& $non_array_var[some_index] Description: ------------ Segmentation fault occurs when trying to assign a var to a reference onto some index of a string variable. (I know it's dumb, but no segfault should occur, but a Fatal error: ...) Reproduce code: --------------- <?php $value1 = 'foobar'; $value2 = &$value1[0]; Expected result: ---------------- Fatal Error Actual result: --------

12/30/2009 8:30:22 AM 4 php-b...@lists.php.net ("an0nym at narod dot ru")
#50610 [NEW]: imagerotate transparent gif some angles invert new background

From: ceo at l-i-e dot com Operating system: N/A PHP version: 5.2.12 PHP Bug Type: GD related Bug description: imagerotate transparent gif some angles invert new background Description: ------------ imagerotate for a transparent input GIF, trying to output a transparent output GIF. At various angles it will fill the new / expanded background with the wrong (non-transparent black) color. This may be the same as http://bugs.php.net/bug.php?id=44429 but I can't tell without the other guy's image either... It could also be related to http://bugs.php.net/b

12/30/2009 5:59:51 AM 7 php-b...@lists.php.net ("ceo at l-i-e dot com")
#50609 [NEW]: Feature Request: mbstring - add mb_substr_replace

From: anthon dot pang at gmail dot com Operating system: PHP version: 5.2.12 PHP Bug Type: Feature/Change Request Bug description: Feature Request: mbstring - add mb_substr_replace Description: ------------ For consistency, there should be a multibyte-aware version of substr_replace. At present, it's inconsistent (and can lead to incorrect results) if strlen and strpos functions are overloaded, and have those return values passed to substr_replace (which isn't overloaded). -- Edit bug report at http://bugs.php.net/?id=50609&edit=1 -- Try a snapshot

12/29/2009 11:49:32 PM 0 php-b...@lists.php.net ("anthon dot pang at gmail dot com")
#50608 [NEW]: last "<" character drops rest of the field with explode and preg_splits the

From: dlazesz at walla dot com Operating system: Ubuntu 9.10, Debian 4.0 PHP version: 5.2.12 PHP Bug Type: Strings related Bug description: last "<" character drops rest of the field with explode and preg_splits the Description: ------------ last "<" character drops the rest of the field with explode and preg_split Reproduce code: --------------- print_r(explode(",",'"Foo Bar" <foobar@example.com>, Second address...')); print_r(preg_split("/,/",'"Foo Bar" <foobar@example.com>, Second address...')); print_r(explode(",",'"Foo Bar" foobar@example.com>, Work

12/29/2009 11:34:30 PM 2 php-b...@lists.php.net ("dlazesz at walla dot com")
#50606 [NEW]: strange behavior of reference and ? operator

From: grzegorz at heex dot pl Operating system: Win XP PHP version: 5.3.1 PHP Bug Type: Scripting Engine problem Bug description: strange behavior of reference and ? operator Description: ------------ That code works: class A{ private $data; public function __construct() { $this->data = new stdClass(); } public function & __get($property) { if (isset($this->data->$property)) { return $this->data->$property; } return null; } public function __set($property,$value) { $this->data->$property = $value; } } function chgTxt(

12/29/2009 1:02:29 PM 2 php-b...@lists.php.net ("grzegorz at heex dot pl")
#50605 [NEW]: preg_split Wrong count of matches with PREG_SPLIT_DELIM_CAPTURE

From: serovov at gmail dot com Operating system: any PHP version: 5.2.12 PHP Bug Type: *Regular Expressions Bug description: preg_split Wrong count of matches with PREG_SPLIT_DELIM_CAPTURE Description: ------------ When you use preg_split with PREG_SPLIT_DELIM_CAPTURE i have different count of matches. Reproduce code: --------------- <?php $res1 = preg_split( '{((a|b)|c)}six', '--a--b--c--', 0, PREG_SPLIT_DELIM_CAPTURE ); var_export($res1); Expected result: ---------------- array ( 0 => '--', 1 => 'a', 3 => '--', 4 =

12/29/2009 12:57:38 PM 2 php-b...@lists.php.net ("serovov at gmail dot com")
#50604 [NEW]: function round() doesn't accept 3rd param

From: marco dot sampellegrini at dtraining dot it Operating system: Windows xp pro sp3 PHP version: 5.2.12 PHP Bug Type: Scripting Engine problem Bug description: function round() doesn't accept 3rd param Description: ------------ Hi, I get the same on 5.2.9 I'm using xampplite. Thanks. Reproduce code: --------------- --- From manual page: function.round#Examples --- echo round(9.5, 0, PHP_ROUND_HALF_UP); Expected result: ---------------- 10 Actual result: -------------- Warning: Wrong parameter count for round() in .. on line ... --

12/29/2009 11:23:44 AM 1 php-b...@lists.php.net ("marco dot sampellegrini at dtraining dot it")
#50602 [NEW]: Session doesn't work in php5

From: jansi_bosco at yahoo dot co dot in Operating system: Linux PHP version: 5.3.1 PHP Bug Type: Session related Bug description: Session doesn't work in php5 Description: ------------ I am using php5 version. The script is doesn't work in php5. But its work under php4 fine. What may be the problem occurs? I search the page in my php info() file, The register_global is ON mode in Php4. But in the php5 the register_global is OFF. In my site, there are the scripts are didn't work well. The file redirect to another page. But there is no data is retreived. T

12/29/2009 8:19:52 AM 1 php-b...@lists.php.net ("jansi_bosco at yahoo dot co dot in")
#50601 [NEW]: PHP causes Apache to crash on start

From: rhainor at gmail dot com Operating system: Windows Server 2008 PHP version: 5.2.12 PHP Bug Type: Apache2 related Bug description: PHP causes Apache to crash on start Description: ------------ Migrating to a new webserver (from WinXP to Server 2008); Everything was running fine on the old one, but now whenever Apache tries to start and load PHP, it crashes. If I comment-out the PHP sections of Apache's "http.conf", it will start fine. Expected result: ---------------- Apache loads PHP and starts successfully. Actual result: -------------- Prob

12/29/2009 6:00:22 AM 2 php-b...@lists.php.net ("rhainor at gmail dot com")
#50599 [NEW]: Magic method for overriding gettype() results.

From: jmcentire at gmail dot com Operating system: Debian PHP version: 5.3.1 PHP Bug Type: Feature/Change Request Bug description: Magic method for overriding gettype() results. Description: ------------ I'm modeling my data as objects and would like it to be as transparent as possible. As such, gettype($myObj) should return a type value other than 'object.' Can you implement a magic method __gettype() which expects the return value to be a string? Reproduce code: --------------- --- From manual page: language.oop5.magic --- class MyInt { pub

12/29/2009 12:35:43 AM 2 php-b...@lists.php.net ("jmcentire at gmail dot com")
#50598 [NEW]: Add $_CLIENT Superglobal

From: mako281 at gmail dot com Operating system: Any PHP version: 5.3.2RC1 PHP Bug Type: Feature/Change Request Bug description: Add $_CLIENT Superglobal Description: ------------ I think there would be some benefit in separating Client information (ie. HTTP Request Information, User-Agent, User Auth Information) from the $_SERVER superglobal and creating a new superglobal called $_CLIENT. Nothing major, but I think it makes logical sense. (btw, PHP Version is irrelevent, but it wouldn't let me select that option) :P -- Edit bug report at http:/

12/28/2009 9:27:25 PM 1 php-b...@lists.php.net ("mako281 at gmail dot com")
#50597 [NEW]: odbc_result for a long varchar with defaultlrl=4k returns uninitialized memory

From: cdf123 at cdf123 dot net Operating system: Gentoo Linux PHP version: 5.3.1 PHP Bug Type: ODBC related Bug description: odbc_result for a long varchar with defaultlrl=4k returns uninitialized memory Description: ------------ odbc_result looks like it is initializing the result string to the length of the data in the field, but the defaultlrl is limits how much is returned, so the remaining bytes seem to be random uninitialized memory. Reproduce code: --------------- <?php $data = '000'; for($x=1;$x<12;$x++) $data .= $data; $db = odbc_connect('DSN',

12/28/2009 8:59:26 PM 0 php-b...@lists.php.net ("cdf123 at cdf123 dot net")
#50596 [NEW]: File in Wrong Format errors

From: Steve dot Cleveland at orst dot edu Operating system: RHEL5.4 64bit PHP version: 5.2.12 PHP Bug Type: Compile Failure Bug description: File in Wrong Format errors Description: ------------ Starting with PHP 5.2.12, the final part of the 'make' process fails. It appears if a system has both 32bit and 64bit libraries, building the apache1 module tries to link to the 32bit library and fails with "File in wrong format". The issue doesn't happen with the CGI/CLI versions. The apache version is 1.3.41 Reproduce code: --------------- # locate libdb-

12/28/2009 8:26:40 PM 5 php-b...@lists.php.net ("Steve dot Cleveland at orst dot edu")
#50595 [NEW]: Mysqlnd extension needs to read my.ini file for sanity

From: tallyce at gmail dot com Operating system: Windows7 PHP version: 5.3.1 PHP Bug Type: MySQL related Bug description: Mysqlnd extension needs to read my.ini file for sanity Description: ------------ http://au2.php.net/manual/en/migration53.incompatible.php states that the Mysqlnd driver doesn't read the my.ini file but instead that mysqli_options() should be used to tell PHP about settings. Can I plead the developers to have a mysqlnd.inifile option or similar? This latest change is very regressive: it means that, for instance, if your database

12/28/2009 7:53:21 PM 2 php-b...@lists.php.net ("tallyce at gmail dot com")
#50594 [NEW]: method_exists() is invoking __autoload()

From: maros dot gajdosik at gmail dot com Operating system: PHP version: 5.2.12 PHP Bug Type: Class/Object related Bug description: method_exists() is invoking __autoload() Description: ------------ Function method_exists() is invoking __autoload(), which, in my opinion, is an unwanted behaviour. Sorry, if this has been posted already - tried to search for it without any results. Reproduce code: --------------- <?php // PHP file "my_class.php" class my_class{ public $property = "I'm not a class name!"; } ?> <?php // PHP file #2 functio

12/28/2009 4:49:46 PM 3 php-b...@lists.php.net ("maros dot gajdosik at gmail dot com")
#50593 [NEW]: Windows 2003 X64 NTS Installer Fails

From: giz02 at msn dot com Operating system: Windows 2003 x64 PHP version: 5.3SVN-2009-12-28 (snap) PHP Bug Type: Unknown/Other Function Bug description: Windows 2003 X64 NTS Installer Fails Description: ------------ Downloaded and attempted install of NTS VC9 X64 package "php-5.3-nts-win32-VC9-x64-latest.msi" and launched installer. Click Next, Check Accept then Click Next, Install to C:\php then click Next, Select the web server you wish to setup (I have tried FastCGI, CGI, Other, Do Not and Appache on different attempts) ERROR: The installer has enco

12/28/2009 3:12:41 PM 1 php-b...@lists.php.net ("giz02 at msn dot com")
#50592 [NEW]: Windows 2003 X64 VC9 INSTALLER MSI not working

From: giz02 at msn dot com Operating system: Windows 2003 x64 PHP version: 5.3SVN-2009-12-28 (snap) PHP Bug Type: Unknown/Other Function Bug description: Windows 2003 X64 VC9 INSTALLER MSI not working Description: ------------ Windows 2003 X64 "php-5.3-win32-VC9-x64-latest.msi" is only 852KB. Installer fails during installation at step n (" ") The 'installer' versions for the Windows x86 packages are very close in size to the 'non-installer/zip' versions. I am not sure why this one is so small - I'm suspicious that perhaps the php binaries were ommitted fr

12/28/2009 2:38:01 PM 0 php-b...@lists.php.net ("giz02 at msn dot com")
#50591 [NEW]: PHP CLI crashes

From: s dot zdrojewski at netechsrl dot it Operating system: Windows Server 2003 SP2 i386 PHP version: 5.2.12 PHP Bug Type: Windows Installer Bug description: PHP CLI crashes Description: ------------ Application error issued, Event ID 1000, php5ts.dll. Dr Watson issued an error with Exception c0000005 at address 100F34BC (php5ts!php_com_wrapper_export) Reproduce code: --------------- Any script launched from command line. Expected result: ---------------- Script execution Actual result: -------------- Application exception: App: C:\Prog

12/28/2009 1:18:35 PM 1 php-b...@lists.php.net ("s dot zdrojewski at netechsrl dot it")
#50590 [NEW]: IntlDateFormatter::parse result is limited to the integer range

From: a dot farhadi at gmail dot com Operating system: Ubuntu PHP version: 5.3.1 PHP Bug Type: I18N and L10N related Bug description: IntlDateFormatter::parse result is limited to the integer range Description: ------------ The result of IntlDateFormatter::parse is integer and is limited to the integer range. (i.e. IntlDateFormatter::parse returns The least integer value (e.g. -2147483648 in 32-bit Platforms) when the result is out of the integer range.) Reproduce code: --------------- $fmt = new IntlDateFormatter("en_US", IntlDateFormatter::FULL, Intl

12/28/2009 12:46:06 PM 0 php-b...@lists.php.net ("a dot farhadi at gmail dot com")
#50589 [NEW]: Feature request: Short way for multiple set of class properties

From: toorion at gmail dot com Operating system: All PHP version: 5.3.2RC1 PHP Bug Type: Feature/Change Request Bug description: Feature request: Short way for multiple set of class properties Description: ------------ Background: Wery often set plenty of properties together is necessary. So, for traditional way it is requre many of copy-paste action and produce much of code. Actualy, excellent way for that - short syntax of class property settings. Reproduce code: --------------- Unliked case: $myLongNameObject = new MyLongNameObject(); $myLongNameObje

12/28/2009 12:34:25 PM 0 php-b...@lists.php.net ("toorion at gmail dot com")
#50587 [NEW]: The missing trailing slash on the url make an request error.

From: thundix at web dot de Operating system: Windows PHP version: 5.2.12 PHP Bug Type: URL related Bug description: The missing trailing slash on the url make an request error. Description: ------------ Request URL: http://google.de Response Body: "The site � www.google.de/test.php � doesn�t exists." Request URL: http://google.de/ => It works! Same problem have andychr17 at hotmail dot com See note here: http://de.php.net/manual/de/function.httprequest-construct.php Reproduce code: --------------- <?php //=> Try it with http://www.google.de and

12/28/2009 3:41:03 AM 7 php-b...@lists.php.net ("thundix at web dot de")
#50586 [NEW]: Greater than operator '>' causes script to drop out of PHP into HTML

From: mike at repartee dot co dot uk Operating system: Windows 7 PHP version: 5.3.2RC1 PHP Bug Type: *Programming Data Structures Bug description: Greater than operator '>' causes script to drop out of PHP into HTML Description: ------------ I have an old PHP script embedded in a page that is mostly html that includes the expression: if ($number > "2") ..... This has been working fine up to now but having installed PHP 5.3.1 a few days ago (updated to 5.3.2 today) locally on my new Windows 7 PC, I find that when I run the web page containing the above b

12/27/2009 11:59:10 PM 1 php-b...@lists.php.net ("mike at repartee dot co dot uk")
#50585 [NEW]: infinite recursive call in ob_011.phpt crashes solaris

From: michael at schmidt2 dot de Operating system: Solaris 10, sparc PHP version: 5.3.1 PHP Bug Type: Reproducible crash Bug description: infinite recursive call in ob_011.phpt crashes solaris Description: ------------ When you call : make test TESTS=./tests/output/ob_011.phpt The system crashes within 10 seconds. (CPU usage goes to 100% and system freezes in about 10 seconds. No ping. Console access is dead too.) see also bug: 49292 Reproduce code: --------------- tests/output/ob_011.phpt Expected result: ---------------- PID USER

12/27/2009 12:51:15 PM 1 php-b...@lists.php.net ("michael at schmidt2 dot de")
#50584 [NEW]: Windows installer does not configure Apache in silent mode

From: mkucej at yahoo dot com Operating system: Windows XP SP2 PHP version: 5.3.1 PHP Bug Type: Windows Installer Bug description: Windows installer does not configure Apache in silent mode Description: ------------ Windows installer does not configure Apache in silent mode. It will insert the following into the httpd.conf: #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL This happens only in the silent mode. Reproduce code: --------------- msiexec /I php.msi /qn+ INSTALLDIR="C:\Program Files\P

12/26/2009 11:52:13 PM 0 php-b...@lists.php.net ("mkucej at yahoo dot com")
#50583 [NEW]: PHP Installer needs to support side by side installlation

From: ksingla at microsoft dot com Operating system: Windows PHP version: 5.3.1 PHP Bug Type: Windows Installer Bug description: PHP Installer needs to support side by side installlation Description: ------------ In order to support side-by-side installation of PHP 5.2 and 5.3 by Microsoft Web Platform Installer, PHP installer needs to support side by side setup. To get to a version specific installation, I think following changes will be required a. Currently, PHP is installed to %PROGRAMFILES(X86)%\PHP or %PROGRAMFILES%\PHP. This should change to %PROGR

12/26/2009 11:28:18 PM 0 php-b...@lists.php.net ("ksingla at microsoft dot com")
#50582 [NEW]: Incorrect foreach iteration by value after iteration by reference

From: mwacker at cornellsun dot com Operating system: Ubuntu 9.10 PHP version: 5.3.1 PHP Bug Type: Arrays related Bug description: Incorrect foreach iteration by value after iteration by reference Description: ------------ A variable acts weird when it is used as a reference variable inside a foreach loop and then as a regular variable inside a foreach loop. (Originally seen in 5.2.10-2ubuntu6.3, repro'd in a fresh 5.3.1 install) Reproduce code: --------------- $ii = array(1, 2, 3); foreach ($ii as &$i) echo $i; foreach ($ii as $i) echo $i; Expected r

12/26/2009 10:48:19 PM 2 php-b...@lists.php.net ("mwacker at cornellsun dot com")
#50581 [NEW]: php.ini inconsitency

From: stevenmartin99 at gmail dot com Operating system: windows PHP version: 5.3SVN-2009-12-26 (snap) PHP Bug Type: Feature/Change Request Bug description: php.ini inconsitency Description: ------------ in the php.ini with php5.3.0 there is 6lines that are not consistant with the layout of the ini file these two line below have comments written on the same line.the stand is before them [967] => ;extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client [968] => ;extension=php_oci8_11g.dll ; Use with Oracle 11g Instant Client ---

12/26/2009 8:14:24 PM 0 php-b...@lists.php.net ("stevenmartin99 at gmail dot com")
#50580 [NEW]: mysql_insert_id not returning last inserted ID

From: michaelozeryansky at hotmail dot com Operating system: Windows XP Pro SP 3 PHP version: 5.3.1 PHP Bug Type: MySQL related Bug description: mysql_insert_id not returning last inserted ID Description: ------------ I have never used mysql_insert_id() before, but I think its not too hard to get right. From what I know it will return "The ID generated for an AUTO_INCREMENT column by the previous query on success" as stated on php.net/manual. When I run my insert query, which inserts multiple(10) rows, the mysql_insert_id only gives the 'first' id used and

12/26/2009 5:28:32 PM 2 php-b...@lists.php.net ("michaelozeryansky at hotmail dot com")
#50579 [NEW]: RegexIterator::REPLACE doesn't work

From: team at fazend dot com Operating system: MacOS PHP version: 5.3.1 PHP Bug Type: SPL related Bug description: RegexIterator::REPLACE doesn't work Description: ------------ RegexIterator::REPLACE doesn't work as it is supposed to do. The code example attached should return something, but it returns nothing. Reproduce code: --------------- $i = new RegexIterator( new ArrayIterator(array( 'test1'=>'test888', 'test2'=>'what?', 'test3'=>'test999')), '/^test(.*)/', RegexIterator::REPLACE); foreach ($i as $name=>$value) echo $

12/26/2009 1:18:29 PM 1 php-b...@lists.php.net ("team at fazend dot com")
#50578 [NEW]: incorrect shebang in phar.phar

From: Fedora at FamilleCollet dot com Operating system: Linux (Fedora 12) PHP version: 5.3.2RC1 PHP Bug Type: PHAR related Bug description: incorrect shebang in phar.phar Description: ------------ default PHP_PHARCMD_BANG is PHP_EXCUTABLE which is relative to top_builddir. This result to a php.phar which include a bad path to php. Until PHP 5.3.1, PHP_EXCUTABLE was not set (by default) on Makefile, so all works fine With 5.3.2RC1, PHP_EXCUTABLE is set to $(top_builddir)/$(SAPI_CLI_PATH) -- Edit bug report at http://bugs.php.net/?id=50578&edi

12/26/2009 12:26:46 PM 1 php-b...@lists.php.net ("Fedora at FamilleCollet dot com")
#50576 [NEW]: XML_OPTION_SKIP_TAGSTART option has no effect

From: pgacv2 at gmail dot com Operating system: Ubuntu 9.10 PHP version: 5.2.12 PHP Bug Type: XML related Bug description: XML_OPTION_SKIP_TAGSTART option has no effect Description: ------------ I'm actually running PHP 5.2.10 (that came with Ubuntu 9.10), but I can't compile a newer snapshot because my system suffers from bug https://bugs.launchpad.net/ubuntu/+bug/81057 and the make install hangs when trying to fetch http://pear.php.net/install-pear-nozlib.phar. But there's nothing in the bug database with "XML_OPTION_SKIP_TAGSTART," so maybe no one's notic

12/26/2009 5:16:44 AM 1 php-b...@lists.php.net ("pgacv2 at gmail dot com")
#50575 [NEW]: PDO_PGSQL LOBs are not compatible with PostgreSQL 8.5

From: mbeccati@php.net Operating system: * PHP version: 5.2.12 PHP Bug Type: PDO related Bug description: PDO_PGSQL LOBs are not compatible with PostgreSQL 8.5 Description: ------------ Tested with 8.5alpha3. Some 5.3+ improvemnts were not backported to 5.2. Specifically ones that were raising the minimum requirements. PDO_PGSQL in PHP 5.2 doesn't use PQunescapeBytea, but a copy of its code taken from an old version of Postgres, thus can't properly decode bytea fields on 8.5 because the default encoding has changed to the new "hex" format, while 5.3+ can.

12/25/2009 8:01:08 PM 1 php-b...@lists.php.net ("mbecc...@php.net")
#50574 [NEW]: PDO prepared statement failed with UPDATE and WHERE conditions

From: ajulien at gmail dot com Operating system: OSX 10.6 PHP version: 5.2.12 PHP Bug Type: PDO related Bug description: PDO prepared statement failed with UPDATE and WHERE conditions Description: ------------ A simple prepared statement will fail with « bind or column index out of range » in some cases Reproduce code: --------------- $prep = $db->prepare('UPDATE "users" SET "force" = ? WHERE ( "user" = ? )'); $prep->execute(array('bar','foo')); Expected result: ---------------- The update should be executed Actual result: -------------- « b

12/25/2009 4:21:51 PM 1 php-b...@lists.php.net ("ajulien at gmail dot com")
#50573 [NEW]: fgetcsv cann't process "\\� � � "

From: dulao5 at gmail dot com Operating system: linux PHP version: 5.2.12 PHP Bug Type: Streams related Bug description: fgetcsv cann't process "\\def" Description: ------------ fgetcsv cann't process "\\def" . (But "\\def" is OK). Reproduce code: --------------- php -r "fputcsv(STDOUT, array('abc\\def', 'field2'));" | php -r "var_dump(fgetcsv(STDIN));" Expected result: ---------------- array(2) { [0]=> string(13) "abc\def" [1]=> string(6) "field2" } Actual result: -------------- array(1) { [0]=> string(22) "abc\def",f

12/25/2009 3:47:23 AM 1 php-b...@lists.php.net ("dulao5 at gmail dot com")
#50572 [NEW]: <?xml Header not Special Cased

From: rarpsl at banet dot net Operating system: PHP PHP version: 5.2.12 PHP Bug Type: Feature/Change Request Bug description: <?xml Header not Special Cased Description: ------------ For over 6 years (or more) PHP has refused to accept a valid XHTML pages that begin with the a <?xml version="1.0" encoding="utf-8"?> tag. While this bug can be worked around by using an echo command to output the tag, this makes the code non-compliant with verifiers that do not see the echo'ed tag but only the PHP code itself. Since the first line in an XHTML page can be the

12/25/2009 12:14:09 AM 2 php-b...@lists.php.net ("rarpsl at banet dot net")
#50571 [NEW]: Performance Mysqli in php 5.3.1 signific slower than 5.2.6

From: millennium at qme dot nl Operating system: Windows Server 2003 PHP version: 5.3.1 PHP Bug Type: MySQLi related Bug description: Performance Mysqli in php 5.3.1 signific slower than 5.2.6 Description: ------------ The performance of Mysqli in php5.3.1(mysqlnd) is signific slower than the performance in php 5.2.6. (I know it's not the best code, but it's in production, and I would expect 5.3.1 is as fast as 5.2.6 or faster. Reproduce code: --------------- <?php $SERVER = "127.0.0.1"; $USERNAME = ""; $PASSWORD = ""; $DATABASENAME = "";

12/24/2009 11:01:40 PM 5 php-b...@lists.php.net ("millennium at qme dot nl")
#50570 [NEW]: str_replace doesn't work with URL replacement

From: julijan dot andjelic at gmail dot com Operating system: Linux Mint 7 (2.6.28-17-generic) PHP version: 5.3.1 PHP Bug Type: Streams related Bug description: str_replace doesn't work with URL replacement Description: ------------ When using str_replace with 2 arrays and 1 of them contains URL-s the result gets messed up. I provided a code snippet which shows it. Reproduce code: --------------- <?php $str='I love a b c'; $array0=array('a','b','c'); $array1=array('http://www.example.com/1.html','http://www.example.com/2.html','http://www.example.com

12/24/2009 3:57:02 PM 0 php-b...@lists.php.net ("julijan dot andjelic at gmail dot com")
#50567 [NEW]: cron execution with safe-mode fails on file_exists

From: svecpetr at svecpetr dot com Operating system: freebsd PHP version: 5.2SVN-2009-12-24 (snap) PHP Bug Type: Filesystem function related Bug description: cron execution with safe-mode fails on file_exists Description: ------------ read how reproduce this bug FIRST!!! try execute file_exists($_SERVER['SCRIPT_FILENAME']); $_SERVER['SCRIPT_FILENAME'] is '/DISK2/WWW/xxx.cz/www/index.php' it fails with error: Warning: file_exists(): open_basedir restriction in effect. File(underconstruction.html) is not within the allowed path(s): (/DISK2/WWW:/DISK3/

12/24/2009 9:36:31 AM 4 php-b...@lists.php.net ("svecpetr at svecpetr dot com")
#50564 [NEW]: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in ...

From: wyattstorch42 at gmail dot com Operating system: Linux PHP version: 5.2.12 PHP Bug Type: Strings related Bug description: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in ... Description: ------------ Hello, I have slaved over this one line of code and confirmed that there is absolutely nothing wrong with it. I have even modified it and received the same error. The error even persists when the line is commented out. I receive a parse error as well as a warning for the backslash. Reproduce code: --------------- <?php $contents

12/23/2009 6:32:23 PM 1 php-b...@lists.php.net ("wyattstorch42 at gmail dot com")
#50563 [NEW]: removing E_WARNING from parse_url()

From: philip@php.net Operating system: N/A PHP version: 5.3.2RC1 PHP Bug Type: URL related Bug description: removing E_WARNING from parse_url() Description: ------------ parse_url() does not need to emit an E_WARNING upon failure, as instead it returns false. Doing both basically requires people to use @. -- Edit bug report at http://bugs.php.net/?id=50563&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50563&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50563&r=trysnapshot53 Try a

12/23/2009 4:52:59 PM 1 php-b...@lists.php.net ("phi...@php.net")
#50562 [NEW]: FILTER_VALIDATE_URL is broken

From: philip@php.net Operating system: N/A PHP version: 5.3.2RC1 PHP Bug Type: Filter related Bug description: FILTER_VALIDATE_URL is broken Description: ------------ While attempting to use FILTER_VALIDATE_URL, I notice it gets negative press. Here's one such piece of press: http://www.talkincode.com/php-filter-filter_validate_url-limitations- 124.html Ideally FILTER_VALIDATE_URL would behave as most would expect, and that's checking if an URL is valid... as most people do with long-ish regular expressions. Please also provide tips for how this s

12/23/2009 4:41:07 PM 0 php-b...@lists.php.net ("phi...@php.net")
#50561 [NEW]: Big issue when using APC

From: sebastien dot geoffroy-1 at laposte dot net Operating system: Windows 2000 PHP version: 6SVN-2009-12-23 (SVN) PHP Bug Type: Dynamic loading Bug description: Big issue when using APC Description: ------------ Hi, My platform: - Apache 2.0.55 - PHP: 4.4.1 - apc 3.0.19 - OS Windows 2000 SP4 I can't upgrade one of them because of application's prerequesite. I took apc binary here :http://downloads.php.net/pierre/ and I choosed this one: php_apc-3.0.19-5.2-Win32-VC6-x86.zip (containing php_apc.dll Version 5.2.9.9). I try to turn on APC cache on m

12/23/2009 3:41:47 PM 1 php-b...@lists.php.net ("sebastien dot geoffroy-1 at laposte dot net")
#50560 [NEW]: preg_replace Not work in my server

From: raju dot balasundar at makeeit dot com Operating system: Linux PHP version: 5.2.12 PHP Bug Type: *Regular Expressions Bug description: preg_replace Not work in my server Description: ------------ $posting_ads = preg_replace('/\s\s+/', ' ',$posting_ads); this is work my locahost( Windows Os ); *-------------------------------------------------------------* $posting_ads value post from tinymce editor *-------------------------------------------------------------* But it's not work my server Anyone Please Help me. raju.balasundar@makeeit.com

12/23/2009 1:39:42 PM 1 php-b...@lists.php.net ("raju dot balasundar at makeeit dot com")
#50559 [NEW]: Clone is not implemented for DateInterval and DatePeriod

From: sr at emini dot dk Operating system: Fedora 10 PHP version: 5.3.1 PHP Bug Type: Date/time related Bug description: Clone is not implemented for DateInterval and DatePeriod Description: ------------ I am unable to clone an object of type DateInterval or DatePeriod. The clone appears to be an empty object. I've looked in the source and the code to clone the objects seem to be missing from both date_object_clone_interval() and date_object_clone_period(). Reproduce code: --------------- $dateInterval1 = new \DateInterval('P1D'); $dateInterval2 = clo

12/23/2009 12:04:54 PM 1 php-b...@lists.php.net ("sr at emini dot dk")
#50558 [NEW]: Broken object model when extending tidy

From: degeberg@php.net Operating system: Irrelevant PHP version: 5.3.1 PHP Bug Type: Class/Object related Bug description: Broken object model when extending tidy Description: ------------ When extending the class tidy (http://docs.php.net/class.tidy) with a subtype MyTidy, the PHP engine fails type checks for MyTidy (probably easier to explain using code). This is inconsistent with normal behavior in the object model. is_a($o, get_class($o)) should always be true if $o is an object, that is an object should always be an instance of its own class. Repro

12/23/2009 10:43:42 AM 1 php-b...@lists.php.net ("degeb...@php.net")
#50556 [NEW]: php build guru required to debug main/php_config.h generated incorrectly

From: david at davidfavor dot com Operating system: Ubuntu 9.10 PHP version: 5.3.1 PHP Bug Type: Compile Failure Bug description: php build guru required to debug main/php_config.h generated incorrectly Description: ------------ configure process generates different php_config.h files on different Ubuntu machines with identical packages installed (per dpkg -l). I've tried to decipher the ./configure process and have yet to figure it out. What I require is a php build guru to explain how to manually generate php_config.h from php_config.h.in to debug what

12/22/2009 10:09:58 PM 5 php-b...@lists.php.net ("david at davidfavor dot com")
#50555 [NEW]: Cannot retrieve output paramter from stored procedure

From: david dot wright at opticsplanet dot com Operating system: 2.6.24-24-server PHP version: 5.3.1 PHP Bug Type: PDO related Bug description: Cannot retrieve output paramter from stored procedure Description: ------------ I cannot retrieve an output parameter from a stored procedure (in my case on SQL Server 2005--am using PDO_DBLIB. Reproduce code: --------------- PHP Code: --------------------------------------------------- /** SNIP. Set up a valid $db here! **/ $return_value = 999; $sth = $db->prepare("EXEC dbo.opsp_Test ?"); $sth->bindParam(1, $r

12/22/2009 10:09:40 PM 0 php-b...@lists.php.net ("david dot wright at opticsplanet dot com")
#50553 [NEW]: Multiple curl_exec and curl_close looses host

From: levi_tedder at hotmail dot com Operating system: Windows XP, Windows 2003 PHP version: 5.2.12 PHP Bug Type: cURL related Bug description: Multiple curl_exec and curl_close looses host Description: ------------ If you have a web server host that responds very quickly and you're doing a lot of requests on it, curl will eventually respond "couldn't connect to host". This happens on my Windows XP machine and Windows 2003 server, but I've been unable to reproduce on Windows 2008. If I add a delay with usleep(50000) it seems to be ok. I'm not sure if this is

12/22/2009 8:00:49 AM 0 php-b...@lists.php.net ("levi_tedder at hotmail dot com")
#50552 [NEW]: Add function to get all used namespaces

From: kristopherwilson at gmail dot com Operating system: Any PHP version: 5.3.1 PHP Bug Type: Feature/Change Request Bug description: Add function to get all used namespaces Description: ------------ Provide a function for returning all namespaces used in the current request to aid in autoloading. Reproduce code: --------------- <?php use My\Namespace; use Other\Namespace; print_r(get_used_namespaces()); ?> Expected result: ---------------- Array( [0] = My\Namespace, [1] = Other\Namespace ) Actual result: ------------

12/22/2009 2:53:00 AM 0 php-b...@lists.php.net ("kristopherwilson at gmail dot com")
#50551 [NEW]: mb_ereg + mb_eregi crash

From: r dot badding at gmail dot com Operating system: Windows XP PHP version: 5.2.12 PHP Bug Type: Reproducible crash Bug description: mb_ereg + mb_eregi crash Description: ------------ When I make two request to the attached php file, in close proximity (so that the requests run at the same time), PHP crashes every time. If I modify the php file so that there are two mb_ereg calls, instead of one mb_ereg + one mb_eregi, I seem to get no crashes. Reproduce code: --------------- <? for ($i = 0; $i < 5000000; $i++) { mb_ereg("searching", "some

12/22/2009 12:37:19 AM 5 php-b...@lists.php.net ("r dot badding at gmail dot com")
#50547 [NEW]: SoapServer Fatal errror in WSDL mode

From: rsumibcay at reddoor dot biz Operating system: Ubuntu Linux PHP version: 5.2.12 PHP Bug Type: SOAP related Bug description: SoapServer Fatal errror in WSDL mode Description: ------------ SoapServer dies with fatal error in WSDL mode when a soap argument is a ComplexType with a member defined as int in the XSD, but the member value is passed as a non-numeric string. Reproduce code: --------------- 1. Define a ComplexType with an int data member: http://crkt190.reddoor.biz/fatalerror/complex_types.xsd 2. Define a WSDL that uses the ComplexType a

12/21/2009 8:18:01 PM 0 php-b...@lists.php.net ("rsumibcay at reddoor dot biz")
#50546 [NEW]: zend__parse_method_parameters_ex does not honour flags for procedural parameter

From: hp at oeri dot ch Operating system: any PHP version: 5.2.12 PHP Bug Type: Scripting Engine problem Bug description: zend__parse_method_parameters_ex does not honour flags for procedural parameter Description: ------------ zend_parse_method_parameters_ex can be called in a method or a plain function. Flags are - however - only respected in the OOP context and ignored in a procedural context. Parameter parsing is therefore greatly limited. Procedural context Zend_API.c:1194 (svn head) retval = zend_parse_va_args(num_args, type_spec, &va, **0** TSRML

12/21/2009 8:12:24 PM 0 php-b...@lists.php.net ("hp at oeri dot ch")
#50545 [NEW]: PHP dropping entities

From: aclark at wayfm dot com Operating system: Gentoo Linux PHP version: 5.2.12 PHP Bug Type: *General Issues Bug description: PHP dropping entities Description: ------------ After a recent PHP upgrade (to 5.2.11-r1), some existing code on a few of my sites suddenly "broke." In both instances, it's XML-related PHP code that silently and completely drops html entities from XML code. In one instance, it's an RSS feed. "<content:encoded>&lt;p&gt;Lorem..." becomes "<content:encoded>pLorem..." The (newly) offending code contains the xml_parse_into_struct

12/21/2009 5:45:52 PM 0 php-b...@lists.php.net ("aclark at wayfm dot com")
#50544 [NEW]: SOAPServer incorrectly decodes request

From: mmalone at nutshell dot com Operating system: Mac OS 10.6.2 PHP version: 5.3.1 PHP Bug Type: SOAP related Bug description: SOAPServer incorrectly decodes request Description: ------------ When working in non-WSDL mode, SoapServer passes a decoded request that is missing elements present in the raw string request. I ran into this while writing a PHP client for handling MS Exchange subscription notifications: the PHP function that I was using to handle requests was receiving a stdClass object that did not have the "Id" or "ChangeKey" elements, even thoug

12/21/2009 5:37:06 PM 1 php-b...@lists.php.net ("mmalone at nutshell dot com")
#50543 [NEW]: hardcoded CS_DT_CONVFMT results in loss of datetime precision

From: kelaskin at gmail dot com Operating system: any PHP version: 5.3.1 PHP Bug Type: Sybase-ct (ctlib) related Bug description: hardcoded CS_DT_CONVFMT results in loss of datetime precision Description: ------------ It is impossible to retrieve DATETIME values with precision higher than 1 minute (as CS_DATES_SHORT format drops seconds). The value of CS_DT_CONVFMT should be configurable in the script context. http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ocs_12.5.1.comlib/html/comlib/X37122.htm Reproduce code: --------------- php

12/21/2009 5:04:19 PM 0 php-b...@lists.php.net ("kelaskin at gmail dot com")
#50542 [NEW]: scandir() cannot open UNC paths since PHP 5.3.1

From: dd at headlineweb dot nl Operating system: W2003 PHP version: 5.3.1 PHP Bug Type: *Directory/Filesystem functions Bug description: scandir() cannot open UNC paths since PHP 5.3.1 Description: ------------ scandir() cannot open UNC paths since PHP 5.3.1 (Running under IIS 6) I've upgraded from PHP 5.2.11 tot 5.3.1 and then this function does not work anymore. this problem i have also with readdir, opendir, & glob. PHP is configured on a virtual directory, i used the PHP 5.2.11 ISAPI module and use now the PHP 5.3.1 CGI Module. I tried following

12/21/2009 2:41:33 PM 3 php-b...@lists.php.net ("dd at headlineweb dot nl")
#50541 [NEW]: Missing HEADER definition

From: spam04 at pornel dot net Operating system: Mac OS X 10.5 PHP version: 5.3SVN-2009-12-21 (snap) PHP Bug Type: Compile Failure Bug description: Missing HEADER definition Description: ------------ This is regression due to Bug #50508 Reverting this change: http://svn.php.net/viewvc/?view=revision&revision=292283 fixes the problem on Mac OS X. Actual result: -------------- /tmp/php5.3-200912211130/ext/standard/dns.c:302: error: syntax error before &#8216;HEADER&#8217; /tmp/php5.3-200912211130/ext/standard/dns.c:302: warning: no semicolon at end

12/21/2009 12:27:38 PM 3 php-b...@lists.php.net ("spam04 at pornel dot net")
#50540 [NEW]: Segmentation fault with "free:invalid pointer while running ldap unit tests

From: sriram dot natarajan at gmail dot com Operating system: RHEL5.2 PHP version: 5.2SVN-2009-12-21 (snap) PHP Bug Type: LDAP related Bug description: Segmentation fault with "free:invalid pointer while running ldap unit tests Description: ------------ found segmentation fault on free with invalid pointer while running php ldap unit test cases on Redhat enterprise linux 5.2 (64-bit) PASS ldap_next_attribute() - Testing ldap_next_attribute() that should fail [ext/ldap/tests/ldap_next_attribute_error.phpt] PASS ldap_next_entry() - Basic ldap_first_entry te

12/21/2009 9:29:23 AM 5 php-b...@lists.php.net ("sriram dot natarajan at gmail dot com")
#50537 [NEW]: BugID: 50226

From: dax at enst dot fr Operating system: Solaris9 PHP version: 5.3.1 PHP Bug Type: Compile Failure Bug description: BugID: 50226 Description: ------------ IMHO, it seems to me that the fix of the Bug-id 50226 by Jani in php_date.c is wrong. Really, are you sure at line 38 it is #ifndef HAVE_LLABS and not #ifdef HAVE_LLABS ? With #ifdef the compilation runs finely until the end. Please can you check ? Philippe Reproduce code: --------------- #ifdef PHP_WIN32 # include "win32/php_stdint.h" #endif #ifdef HAVE_LLABS # if defined(__GNUC__) && __G

12/20/2009 3:23:00 PM 2 php-b...@lists.php.net ("dax at enst dot fr")
#50536 [NEW]: code error(select db)

From: greenfish629_ at hotmail dot com Operating system: Linux Ubuntu 9.04 PHP version: 5.3.1 PHP Bug Type: Compile Failure Bug description: code error(select db) Description: ------------ Where is mysql_select_db ? Reproduce code: --------------- --- From manual page: function.mysql-result#23 --- <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$link) { die('Could not connect: ' . mysql_error()); } $result = mysql_query('SELECT name FROM work.employee'); /*Added by USER*/ mysql_select_db('test'); /**************/

12/20/2009 7:18:40 AM 2 php-b...@lists.php.net ("greenfish629_ at hotmail dot com")
#50535 [NEW]: Undocumented and unintended? behaviour

From: bobkellock at gofast dot co dot uk Operating system: Win XP SP2 PHP version: 5.2.12 PHP Bug Type: GD related Bug description: Undocumented and unintended? behaviour Description: ------------ PHP version is actually 5.2.10 which is what is run on the server at One.com but is due to be upgraded to 5.3 on 2010-01-04. imagecreatefromjpeg and other imagecreatefromxxx functions put up "Image" in a small rectangle on the centre of the screen. This is unsightly in my application which simply creates the image and overlays it with some text using imagestrin

12/20/2009 1:03:11 AM 5 php-b...@lists.php.net ("bobkellock at gofast dot co dot uk")
#50534 [NEW]: strtotime does not return false with wrong input

From: scripting at frag-em dot com Operating system: CentOS 4.3 PHP version: 5.2.12 PHP Bug Type: Date/time related Bug description: strtotime does not return false with wrong input Description: ------------ strtotime parses some forms of characters (probably as long as there is a separation with dots) to timestamps. If there's no real date, it fails to return false. date_default_timezone_set has been properly set Reproduce code: --------------- date_default_timezone_set('Europe/Amsterdam'); $time = strtotime("T.B.A."); var_dump($time); $time = strto

12/19/2009 11:51:35 PM 0 php-b...@lists.php.net ("scripting at frag-em dot com")
#50533 [NEW]: max_execution_time don't work

From: sworddragon2 at aol dot com Operating system: Windows XP Professional SP3 PHP version: 5.3.1 PHP Bug Type: PHP options/info functions Bug description: max_execution_time don't work Description: ------------ I have changed max_execution_time in the php.ini to 0 and restarted Apache 2.2.14 but the configuration have been ignored. PHP still uses 10 seconds. Reproduce code: --------------- <?php while(0===0); ?> Expected result: ---------------- I expect to see nothing because of the infinite loop and max_execution time of 0 seconds. Actual re

12/19/2009 12:48:12 PM 1 php-b...@lists.php.net ("sworddragon2 at aol dot com")
#50532 [NEW]: Lazy-evaluated multiple-array foreach

From: jsimlo at yahoo dot com Operating system: irrelevant PHP version: 5.3.1 PHP Bug Type: Feature/Change Request Bug description: Lazy-evaluated multiple-array foreach Description: ------------ I would like to suggest an extended foreach syntax like this: <?php foreach ($a, $b, $c as $k => $i) echo $i; ?> Which would result in the same execution as current: <?php foreach (array ($a, $b, $c) as $x) foreach ($x as $k => $i); echo $i; ?> The reason for requesting this is (simplicity and) possibility of lazy-evaluation of the source arrays. The

12/19/2009 12:38:05 PM 0 php-b...@lists.php.net ("jsimlo at yahoo dot com")
#50531 [NEW]: CLI script crashes with PHP Fatal error: Maximum execution time of 200 seconds

From: net_php at mojocafe dot jp Operating system: OS 10.6.2 PHP version: 5.3.1 PHP Bug Type: Reproducible crash Bug description: CLI script crashes with PHP Fatal error: Maximum execution time of 200 seconds Description: ------------ I have a long running script that crashes with the following message: PHP Fatal error: Maximum execution time of 200 seconds exceeded in xxx on line xxx Whichever I used I get the above timeout of 200 seconds after maybe 10-20 minutes of the script running. I can't find 200 seconds anywhere in any of the settings.

12/19/2009 11:20:21 AM 11 php-b...@lists.php.net ("net_php at mojocafe dot jp")
#50527 [NEW]: In the setup code file use of \\localhost\Admin$ creates problem

From: don dot raman at microsoft dot com Operating system: Windows PHP version: 5.2.12 PHP Bug Type: Windows Installer Bug description: In the setup code file use of \\localhost\Admin$ creates problem Description: ------------ The PHP MSI while configuring IIS FastCGI on 64 bit machine uses \\localhost\Admin$ to overcome SYSWOW64 redirection. I have found machine where \\localhost\Admin$ is not reachable. This fails running of fcgiext.js script which means the FastCGI script mapping is missing on those machine. This leads to a bad user experience. Another

12/18/2009 11:33:39 PM 0 php-b...@lists.php.net ("don dot raman at microsoft dot com")
#50526 [NEW]: stream_stat needs Context

From: codeslinger at compsalot dot com Operating system: any PHP version: 5.2.12 PHP Bug Type: Feature/Change Request Bug description: stream_stat needs Context Description: ------------ Feature Request: the stream wrapper functions are *totally awesome* :-) !!! but the "stat" family of functions is limited by the lack of a "context" param. For instance I need to be able to provide a user name and password for a particular connection. for opendir mkdir fopen etc. I am able to pass a context with that info and everything works. But then when I try

12/18/2009 9:37:00 PM 1 php-b...@lists.php.net ("codeslinger at compsalot dot com")
#50524 [NEW]: proc_open is using a wrong initial working dir

From: carsten_sttgt at gmx dot de Operating system: Windows_NT PHP version: 5.3.1 PHP Bug Type: Program Execution Bug description: proc_open is using a wrong initial working dir Description: ------------ Hello, each program execution function: - exec() - passthru() - shell_exec() - system() - backtick operator or popen() is using the current script (working) directory as working directory for the command which is executed. Only proc_open() is using a different directory: - for apache2handler it the Apache ServerRoot - for CGI it's the php-cgi.exe d

12/18/2009 7:33:35 PM 4 php-b...@lists.php.net ("carsten_sttgt at gmx dot de")
#50523 [NEW]: curl_getinfo() retains old data when handle reused

From: geozipp at excite dot com Operating system: Windows PHP version: 5.3.1 PHP Bug Type: cURL related Bug description: curl_getinfo() retains old data when handle reused Description: ------------ When the curl handle is reused, curl_getinfo() contains the previous download_content_length value if the current url header contains no Content-Length: header. Reproduce code: --------------- $url_list = array('http://example.com', 'http://php.net'); $ch = curl_init(); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_HEADER, true); foreach

12/18/2009 6:51:59 PM 1 php-b...@lists.php.net ("geozipp at excite dot com")
#50520 [NEW]: fallbackmap.h missing entry for GMT-8 without daylight saving time

From: chikei at gmail dot com Operating system: FreeBSD 7.2 PHP version: 5.3SVN-2009-12-18 (snap) PHP Bug Type: Date/time related Bug description: fallbackmap.h missing entry for GMT-8 without daylight saving time Description: ------------ In ext/date/lib/fallbackmap.h you have: { "krat", 0, 7, "Asia/Krasnoyarsk" }, { "krast", 1, 8, "Asia/Krasnoyarsk" }, { "jst", 0, 9, "Asia/Tokyo" }, but lots east Asia region do not use daylight saving time. And in the test server if I use /usr/share/zoneinfo/Etc/GMT-8 as /etc/local

12/18/2009 4:39:39 PM 1 php-b...@lists.php.net ("chikei at gmail dot com")

Pages: 2 3









Newest Articles

#50656 [NEW]: Assign constant to var causes syntax error
1/4/2010 3:07:07 PM

#50655 [NEW]: fgets(): French translation error
1/4/2010 2:40:48 PM

note 95459 added to domnode.haschildnodes
1/4/2010 1:53:44 PM

note 95458 added to function.readdir
1/4/2010 1:36:41 PM

Hola
1/4/2010 1:29:49 PM