#50308 [NEW]: session id not appended properly for empty anchor tags
From: Dormilich at netscape dot net Operating system: Linux PHP version: 5.2.11 PHP Bug Type: Session related Bug description: session id not appended properly for empty anchor tags Description: I created a Suckerfish Dropdown Menu via XSLT, which contains empty anchor elements (). If Cookies are disabled the Session ID should be appended at the end of the href attribute value (URL) but it is appended after the closing slash of the element, rendering the XHTML invalid. However, "normal" hyperlinks (link text) are not affected. Configure Command: './configure' '--prefix=/usr/local/php5' '--with-config-file- path=/etc/php5' '--with-openssl' '--with-xsl' '--with-xmlrpc' '-- enable-mbstring' '--enable-mbregex' '--enable-wddx' '--with- gettext=/usr' '--with-mysql=/usr/local/mysql' '--with- mysqli=/usr/local/mysql/bin/mysql_config' '--with-mcrypt=/usr/lib64/' '--with-apache=../apache_current/' '--with-freetype-dir=/usr/local' '- -with-t1lib=/usr/local' '--with-gd' '--enable-gd-native-ttf' '--with- jpeg-dir=/usr/local' '--enable-exif' '--with-png-dir=/usr/local/lib' '--with-zlib' '--with-curl' '--enable-bcmath' '--enable-calendar' '-- enable-discard-path' '--enable-shared' '--enable-force-cgi-redirect' '--with-pdo-mysql=/usr/local/mysql' '--enable-soap' Reproduce code: --- Expected result: Actual result: -- -- Edit bug report at http://bugs.php.net/?id=50308&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50308&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50308&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50308&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50308&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50308&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50308&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50308&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50308&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50308&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50308&r=support Expected behavior: http://bugs.php.net/fix.php?id=50308&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50308&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50308&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50308&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50308&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=50308&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50308&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50308&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50308&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50308&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50308&r=mysqlcfg
#48290 [WFx]: auto escape for variables in double quoted sql string
ID: 48290 User updated by: kexianbin at diyism dot com Reported By: kexianbin at diyism dot com Status: Wont fix Bug Type: Feature/Change Request Operating System: Irrelevant PHP Version: 5.3.2 New Comment: Rasmus, Another way, similar to reserved word 'global' to inherit variables from global scope, why can't we add a reserved word 'inherit' to inherit varialbes from parent scope? I think it's very useful since it's a great advantage now aday in javascript communities. Malcolm Previous Comments: [2009-11-19 07:12:38] ras...@php.net We did get rid of it. [2009-11-19 07:12:06] kexianbin at diyism dot com For matching preciseness, we could only support the format: "...{#BatchId}...", not to support this format: "...#BatchId...". [2009-11-19 07:07:51] kexianbin at diyism dot com Rasmus, We really should to get rid of sql string auto escape in data of POST, GET, COOKIE etc, instead, we put off the sql string auto escape right before the sql string to be executed. [2009-11-11 01:52:04] kexianbin at diyism dot com Derick, The problem is right in prepared statements: $sql=$pdo->prepare("select * from sem_SearchChangeShow where Keyword=:Keyword and BatchNum=:BatchNum and OldChannelID=:ApvChannelID_old and OldCategoryID=:ApvCategoryID_old "); $sql->execute(array(':Keyword'=>$Keyword, ':BatchNum'=>$BatchNum, ':ApvChannelID_old'=>$ApvChannelID_old, ':ApvCategoryID_old'=>$ApvCategoryID_old ) ); $data=$sql->fetch(PDO::FETCH_ASSOC); We need not preparation similar to other languages, we need immediate escape and parse for varialbles in query strings: $rs=$pdo->query("select * from sem_SearchChangeShow where Keyword={#Keyword} and BatchNum={#BatchNum} and OldChannelID={#ApvChannelID_old} and OldCategoryID={#ApvCategoryID_old} "); $data=$rs->fetch(PDO::FETCH_ASSOC); [2009-11-10 10:21:09] der...@php.net Stop spamming this bug system, you use prepared statements in this case. 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/48290 -- Edit this bug report at http://bugs.php.net/?id=48290&edit=1
#50303 [Bgs]: A few different autotools issues
ID: 50303 User updated by: galtgendo at o2 dot pl Reported By: galtgendo at o2 dot pl Status: Bogus Bug Type: Compile Failure Operating System: Linux PHP Version: 5.2.11 New Comment: As for pkg-config, it's just an idea, but: - it's cleaner - what if curl does the same thing that gnutls did - drops it's custom script ? Previous Comments: [2009-11-26 11:07:28] galtgendo at o2 dot pl As for 1 - I could quote a part of autoconf info page at you once again, but ...oh,well As for 2 - in ext/curl/interface.c you have: # if defined(HAVE_GCRYPT_H) #define PHP_CURL_NEED_GNUTLS_TSL #include # else ... # endif But if you use AC_CHECK_HEADER, HAVE_GCRYPT_H never gets defined, even if the header gets properly detected. And I don't see how any of AC_TRY_RUN in ext/curl/config.m4 could succeed without libcurl being added to LIBS for those tests. [2009-11-26 10:05:46] j...@php.net 1. Wont fix 2. No idea what bug that is. And last but not least: DO NOT report multiple issues in one report. [2009-11-26 00:35:42] galtgendo at o2 dot pl Description: Seeing that bug 50291 got accepted, I'd like to readdress a few issues, some of which I already address here (some of them were bogus, other were not). 1. Gentoo bug 151444 - '--as-needed' problem a.k.a. using LDFLAGS instead of libs while Gentoo is using a different fix now, I still keep a patch (quite a bit reduced, compared to the one in the bug), that modifies PHP_CHECK_LIBRARY to use LIBS instead of LDFLAGS - it modifies a few other ext specific macros too; it "works for me" for over a year now, but I'm not building all exts, so it could use some polishing 2. Gentoo bug 275240 - curl.m4 while changing from curl-config to pkg-config is just an idea (curl, just as php needs to be kept up to date, due to security, so it shouldn't be a big problem), AC_CHECK_HEADER -> AC_CHECK_HEADERS is required for things to work -- Edit this bug report at http://bugs.php.net/?id=50303&edit=1
#50303 [Bgs]: A few different autotools issues
ID: 50303 User updated by: galtgendo at o2 dot pl Reported By: galtgendo at o2 dot pl Status: Bogus Bug Type: Compile Failure Operating System: Linux PHP Version: 5.2.11 New Comment: As for 1 - I could quote a part of autoconf info page at you once again, but ...oh,well As for 2 - in ext/curl/interface.c you have: # if defined(HAVE_GCRYPT_H) #define PHP_CURL_NEED_GNUTLS_TSL #include # else ... # endif But if you use AC_CHECK_HEADER, HAVE_GCRYPT_H never gets defined, even if the header gets properly detected. And I don't see how any of AC_TRY_RUN in ext/curl/config.m4 could succeed without libcurl being added to LIBS for those tests. Previous Comments: [2009-11-26 10:05:46] j...@php.net 1. Wont fix 2. No idea what bug that is. And last but not least: DO NOT report multiple issues in one report. [2009-11-26 00:35:42] galtgendo at o2 dot pl Description: Seeing that bug 50291 got accepted, I'd like to readdress a few issues, some of which I already address here (some of them were bogus, other were not). 1. Gentoo bug 151444 - '--as-needed' problem a.k.a. using LDFLAGS instead of libs while Gentoo is using a different fix now, I still keep a patch (quite a bit reduced, compared to the one in the bug), that modifies PHP_CHECK_LIBRARY to use LIBS instead of LDFLAGS - it modifies a few other ext specific macros too; it "works for me" for over a year now, but I'm not building all exts, so it could use some polishing 2. Gentoo bug 275240 - curl.m4 while changing from curl-config to pkg-config is just an idea (curl, just as php needs to be kept up to date, due to security, so it shouldn't be a big problem), AC_CHECK_HEADER -> AC_CHECK_HEADERS is required for things to work -- Edit this bug report at http://bugs.php.net/?id=50303&edit=1
#50299 [Fbk->Opn]: method is called in context of another object
ID: 50299 User updated by: shepik at yandex dot ru Reported By: shepik at yandex dot ru -Status: Feedback +Status: Open Bug Type: SPL related Operating System: * PHP Version: 5.3SVN-2009-11-25 (snap) New Comment: she...@samoval ~/php-5.3-200911260930 $ gdb sapi/cli/php GNU gdb 6.8 [..] This GDB was configured as "i686-pc-linux-gnu"... (gdb) run test_variant2.php Starting program: /home/shepik/php-5.3-200911260930/sapi/cli/php test_variant2.php rewind on Foo Program received signal SIGSEGV, Segmentation fault. 0x083a67d7 in zend_get_class_entry (zobject=0x8e536c0) at /home/shepik/php-5.3-200911260930/Zend/zend_API.c:230 230 if (Z_OBJ_HT_P(zobject)->get_class_entry) { (gdb) bt #0 0x083a67d7 in zend_get_class_entry (zobject=0x8e536c0) at /home/shepik/php-5.3-200911260930/Zend/zend_API.c:230 #1 0x083bef20 in zend_call_method (object_pp=0xbfc6b3cc, obj_ce=0x8e50038, fn_proxy=0x8e50170, function_name=0x87194c5 "valid", function_name_len=5, retval_ptr_ptr=0xbfc6b3c8, param_count=0, arg1=0x0, arg2=0x0) at /home/shepik/php-5.3-200911260930/Zend/zend_interfaces.c:88 #2 0x083bf1d9 in zend_user_it_valid (_iter=0x8e53754) at /home/shepik/php-5.3-200911260930/Zend/zend_interfaces.c:163 #3 0x08446999 in ZEND_FE_RESET_SPEC_CV_HANDLER (execute_data=0x8e7dba0) at /home/shepik/php-5.3-200911260930/Zend/zend_vm_execute.h:22653 #4 0x083d0b7e in execute (op_array=0x8e51a84) at /home/shepik/php-5.3-200911260930/Zend/zend_vm_execute.h:104 #5 0x083a605e in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/shepik/php-5.3-200911260930/Zend/zend.c:1194 #6 0x0833df90 in php_execute_script (primary_file=0xbfc6d8cc) at /home/shepik/php-5.3-200911260930/main/main.c:2231 #7 0x0846b874 in main (argc=2, argv=0xbfc6da24) at /home/shepik/php-5.3-200911260930/sapi/cli/php_cli.c:1190 Previous Comments: [2009-11-26 10:18:32] ka...@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. [2009-11-25 21:56:09] shepik at yandex dot ru (and i don't know if i should select "SPL related" or "reproducible crash" category, so if i'm wrong with selecting "SPL", please correct me) [2009-11-25 21:17:57] shepik at yandex dot ru And if change code to $P = new lazyNew(function() use (&$P) { $v = new ArrayIterator(array(1,2,3,4,5)); $P = null; return $v; }); instead of fatal error, or "12345", or something else, i get segmentation fault. [2009-11-25 21:10:53] shepik at yandex dot ru Description: I tried this in php 5.3.2-dev (snapshot from 2009-11-19, latest php for windows available) and in php 5.3.0 on linux. I tried to do something like 'lazy object instantiation', and found this strange behaviour of php. Method "valid" declared in "lazyNew" class is called in context of instance of "ArrayIterator" class. Reproduce code: --- func = $func; } public function init() { if ($this->obj === null) { $func = $this->func; $this->obj = $func(); } return $this->obj; } public function current() { return $this->init()->current(); } public function valid() { echo "valid on ".get_class($this)."\n"; //also try var_dump($this) return $this->init()->valid(); } public function next() { return $this->init()->next(); } public function key() { return $this->init()->key(); } public function rewind() { echo "rewind on ".get_class($this)."\n"; return $this->init()->rewind(); } } $P = new lazyNew(function() use (&$P) { return $P = new ArrayIterator(array(1,2,3,4,5)); }); foreach ($P as $val) echo($val); ?> Expected result: rewind on lazyNew valid on lazyNew 12345 Actual result: -- rewind on lazyNew valid on ArrayIterator Fatal error: Call to undefined method ArrayIterator::init() in /storage1/www/htdocs/evectio/scripts/test.php on line 20 -- Edit this bug report
#50270 [Fbk->Tbd]: ldap_start_tls problem
ID: 50270 Updated by: paj...@php.net Reported By: jcarlos at dsi dot uclm dot es -Status: Feedback +Status: To be documented Bug Type: LDAP related Operating System: windows PHP Version: 5.3.1 New Comment: Moving to the "to be documented" state, it could be very usefull to have this info in the ldap documentation. Previous Comments: [2009-11-26 10:54:10] jcarlos at dsi dot uclm dot es A little manual, for a easy configuration INTEGRATING ACTIVE DIRECTORY WITH PHP-LDAP AND TLS == My configuration: Apache/2.2.14 (Win32) mod_ssl/2.2.14 OpenSSL/0.9.8k PHP/5.2.11 NOTE 1: At the momment, the versión 5.3.1 fail with tls NOTE 2: This example works on windows, but in linux is similar 1) Download the Certificate X.509 (PEM format) from a web browser, I used Firefox. I put the name webcert.crt 2) Create the folder c:\openldap\sysconf 3) Copy the file webcert.crt to c:\openldap\sysconf 4) With notepad you must create the file c:\openldap\sysconf\ldap.conf file. The file contents: TLS_REQCERT never TLS_CACERT c:\openldap\sysconf\webcert.crt 5) The code: [2009-11-24 10:44:19] jcarlos at dsi dot uclm dot es I have tested with: Apache/2.2.14 (Win32) mod_ssl/2.2.14 OpenSSL/0.9.8k PHP/5.2.11 (works fine) Apache/2.2.14 (Win32) mod_ssl/2.2.14 OpenSSL/0.9.8k PHP/5.3.1 (same error) [2009-11-24 09:11:21] jcarlos at dsi dot uclm dot es Also, if I'm going back to php-5.2.11 works fine, but if I change the php-5.3.1 not working sorry for my english [2009-11-24 09:02:50] jcarlos at dsi dot uclm dot es In the past, I always updated the php version and I have never had problems. I have in c:\openldap\sysconf\ the file ldap.conf TLS_REQCERT never TLS_CACERT C:\OpenLdap\sysconf\certs\cert_dom_uclm.pem I have compiled Filezilla Server with support for ldap and It works perfect now. http://forum.filezilla-project.org/viewtopic.php?f=6&t=11146 It run with AD. [2009-11-24 00:31:33] j...@php.net Check this if it helps: http://marc.info/?l=php-windows&m=116127873321748&w=2 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/50270 -- Edit this bug report at http://bugs.php.net/?id=50270&edit=1
#50270 [Com]: ldap_start_tls problem
ID: 50270 Comment by: jcarlos at dsi dot uclm dot es Reported By: jcarlos at dsi dot uclm dot es Status: Feedback Bug Type: LDAP related Operating System: windows PHP Version: 5.3.1 New Comment: A little manual, for a easy configuration INTEGRATING ACTIVE DIRECTORY WITH PHP-LDAP AND TLS == My configuration: Apache/2.2.14 (Win32) mod_ssl/2.2.14 OpenSSL/0.9.8k PHP/5.2.11 NOTE 1: At the momment, the versión 5.3.1 fail with tls NOTE 2: This example works on windows, but in linux is similar 1) Download the Certificate X.509 (PEM format) from a web browser, I used Firefox. I put the name webcert.crt 2) Create the folder c:\openldap\sysconf 3) Copy the file webcert.crt to c:\openldap\sysconf 4) With notepad you must create the file c:\openldap\sysconf\ldap.conf file. The file contents: TLS_REQCERT never TLS_CACERT c:\openldap\sysconf\webcert.crt 5) The code: Previous Comments: [2009-11-24 10:44:19] jcarlos at dsi dot uclm dot es I have tested with: Apache/2.2.14 (Win32) mod_ssl/2.2.14 OpenSSL/0.9.8k PHP/5.2.11 (works fine) Apache/2.2.14 (Win32) mod_ssl/2.2.14 OpenSSL/0.9.8k PHP/5.3.1 (same error) [2009-11-24 09:11:21] jcarlos at dsi dot uclm dot es Also, if I'm going back to php-5.2.11 works fine, but if I change the php-5.3.1 not working sorry for my english [2009-11-24 09:02:50] jcarlos at dsi dot uclm dot es In the past, I always updated the php version and I have never had problems. I have in c:\openldap\sysconf\ the file ldap.conf TLS_REQCERT never TLS_CACERT C:\OpenLdap\sysconf\certs\cert_dom_uclm.pem I have compiled Filezilla Server with support for ldap and It works perfect now. http://forum.filezilla-project.org/viewtopic.php?f=6&t=11146 It run with AD. [2009-11-24 00:31:33] j...@php.net Check this if it helps: http://marc.info/?l=php-windows&m=116127873321748&w=2 [2009-11-23 11:35:29] jcarlos at dsi dot uclm dot es $ds=ldap_connect($ldaphost); if(!ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)){ print "No puedo establecer LDAPv3"; }else if (!ldap_set_option($ds, LDAP_OPT_REFERRALS, 0)){ print "No puedo establecer LDAP_OPT_REFERRALS"; }else if (!ldap_start_tls($ds)) { // <- FAIL -- print "No puedo iniciar TLS "; }else { printf "OK"; } } 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/50270 -- Edit this bug report at http://bugs.php.net/?id=50270&edit=1
#50299 [Opn->Fbk]: method is called in context of another object
ID: 50299 Updated by: ka...@php.net Reported By: shepik at yandex dot ru -Status: Open +Status: Feedback Bug Type: SPL related -Operating System: windows / linux +Operating System: * PHP Version: 5.3SVN-2009-11-25 (snap) New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: [2009-11-25 21:56:09] shepik at yandex dot ru (and i don't know if i should select "SPL related" or "reproducible crash" category, so if i'm wrong with selecting "SPL", please correct me) [2009-11-25 21:17:57] shepik at yandex dot ru And if change code to $P = new lazyNew(function() use (&$P) { $v = new ArrayIterator(array(1,2,3,4,5)); $P = null; return $v; }); instead of fatal error, or "12345", or something else, i get segmentation fault. [2009-11-25 21:10:53] shepik at yandex dot ru Description: I tried this in php 5.3.2-dev (snapshot from 2009-11-19, latest php for windows available) and in php 5.3.0 on linux. I tried to do something like 'lazy object instantiation', and found this strange behaviour of php. Method "valid" declared in "lazyNew" class is called in context of instance of "ArrayIterator" class. Reproduce code: --- func = $func; } public function init() { if ($this->obj === null) { $func = $this->func; $this->obj = $func(); } return $this->obj; } public function current() { return $this->init()->current(); } public function valid() { echo "valid on ".get_class($this)."\n"; //also try var_dump($this) return $this->init()->valid(); } public function next() { return $this->init()->next(); } public function key() { return $this->init()->key(); } public function rewind() { echo "rewind on ".get_class($this)."\n"; return $this->init()->rewind(); } } $P = new lazyNew(function() use (&$P) { return $P = new ArrayIterator(array(1,2,3,4,5)); }); foreach ($P as $val) echo($val); ?> Expected result: rewind on lazyNew valid on lazyNew 12345 Actual result: -- rewind on lazyNew valid on ArrayIterator Fatal error: Call to undefined method ArrayIterator::init() in /storage1/www/htdocs/evectio/scripts/test.php on line 20 -- Edit this bug report at http://bugs.php.net/?id=50299&edit=1
#50304 [Bgs]: A suggestion about arrays
ID: 50304 Updated by: j...@php.net Reported By: pgreviews at gmail dot com Status: Bogus Bug Type: Feature/Change Request Operating System: Linux PHP Version: 5.3.1 New Comment: And http://php.net/array_slice :) Previous Comments: [2009-11-26 10:16:17] j...@php.net FYI: http://php.net/implode We're not gonna add another function just for this. [2009-11-26 00:57:23] pgreviews at gmail dot com Description: Hey, I have a feature suggestion that would be used with array. You'd simply set your array variable, use a new function (called, say, arygrb, for arraygrab?) and it would echo a part of the array, where you tell it to start and end, that can go across the commas and such. Something like: ); ?> Which would echo: firstsecondthird everything up from 'first' to 'third', replacing the "," with Of course, you could just echo "$array[0] $array[1] $array[2]" but what if it's user input that's in the array? What if you don't know what is in the array, and you're searching it? I think this would be handy. Hope you think so too :) -PG Reproduce code: --- --- >From manual page: faq --- ); //Would echo 'firstsecondthird, the s actually being line breaks ?> -- Edit this bug report at http://bugs.php.net/?id=50304&edit=1
#50304 [Opn->Bgs]: A suggestion about arrays
ID: 50304 Updated by: j...@php.net Reported By: pgreviews at gmail dot com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Linux PHP Version: 5.3.1 New Comment: FYI: http://php.net/implode We're not gonna add another function just for this. Previous Comments: [2009-11-26 00:57:23] pgreviews at gmail dot com Description: Hey, I have a feature suggestion that would be used with array. You'd simply set your array variable, use a new function (called, say, arygrb, for arraygrab?) and it would echo a part of the array, where you tell it to start and end, that can go across the commas and such. Something like: ); ?> Which would echo: firstsecondthird everything up from 'first' to 'third', replacing the "," with Of course, you could just echo "$array[0] $array[1] $array[2]" but what if it's user input that's in the array? What if you don't know what is in the array, and you're searching it? I think this would be handy. Hope you think so too :) -PG Reproduce code: --- --- >From manual page: faq --- ); //Would echo 'firstsecondthird, the s actually being line breaks ?> -- Edit this bug report at http://bugs.php.net/?id=50304&edit=1
#50302 [Opn->Bgs]: final private function __construct
ID: 50302 Updated by: j...@php.net Reported By: p dot reisinger at gmail dot com -Status: Open +Status: Bogus Bug Type:Class/Object related PHP Version: 5.3.1 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: [2009-11-25 22:24:55] p dot reisinger at gmail dot com Description: When somebody creates final private constructor then the class that extends this class cannot have constructor at all, even though private methods shouldn't be visible outside of the class. So final private constructor shouldn't allow calling parent::__construct(), but creating constructor should be allowed. The same happens if class has final private method, then no subclass can use method with the same name (I know that there is no point creating private final, but it seems a problem when there'll be final instance variables in the future, plus it is a problem with constructors). As I understand, parent's constructor is not called automatically, (parent::__construct() needs to be called) because if parent's constructor is private but not final then the code works. Reproduce code: --- class Test { final private function __construct() {} } class SubTest extends Test { // private methods shouldn't be visible // and I am not calling parent::__construct(); public function __construct() {} } -- Edit this bug report at http://bugs.php.net/?id=50302&edit=1
#50300 [Opn->Fbk]: PHP Warning: Error while sending QUERY packet
ID: 50300 Updated by: ka...@php.net Reported By: tejas dot net+php at gmail dot com -Status: Open +Status: Feedback Bug Type: MySQL related Operating System: CentOS v5 PHP Version: 5.3.1 New Comment: Any chance you can log a possible query that might generate this warning? Along with the MySQL server version. When replying, then change the status back to Open Previous Comments: [2009-11-25 21:17:56] tejas dot net+php at gmail dot com Description: When using the mysql_* functions (mysqlnd), I sometimes get a warning like: PHP Warning: Error while sending QUERY packet. PID=16717 in [FILE] on line [LINE] The query seems to work just fine however. Probably related to this bug here: http://bugs.php.net/bug.php?id=49761 but I'm not using Mysqli or persistent connections. FILE:LINE contains: return mysql_query( $sql, $this->_connection ); Is this a bug? -- Edit this bug report at http://bugs.php.net/?id=50300&edit=1
#50297 [Opn->Fbk]: MessageFormatter::formatMessage don't support string with accent in it
ID: 50297 Updated by: j...@php.net Reported By: pby_fr at yahoo dot fr -Status: Open +Status: Feedback -Bug Type: Unknown/Other Function +Bug Type: I18N and L10N related Operating System: Windows Vista 64 PHP Version: 5.3.1 New Comment: Try this: http://www.php.net/manual/en/messageformatter.geterrormessage.php You might have something like wrong locale there or something.. Previous Comments: [2009-11-25 20:37:49] pby_fr at yahoo dot fr Description: Using accent character in the pattern of MessageFormatter::formatMessage return an empty string. Reproduce code: --- echo (MessageFormatter::formatMessage("fr_FR", "with accent à é", array())); Expected result: to display: with accent à é Actual result: -- display nothing -- Edit this bug report at http://bugs.php.net/?id=50297&edit=1
#50303 [Opn->Bgs]: A few different autotools issues
ID: 50303 Updated by: j...@php.net Reported By: galtgendo at o2 dot pl -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Linux PHP Version: 5.2.11 New Comment: 1. Wont fix 2. No idea what bug that is. And last but not least: DO NOT report multiple issues in one report. Previous Comments: [2009-11-26 00:35:42] galtgendo at o2 dot pl Description: Seeing that bug 50291 got accepted, I'd like to readdress a few issues, some of which I already address here (some of them were bogus, other were not). 1. Gentoo bug 151444 - '--as-needed' problem a.k.a. using LDFLAGS instead of libs while Gentoo is using a different fix now, I still keep a patch (quite a bit reduced, compared to the one in the bug), that modifies PHP_CHECK_LIBRARY to use LIBS instead of LDFLAGS - it modifies a few other ext specific macros too; it "works for me" for over a year now, but I'm not building all exts, so it could use some polishing 2. Gentoo bug 275240 - curl.m4 while changing from curl-config to pkg-config is just an idea (curl, just as php needs to be kept up to date, due to security, so it shouldn't be a big problem), AC_CHECK_HEADER -> AC_CHECK_HEADERS is required for things to work -- Edit this bug report at http://bugs.php.net/?id=50303&edit=1
#50307 [Opn->Bgs]: case in_array does not recognize array var
ID: 50307 Updated by: j...@php.net Reported By: dsysko at gmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Ubuntu 9.10: 2.6.28-16 x64 PHP Version: 5.3.1 New Comment: Try var_dump($arrChoices); in that function. Then figure out what magic could bring the array in the function scope.. Previous Comments: [2009-11-26 08:29:32] dsysko at gmail dot com Description: A pre-defined array passed to in_array() within switch{case( interpreted as NULL for both flat and multi-dimensional arrays. php config: Configure Command => './configure' '--with-openssl' '--with-pgsql' '--with-tidy' '--with-zlib' '--with-curl' '--with-apxs2=/usr/sbin/apxs' '--with-gd' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-freetype-dir=/usr' '--with-zlib-dir=/usr' Reproduce code: --- $arrChoices = array('numberfood' => array('apple','pie',5) , 'monkeys' => array('frank','chimpanzee')); function notArraysWhat ($i) { switch ($i) { case (in_array($i , $arrChoices['numberfood'])): echo "$i is either a number or a food.\n"; break; case (in_array($i , $arrChoices['monkeys'])): echo "$i is a monkey, or smells like one.\n"; break; } } notArraysWhat('pie'); Expected result: STDOUT: pie is either a number or a food. Actual result: -- STDOUT: Warning: in_array() expects parameter 2 to be array, null given in /export/servers/ETG/ContentCollection/cc/testing.php on line -- Edit this bug report at http://bugs.php.net/?id=50307&edit=1
#50307 [NEW]: case in_array does not recognize array var
From: dsysko at gmail dot com Operating system: Ubuntu 9.10: 2.6.28-16 x64 PHP version: 5.3.1 PHP Bug Type: Scripting Engine problem Bug description: case in_array does not recognize array var Description: A pre-defined array passed to in_array() within switch{case( interpreted as NULL for both flat and multi-dimensional arrays. php config: Configure Command => './configure' '--with-openssl' '--with-pgsql' '--with-tidy' '--with-zlib' '--with-curl' '--with-apxs2=/usr/sbin/apxs' '--with-gd' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-freetype-dir=/usr' '--with-zlib-dir=/usr' Reproduce code: --- $arrChoices = array('numberfood' => array('apple','pie',5) , 'monkeys' => array('frank','chimpanzee')); function notArraysWhat ($i) { switch ($i) { case (in_array($i , $arrChoices['numberfood'])): echo "$i is either a number or a food.\n"; break; case (in_array($i , $arrChoices['monkeys'])): echo "$i is a monkey, or smells like one.\n"; break; } } notArraysWhat('pie'); Expected result: STDOUT: pie is either a number or a food. Actual result: -- STDOUT: Warning: in_array() expects parameter 2 to be array, null given in /export/servers/ETG/ContentCollection/cc/testing.php on line -- Edit bug report at http://bugs.php.net/?id=50307&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50307&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50307&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50307&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50307&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50307&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50307&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50307&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50307&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50307&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50307&r=support Expected behavior: http://bugs.php.net/fix.php?id=50307&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50307&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50307&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50307&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50307&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=50307&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50307&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50307&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50307&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50307&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50307&r=mysqlcfg