Re: [PHP-DEV] Pear.php.net SSL cert

2015-11-30 Thread Daniel Convissor
Hi: > Anyone else getting an invalid cert on https://pear.php.net ? The pear webserver died. Christian Weiske is doing the move. He's temporarily using his cert. Thanks for the heads up. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive

Re: [PHP-DEV] Support for keywords where possible

2013-09-18 Thread Daniel Convissor
Hi Bob: > Well, that makes no sense. Then you just could say no to all new > language changes. Because it cannot be run on older versions. Allow me one last post to clarify. What I said is the cost in _this_ case doesn't outweigh the advantages. As someone who writes a lot of open source (and

Re: [PHP-DEV] Support for keywords where possible

2013-09-18 Thread Daniel Convissor
Hi Bob: > It's now only for class/interface/trait, label and method names. Sure, that's not as bad. A bigger concern of mine is the added compatibility problem with new code possibly not being able to run on older PHP versions. That cost seems greater than the benefit of some developers being a

Re: [PHP-DEV] Support for keywords where possible

2013-09-17 Thread Daniel Convissor
Hi Bob: > I tried to widen the naming possibilities by allowing to use keywords > as identifiers (for function names, class names, label (goto) names, > ...) where possible. Thank you for putting energy in to enhancing PHP. That said, implementing this particular proposal will make code harder t

[PHP-DEV] Case insensitivity no longer locale specific

2013-06-20 Thread Daniel Convissor
Hi Folks: I'd like to put an example in the 5.5 migration documentation for the "Case insensitivity no longer locale specific" section. Can someone please provide one? Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and data

Re: [PHP-DEV] PHP-5.5 unpack change broke pecl/pear

2012-12-24 Thread Daniel Convissor
Hi: On Sun, Dec 23, 2012 at 11:36:14PM -0500, Sherif Ramadan wrote: > On Sun, Dec 23, 2012 at 11:24 PM, Igor Wiedler wrote: > > > In that case I was mistaken regarding the new "Z" char. But "a" has been > > changed. It is noted in the UPGRADING file. > > You're right. It does break BC, but this

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-13 Thread Daniel Convissor
Hi Anthony: On Tue, Nov 13, 2012 at 11:07:53AM -0500, Anthony Ferrara wrote: > > Wordpress's latest trunk uses ext/mysql. WordPress uses a "wpdb" object. Switching out the class to a mysqli based one is pretty simple and a patch exists. I have a feeling it'll make it into 3.6. --Dan -- T H

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-13 Thread Daniel Convissor
Hi Rasmus: > Both Wordpress and Drupal depends on php-mysql on Ubuntu, for > example. > > It would be good if we could get the majority of the major PHP apps to > commit to supporting mysqli along the same timeframe as marking this > deprecated. WordPress is moving in that direction: http://core

Re: [PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences

2012-09-05 Thread Daniel Convissor
Hi Johannes: On Thu, Jan 19, 2012 at 01:50:47PM +0100, Johannes Schlüter wrote: > > unsigned long length > > The width of the field. This corresponds to the display length, > in bytes. > > The server determines the length value before it generates the > resu

Re: [PHP-DEV] [PROPOSED] password_hash RFC - Implementing simplified password hashing functions

2012-07-15 Thread Daniel Convissor
Hi Anthony: > But I agree with your larger point. The only problem with it is that it > would take an engine wide shift to do. How does using exceptions in this new extension require an "engine wide shift?" DateTime already uses exceptions, no problem. Thanks, --Dan -- T H E A N A L Y S I

Re: [PHP-DEV] [PROPOSED] password_hash RFC - Implementing simplified password hashing functions

2012-07-15 Thread Daniel Convissor
Hi Anthony: > I want exceptions here too. But PHP doesn't use exceptions in its standard > library (aside from SPL) DateTime uses exceptions. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming ht

Re: [PHP-DEV] json_encode() behavior for incorrectly encoded strings

2012-06-24 Thread Daniel Convissor
Hola: On Sat, Jun 23, 2012 at 06:03:34PM -0700, Rasmus Lerdorf wrote: > And yes, I don't think a warning from json_encode() is useful because to > properly avoid it you would need an iconv() call before calling it and > that is pure overhead. Short of that your only recourse is to use @ and > that

Re: [PHP-DEV] json_encode() behavior for incorrectly encoded strings

2012-06-21 Thread Daniel Convissor
Hi Nikita: > PHP <= 5.3.13, PHP 5.4, master behave as follows when an invalid UTF-8 > string is encountered: > * A warning is thrown, but only if display_errors=off So the warning is put into the error log? But only if display_errors is off? And if display_errors is on, no warning is produced?

Re: [PHP-DEV] set the PHP_INI_ENTRY_* values the same as for php.ini-production

2012-04-01 Thread Daniel Convissor
Hi Folks: On Wed, Mar 14, 2012 at 10:33:59AM -0700, Christopher Jones wrote: > > In that case, perhaps the STD_PHP_INI_* values should match those > in php.ini-development? Many sites have very small ini files and rely on the default ini values for everything else. This means changing the defau

Re: [PHP-DEV] default charset confusion

2012-04-01 Thread Daniel Convissor
Hi Folks: This topic appears to have been quietly tabled. I didn't notice a decision here or a commit. On Mon, Mar 12, 2012 at 01:12:03PM -0700, Rasmus Lerdorf wrote: > > So maybe a way to tackle this is to use the > mbstring internal encoding when it is set as the htmlspecialchars > default wh

Re: [PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences

2012-02-24 Thread Daniel Convissor
Hi Johannes: > 1) You said > * /etc/my.cnf settings are (no other my.cnf files exist): > * + default-character-set = utf8 > * + character-set-server = utf8 > > In which section of the my.cnf file? Both for the server, or for the > client? [client] default-character-set = utf8 [mysqld] charact

Re: [PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences

2012-02-17 Thread Daniel Convissor
Hi Johannes and Ulf: On Mon, Jan 23, 2012 at 09:56:00PM -0500, Daniel Convissor wrote: > Hi Johannes: > > > We have to live with the information the server gives us. The server > > gives us the information in bytes. And frankly in PHP a string has no > > encoding infor

Re: [PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences

2012-01-23 Thread Daniel Convissor
Hi Johannes: > We have to live with the information the server gives us. The server > gives us the information in bytes. And frankly in PHP a string has no > encoding information, so in many cases that is a good answer. But > nonetheless the documentation should be improved/fixed. Further experim

Re: [PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences

2012-01-21 Thread Daniel Convissor
Hi Johannes: > The documentation tells > > http://dev.mysql.com/doc/refman/5.5/en/c-api-data-structures.html > > So it is working in bytes and has to hold all possible values. That's how MySQL's internal API works. At the same time, PHP's users expect PHP to behave as d

Re: [PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences

2012-01-19 Thread Daniel Convissor
Hi: On Thu, Jan 19, 2012 at 02:27:05PM -0500, Daniel Convissor wrote: > On Thu, Jan 19, 2012 at 02:09:12PM +0100, Ulf Wendel wrote: > > Am 19.01.2012 13:50, schrieb Johannes Schlüter: > > > > > >Your server seems to be configured for UTF-8 by default. In my tests

Re: [PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences

2012-01-19 Thread Daniel Convissor
Gentlemen: On Thu, Jan 19, 2012 at 02:09:12PM +0100, Ulf Wendel wrote: > Am 19.01.2012 13:50, schrieb Johannes Schlüter: > > > >Your server seems to be configured for UTF-8 by default. In my tests the > >behavior for both libraries (myslqnd& libmsql) is the same if you mind > >the character set (

Re: [PHP-DEV] PHP 5.4RC4 does not compile

2012-01-13 Thread Daniel Convissor
Hi Again: > This issue is popping up while trying to compile the latest snapshot, > php5.4-201201041830, on test.pear.php.net (Debian 6.0.3) using the > instructions I put together at https://wiki.php.net/systems/sgrv1. Oh, as Remi pointed out in another thread, this "latest" snapshot is out of d

Re: [PHP-DEV] PHP 5.4RC4 does not compile

2012-01-13 Thread Daniel Convissor
Hi: On Fri, Jan 06, 2012 at 06:06:16PM +0100, Steven VAN POECK wrote: > > cc: /home/steven/php5.4-201201041830/Zend/zend_ini_parser.c: No such > file or directory > cc: no input files > make: *** [Zend/zend_ini_parser.lo] Error 1 This issue is popping up while trying to compile the latest snapsho

Re: [PHP-DEV] "Cannot use $this as lexical variable" message still in PHP 5.4

2012-01-10 Thread Daniel Convissor
Hi Etienne: > To me it seems similar to assigning $this, only here it is via special > closure syntax. Since this code is no longer necessary, and might conflict > with the rebinding of $this, the error makes sense IMHO. A clearer error message seems appropriate. It should indicate that use($thi

[PHP-DEV] DateTime fixes and 5.4 release plan

2011-12-29 Thread Daniel Convissor
Hi Folks: David mentioned the following in the git migration email: >Expect the php-src migration in 14-21 days after 5.4 final. Can 5.4 final please be held off until the DateTime fixes for transitions (such as Standard / Daylight time) are fixed? https://wiki.php.net/rfc/datetime_and_dayli

Re: [PHP-DEV] Constant arrays

2011-12-19 Thread Daniel Convissor
Hi Barbu: > I wonder why I cannot assign arrays to constants. Do keep in mind that you can serialize() the array before storing it in a constant. Then use unserialize(CONSTANT) when you need the data. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y da

Re: Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-06 Thread Daniel Convissor
Hi Alan: > b) fix isset, and return first character > ISSET: return false (no warning) > READ: warning + return first character (similar to current behavior > except dereferenced strings) > > c) fix isset, and return empty strings > ISSET: return false (no warning) > READ: warning + return empty

Re: [PHP-DEV] trunk build failure on interface.c

2011-12-06 Thread Daniel Convissor
Hi Pierre: Thanks for the quick fix. I did a make clean and vsclean then rebuilt, but there's a similar issue, still: /php/php-src/trunk/ext/curl/interface.c: In function ‘zif_curl_copy_handle’: /php/php-src/trunk/ext/curl/interface.c:1978: error: ‘php_curl_handlers’ has no member named ‘fnmatch

Re: [PHP-DEV] trunk build failure on interface.c

2011-12-06 Thread Daniel Convissor
Hi Again: After sending that email, I realized I should mention my library version. curl --version says, in part "7.19.7 (x86_64-pc-linux-gnu)". Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming

[PHP-DEV] trunk build failure on interface.c

2011-12-06 Thread Daniel Convissor
Hi: I'm getting the following error while building trunk: /php/php-src/trunk/ext/curl/interface.c: In function ‘zif_curl_copy_handle’: /php/php-src/trunk/ext/curl/interface.c:1978: error: ‘php_curl_handlers’ has no member named ‘fnmatch’ /php/php-src/trunk/ext/curl/interface.c:1979: error: ‘php_c

Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-05 Thread Daniel Convissor
Hi Alan: On Mon, Dec 05, 2011 at 09:59:50AM -0500, Daniel Convissor wrote: > > I tried to apply the patch to 54 and trunk via "patch < bug.diff" > (which usually works fine) and all hunks failled. Not sure what I'm > doing wrong. Ah, I needed to do "patch -p0

Re: [PHP-DEV] Fixing string offsets of strings.

2011-12-05 Thread Daniel Convissor
Hi Alan: > https://bugs.php.net/patch-display.php?bug=60362&patch=fix_disabling_bad_string_offsets&revision=1323002696 Thanks so much for the patch. Looking at the source I noticed some small things (care to build a bike shed with me? :). Many of the test EXPECT's have %d changed to hard coded

[PHP-DEV] tweaking "configure --help" for autoconf changes

2011-11-29 Thread Daniel Convissor
Hi Folks: There's a minor difference between the output of "configure --help" between PHP_5_3 and PHP_5_4. The change makes it hard to tell what the default values are for some options. The options impacted are those defined in configure.in using PHP_ARG_WITH. A simple example is --with-layout

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-24 Thread Daniel Convissor
Hi Anthony: > isset($foo['bar'][1]['baz']) && is_array($foo['bar'][1]) > > You don't need to check each level. Only the one above the key you're > looking at. Excellent thinking. One hitch... that goes fatal in 5.3 if $foo is a string. Here's how to write the test so it works the same way unde

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-24 Thread Daniel Convissor
Hi Rasmus: > Yes, no change in any of that. In your usage, the case that behaves > differently in 5.4 was actually a fatal error in 5.3, so chances are > pretty good you don't have too many of these. Things only go fatal in 5.3 under some circumstances. Doing isset() does not: 5.3.9RC3-dev ST

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-24 Thread Daniel Convissor
Hi Stas: > I have no idea why Drupal would use side effects > of string offset bugs to distinguish between arrays and strings They're not trying to distinguish between strings and arrays. People using this syntax are trying to see if a particular array element is populated. In the past, it happ

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-24 Thread Daniel Convissor
Hi Ferenc: On Thu, Nov 24, 2011 at 10:54:24PM +0100, Ferenc Kovacs wrote: > > I would vote for allowing only numbers in the string index/offset: [0-9]+ > > By "allowing" I meant that we should trigger the notice if the string index > contains anything else than numbers. I agree with this approac

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-23 Thread Daniel Convissor
Hi Stas: > I'm sorry that influences you code, it is unfortunate, but relying > on an obscure bug, however convenient, is not a good practice. Please don't put this on me. It's not about me. It's about many, many developers who have this usage in many places. This change will open up many unex

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-23 Thread Daniel Convissor
Hi Stas: > I am 100% opposed to changing anything there and > re-breaking string offsets because somebody uses string indexes to > operate on strings and expect them to work in weird ways that makes > $a[0][0] work differently from $b = $a[0]; $b[0]. The fix to make $a[0][0] work is good. No arg

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-23 Thread Daniel Convissor
Hi Again Folks: On Wed, Nov 23, 2011 at 09:14:09AM -0500, Daniel Convissor wrote: > $a = 'foo'; > echo $a['blah'] . "\n"; > > But that second one echos out "f". This is a huge WTF. Two things for the record on this front. First, i'v

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-23 Thread Daniel Convissor
Hi Ferenc: [And the manual sys...] > "Non-integer types are converted to integer." > So it is a documented behavior, so the current change is just a bugfix imo. Can someone please lend me their time machine so I can go back and tell folks to just use {} for string offsets and [] for arrays?

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-23 Thread Daniel Convissor
Hi Stas: > It's actually very simple. Take variable $a which is a string > ("foo"). Now it you do $a[0] that would produce first letter - "f". > Now here's a tricky part - if you do $a['blah'] it would convert > 'blah' to number, get 0 and return the same letter "f". To me, this is the bug. $a['

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-22 Thread Daniel Convissor
Hi Etienne: > AFAIK this is one of the change that was explicitly put in to make it > more consistent. But now it breaks code in the wild. I came across this due to an isset() in PEAR now passing when it didn't before. Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C

[PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-22 Thread Daniel Convissor
Hi Folks: I just stumbled upon a regression in 5.4. In an array, a sub-sub-key of an existing key is now returning a letter of the value indexed by the main key. I'm raising it here so it doesn't get lost. https://bugs.php.net/bug.php?id=60362 Thanks, --Dan -- T H E A N A L Y S I S A N

Re: [PHP-DEV] pg_escape_literal(), pg_escape_identifier() patch

2011-11-22 Thread Daniel Convissor
Hi Yasuo: > I've posted pgsql patch that adds > pg_escape_literal()/pg_escape_identifier() pg_escape_identifier() sounds good. Regarding pg_escape_literal(), which implements PQescapeLiteral, it is very similar to PHP's pg_esacpe_string(), implementing PQescapeStringConn. What is the benefit of

Re: [PHP-DEV] Curl extension

2011-11-20 Thread Daniel Convissor
Hi Yasuo: > I'm also holding pgsql patch that adds pg_escape_literal() which > escapes SQL literal. (i.e. table names, filed names, etc) The database documentation I've read calls those "identifiers" rather than "literals". Pardon the "bike shedding," but it would be good to name the function ac

Re: [PHP-DEV] datetime status

2011-11-20 Thread Daniel Convissor
Hi Stas: > We're in RC now, and I'm very concerned about the status of DateTime > functionality (see bugs 60236, 60237 and XFAILs) 60237 is a duplicate of https://bugs.php.net/bug.php?id=55253. I just marked it as such. I suspect the remaining two bugs are related to the same underlying problem

Re: [PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences

2011-11-18 Thread Daniel Convissor
Hi Chris: > Can you log a bug for this? https://bugs.php.net/bug.php?id=60333 Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Br

Re: [PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences

2011-11-18 Thread Daniel Convissor
Hi Again: > type libmysql mysqlnd > --- > CHAR(2) 26 Oh, by the way, I saw a CHAR(20) field come out as 60 in mysqlnd. So it looks like the size is being multiplied by 3. Perhaps that's a clue for debugging. Thanks, --Dan -- T H E A N A L Y S I S A

[PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences

2011-11-18 Thread Daniel Convissor
Hi Folks: The output of mysqli_fetch_field() produces different results when running against mysqlnd than it does against libmysql. I've mentioned issues along these lines a couple times on the list in the midst of other threads relating to MySQL handling, but nobody has really addressed it direc

Re: [PHP-DEV] unsolved issues

2011-11-07 Thread Daniel Convissor
Hey Derick: On Mon, Nov 07, 2011 at 01:15:48PM +, Derick Rethans wrote: > On Sun, 6 Nov 2011, Stas Malyshev wrote: > > > 2. DateTime fixes with TLA timezones > > Please remind me the issue number? I assume he's talking short hand about the DateTime RFC stuff: https://wiki.php.net/rfc/dateti

Re: [PHP-DEV] [VOTE] DateTime and Daylight Saving Time Transitions

2011-10-29 Thread Daniel Convissor
Hi Stas: > That's what I don't understand - so in the real code, what would be > the use case where I'd want to use ST/DST? I.e., if I know the exact > time, I could just use the timestamp or GMT time which doesn't have > transitions. Yeah, this stuff is very edge case. It is for use when one ne

[PHP-DEV] [VOTE] DateTime and Daylight Saving Time Transitions

2011-10-25 Thread Daniel Convissor
Hi Folks: Please take a moment to review the DateTime transitions RFC and vote on it. I encourage voting on it to ensure we are all on the same page as to how PHP will handle transitions. Voting is open through 10/31. Read: https://wiki.php.net/rfc/datetime_and_daylight_saving_time Vote: https:

Re: [PHP-DEV] 5.4.0 beta2

2011-10-24 Thread Daniel Convissor
Hi Derick: On Mon, Oct 24, 2011 at 08:31:20PM +0100, Derick Rethans wrote: > On Mon, 24 Oct 2011, Daniel Convissor wrote: > > https://wiki.php.net/rfc/datetime_and_daylight_saving_time > > I don't see why this requires voting. It's a bug fix. While it's kind of a

Re: [PHP-DEV] 5.4.0 beta2

2011-10-24 Thread Daniel Convissor
Hi Stas: > The next release is planned to be RC1 and is scheduled for November 10. You want the DateTime DST fixing RFC (https://wiki.php.net/rfc/datetime_and_daylight_saving_time) implemented before RC1, right? If so, keep in mind that voting on it will start tomorrow and finish on November 1.

Re: [PHP-DEV] [RFC] DateTime and Daylight Saving Time Transitions

2011-10-24 Thread Daniel Convissor
Hi Stas: On Mon, Oct 24, 2011 at 09:57:51AM -0700, Stas Malyshev wrote: > > Not an objection but more a side question - is this related to > fixing TLA timezones in general? Right now they fail in a multitude > of scenarios which have nothing to do with transitions, such as: > > $t = new DateT

Re: [PHP-DEV] [RFC] DateTime and Daylight Saving Time Transitions

2011-10-24 Thread Daniel Convissor
Hi: > https://wiki.php.net/rfc/datetime_and_daylight_saving_time I will move this to voting phase tomorrow unless I hear objections. Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming ht

Re: [PHP-DEV] [RFC] DateTime and Daylight Saving Time Transitions

2011-10-19 Thread Daniel Convissor
On Wed, Oct 19, 2011 at 08:18:50AM +0100, Lester Caine wrote: > I've come to one simple > conclusion, and that is that the internal system always works with > UTC times. All of the calculations and 'timing diagrams' therefore > have unique and sequential times. That is how PHP's DateTime works. -

[PHP-DEV] [RFC] DateTime and Daylight Saving Time Transitions

2011-10-18 Thread Daniel Convissor
Hello! PHP's DateTime class has unexpected outcomes when dealing with the transitions between Daylight Saving Time and Standard Time. Properly defining, documenting and unit testing DateTime's behaviors is important for PHP's future. This document seeks agreement on what the expected behaviors sh

Re: [PHP-DEV] 5.4 beta

2011-10-07 Thread Daniel Convissor
On Fri, Oct 07, 2011 at 08:13:49PM +0200, Hannes Magnusson wrote: > > When 5.3 came around, I literally had to diff the sources to figure > out what was going on, I am not going through that again. ... > If that doesn't happen, we wind up with more features like streams and > filters which took 5+

Re: [PHP-DEV] Re: is_a() - again - a better fix

2011-09-23 Thread Daniel Convissor
Hi Rasmus: On Fri, Sep 23, 2011 at 12:06:28PM +0200, Rasmus Lerdorf wrote: > > Ok, executive decision made. Patch committed. Thanks. > 1. Should we work up a basic PEAR test case that we can add to our >tests? Funny you mention that. I wrote an extensive email to the PEAR QA team a month

Re: [PHP-DEV] Re: is_a() - again - a better fix

2011-09-22 Thread Daniel Convissor
Hi Folks: On Thu, Sep 22, 2011 at 02:41:14AM +0200, Kalle Sommer Nielsen wrote: > > While I respect from a package maintainer standpoint the thought of > reverting to the pre 5.3.8 behaviour would help the Ubuntu project, > however, in the whole image it does not help the PHP project Breaking PHP

Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4

2011-09-02 Thread Daniel Convissor
Hi Folks: On Fri, Sep 02, 2011 at 06:08:59PM -0700, Stas Malyshev wrote: > we'd do better skipping out problematic tests (which > I also think is wrong, especially if these tests discover API > incompatibility which shouldn't even exist between mysqlnd and > libmysql) than just ignore the failures

Re: [PHP-DEV] mysqli tests breaking

2011-09-02 Thread Daniel Convissor
Hi: While I mentioned the following in the "5.4 beta & tests" thread, I'll semi-re-post this here so it doesn't get lost in a thread not specifically about mysql tests. libmysql: http://www.analysisandsolutions.com/php/mysqli.test.failures.libmysql.tbz mysqlnd: http://www.analysisandsolutions.com

Re: [PHP-DEV] 5.4 beta & tests

2011-09-02 Thread Daniel Convissor
Hi Again: On Thu, Sep 01, 2011 at 03:56:57PM -0400, Daniel Convissor wrote: > > http://www.analysisandsolutions.com/php/mysqli.test.failures.tbz > > I didn't modify the tests because they're working for other people. > > Built 5.4 from svn checkout this afternoon

Re: [PHP-DEV] 5.4 beta & tests

2011-09-01 Thread Daniel Convissor
Hi: On Tue, Aug 30, 2011 at 10:55:48PM -0700, Rasmus Lerdorf wrote: > > http://codepad.org/ZV8imUuc I see Rasmus is only getting one mysqli failure. I'm getting several. The diff, out and exp files can be found here: http://www.analysisandsolutions.com/php/mysqli.test.failures.tbz I didn't mod

Re: [PHP-DEV] Failing Autotests / Bugs

2011-08-23 Thread Daniel Convissor
Hi Rasmus: On Tue, Aug 23, 2011 at 11:51:32AM -0700, Rasmus Lerdorf wrote: > > http://gcov.php.net/viewer.php?version=PHP_5_4&func=tests > > and visit it daily from now on? I'd like to see this go to 0 before we > release the first 5.4 beta later this year. Probably by moving the bulk > of these

[PHP-DEV] Re: [PHP-CVS] =?utf-8?q?svn:_/php/php-src/_branches/PHP=5F5=5F3/ext/date/tests/DateTime=5Fdata-dates.inc_branches/PHP=5F5=5F3/ext/date/tests/DateTime=5Fdata-february.inc_branches/PHP=5F5=5F3

2011-08-23 Thread Daniel Convissor
Hi Stas: On Tue, Aug 23, 2011 at 10:12:19AM -0700, Stas Malyshev wrote: > > > >Revision: http://svn.php.net/viewvc?view=revision&revision=315376 > > I don't understand this fix. How comes that diff test has: > > test_years_positive__6_shy_1_day: DIFF: 2007-02-06 00:00:00 EST - > 2000-02-07 00:00

Re: [PHP-DEV] Failing Autotests / Bugs

2011-08-23 Thread Daniel Convissor
Hi: On Sun, Aug 21, 2011 at 03:08:09PM +0200, Reindl Harald wrote: > FAIL DateTime::diff() days -- spring type2 type2 > [ext/date/tests/DateTime_days-spring-type2-type2.phpt] > FAIL DateTime::diff() days -- spring type2 type3 > [ext/date/tests/DateTime_days-spring-type2-type3.phpt] > FAIL DateTi

Re: [PHP-DEV] 5.3.6-13 -> 5.3.7-1 test result diff

2011-08-23 Thread Daniel Convissor
Hi Ondřej: On Tue, Aug 23, 2011 at 09:09:37AM +0200, Ondřej Surý wrote: > > I probably don't know enough about procedures here. But if you know > that the tests are failing, you should move them to XFAIL category, > don't you? The tests that are expected to fail are marked XFAIL. The two other

Re: [PHP-DEV] 5.3.6-13 -> 5.3.7-1 test result diff

2011-08-22 Thread Daniel Convissor
Hi Stas: On Mon, Aug 22, 2011 at 03:31:56PM -0700, Stas Malyshev wrote: > > We still have tons of failures in DateTime IIRC and that's because > of the buggy three-letter timezones. There are bugs with both type 1 (regularly created datetimes) and type 2 (datetimes created using three letter tim

Re: [PHP-DEV] Failing Autotests / Bugs

2011-08-21 Thread Daniel Convissor
Hi Again Reindl: On Sun, Aug 21, 2011 at 10:21:40AM -0400, Daniel Convissor wrote: > On Sun, Aug 21, 2011 at 03:08:09PM +0200, Reindl Harald wrote: > > > FAIL DateTime::diff() days -- spring type2 type2 > > [ext/date/tests/DateTime_days-spring-type2-type2.phpt] > > FA

Re: [PHP-DEV] Failing Autotests / Bugs

2011-08-21 Thread Daniel Convissor
Hi Reindl: On Sun, Aug 21, 2011 at 03:08:09PM +0200, Reindl Harald wrote: > This is my try to help badly prevent broken releases like > 5.3.7 in the future, 54 failing tests are way too much and > the XFAILED should be removed until they are working XFAIL's should stay, in my opinion. Their resu

Re: [PHP-DEV] E_STRICT in production

2011-07-26 Thread Daniel Convissor
Hi Folks: On Sun, Jul 24, 2011 at 12:18:51AM +0200, Ferenc Kovacs wrote: > > first of all, 1 think it would be better to change only one thing at a > time (add E_STRICT to E_ALL), and we also exclude E_DEPRECATED for > production, which would imo much more important for most apps than > fixing th

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-21 Thread Daniel Convissor
Hi Pierre: > if there are no objection until then, I will commit this patch as it > is tomorrow. Derick is out of town until Monday. Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming h

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-20 Thread Daniel Convissor
Hi Pierre: > I do not want to sound harsh but could you please read my reply? I had read your reply. I value your opinion. I also want to hear from other people, and Derick in particular, which is why I directly addressed him in my prior email to the list. Thanks, --Dan -- T H E A N A L

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-19 Thread Daniel Convissor
Hi Derick: On Mon, Jul 18, 2011 at 05:23:58PM +0100, Derick Rethans wrote: > > Doesn't that mean that anybody not running a php.ini file will just > always get this warning/error? I wouldn't want that as a php.ini file > should be optional. Yeah, that's problematic. What are your thoughts as

[PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Daniel Convissor
Hi Folks: We all want to see Magic Quotes go away. Discussions on this list indicate several people are concerned with doing this in a safe and orderly manner. [1][2] To this end, I have posted an RFC at https://wiki.php.net/rfc/magicquotes_finale Please read it through, think about it, then po

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-18 Thread Daniel Convissor
Hi: On Sun, Jul 17, 2011 at 05:31:05PM -0700, Stas Malyshev wrote: > On 7/17/11 3:03 PM, Richard Quadling wrote: > > >My local ini file is 6 lines long. Works perfectly. > > And you rely on magic_quotes being on, right? Then you have peculiar > definition of "working perfectly". Let's not pick

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-16 Thread Daniel Convissor
Hi Stas: > Nobody runs PHP with -n, who would you do that? INIs are the > recommended setting, if you ignore that, you do it at your own > peril. I've seen many servers that run with php.ini files that have only a few lines in them, relying on the defaults for most of the behavior. --Dan -- T

Re: [PHP-DEV] Re: [PHP-CVS] Re: [PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/NEWS branches/PHP_5_3/Zend/tests/bug53727.phpt branches/PHP_5_3/Zend/tests/is_a.phpt branches/PHP_5_3/Zend/z

2011-07-08 Thread Daniel Convissor
Hi Folks: On Thu, Jul 07, 2011 at 02:20:50PM -0700, Stas Malyshev wrote: > > In fact, I'm not sure why would we need such warning at all. Unknown > class - return false, who cares? +1 Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intens

Re: [PHP-DEV] Object and Array Literals

2011-06-18 Thread Daniel Convissor
Hi: I wasn't keen on earlier proposals for the [] array syntax. Sean, your case is laid out in a clear manner and addresses my concerns. I like this RFC. > * Strictness of unquoted keys. Keys should be quoted. At the very least, unquoted keys should raise an E_NOTICE. > * Suppo

Re: [PHP-DEV] date_diff broken?

2011-06-17 Thread Daniel Convissor
Hi Hannes: On Fri, Jun 17, 2011 at 07:11:53PM +0200, Hannes Magnusson wrote: > > Does it mean that all the tests Daniel added should work now? > http://news.php.net/php.cvs/65174 Alas, no. There are other bugs in the bed. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M

Re: [PHP-DEV] date_diff broken?

2011-06-17 Thread Daniel Convissor
Hi Stas: > $start = new DateTime('2010-10-04 02:18:48 EDT'); > $end = new DateTime('2010-11-06 18:38:28 EDT'); > $int = $start->diff($end); ... snip ... > As you can see, the date in $start changed, even though it shouldn't > happen. Funny you should mention that now. I ran into the same exact

Re: [PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/date/php_date.c trunk/ext/date/php_date.c

2011-01-31 Thread Daniel Convissor
Hi Pierre: On Mon, Jan 31, 2011 at 08:43:40PM +0100, Pierre Joye wrote: > > It does not matter what is the latest VC version. What matters is that > VC6 is a dead cow and we won't support it anymore, even for the > current stable, 5.3. And to be honest I don't really care about > Apache.org's use

Re: [PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/date/php_date.c trunk/ext/date/php_date.c

2011-01-30 Thread Daniel Convissor
On Sun, Jan 30, 2011 at 03:02:25PM -0800, Stas Malyshev wrote: > > It looks like all of these are reproducible only on vc6 build and > all have same issues with division and rounding, and all not > reproducible on vc9 - which makes me thing it's some vc6 problem. > Maybe the one Gustavo identified

Re: [PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/date/php_date.c trunk/ext/date/php_date.c

2011-01-26 Thread Daniel Convissor
Hi Folks: On Tue, Jan 25, 2011 at 04:15:26PM +0100, Pierre Joye wrote: > be sure to use the right type(s), do the casting correctly Let's dial back the personalities for a moment. The issue raised above produces bugs in DateTime::diff(). The existing code relies on C dropping decimal component

Re: [PHP-DEV] [PATCH] Add option to disable POST data processing

2010-12-18 Thread Daniel Convissor
Hi James: On Sat, Dec 18, 2010 at 05:08:38PM +, James Butler wrote: > What about people on shared hosting? One option may be to put a in an .htaccess file. Oh, and keep in mind . --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web

Re: [PHP-DEV] [PATCH] Add option to disable POST data processing

2010-12-18 Thread Daniel Convissor
Hi Pierre: On Thu, Dec 16, 2010 at 01:32:15PM +0100, Pierre Joye wrote: > However I would > prefer to bring back a proposal we had a couple of years ago, to > totally disable post data. Completely disabling POST is something that is probably best done via web server configurations. Doing this a

Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations

2010-11-28 Thread Daniel Convissor
Hi Again: On Sat, Nov 27, 2010 at 08:43:40PM -0500, Daniel Convissor wrote: > > Not that my vote really counts, but -1. Doing so would eliminate the > helpful ability to grep source code for 'function bar'. It also will trip up the multitude of PHP IDE's and editors

Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations

2010-11-27 Thread Daniel Convissor
Hi: On Sat, Nov 27, 2010 at 06:40:23PM +0100, Johannes Schlter wrote: > public bar() { Not that my vote really counts, but -1. Doing so would eliminate the helpful ability to grep source code for 'function bar'. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O

Re: [PHP-DEV] Magic quotes in trunk

2010-11-20 Thread Daniel Convissor
Hi: On Fri, Nov 19, 2010 at 10:36:13PM -0800, Philip Olson wrote: > > PHP 5.3 > - Default (On) > - php.ini-development (Off) > - php.ini-production (Off) > - E_DEPRECATED error when On The deprecated message is only thrown if you set magic quotes to on in a php.ini file. If you're runnning wit

Re: [PHP-DEV] Magic quotes in trunk

2010-11-19 Thread Daniel Convissor
On Fri, Nov 19, 2010 at 04:41:48PM +0100, Ferenc Kovacs wrote: > you can get pwn3d with magic_quotes_gpc = On That goes without saying. None the less, it will be problematic for PHP to disable/remove a "security" feature that some people rely on. --Dan -- T H E A N A L Y S I S A N D S

Re: [PHP-DEV] Magic quotes in trunk

2010-11-19 Thread Daniel Convissor
Hi Johannes: On Thu, Nov 18, 2010 at 05:25:49PM +0100, Johannes Schlter wrote: > > > 2) Error out if using CGI or web SAPI and one of the following is true: > >a) php.ini does not contain "magic_quotes_gpc = Off" > >b) php.ini contains "magic_quotes_runtime = On" > >c) php.ini contains

Re: [PHP-DEV] Magic quotes in trunk

2010-11-18 Thread Daniel Convissor
On Wed, Nov 17, 2010 at 11:40:37PM -0600, Larry Garfield wrote: > > I won't miss magic quotes if they're removed, but I can see the argument for > saying "not quite yet". Off-by-default is absolutely necessary if they're > kept. (Dear god, you mean they aren't off by default already?) When ope

Re: [PHP-DEV] BC break in 5.3.2 -> 5.3.3 with "parent::" and __call/__callStatic

2010-10-26 Thread Daniel Convissor
On Mon, Oct 25, 2010 at 12:56:28AM +0200, Etienne Kneuss wrote: > Exactly, if Bar::getFoo is not called statically, parent::getFoo() will > not be a static call, it should not get through __callStatic. That logic sounds good. Unfortunately, things aren't behaving that way: http://bugs.php.net/b

Re: [PHP-DEV] Proper return after throwing exception

2010-06-12 Thread Daniel Convissor
Hi Hannes: On Fri, Jun 11, 2010 at 07:34:54PM +0200, Hannes Magnusson wrote: > > Which part of "zend_throw_exception()" sounds like a php-general@ question? DOH! --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programmi

Re: [PHP-DEV] Proper return after throwing exception

2010-06-11 Thread Daniel Convissor
Hi Pieter: On Thu, Jun 10, 2010 at 12:41:29PM -0700, Pieter de Zwart wrote: > > zend_throw_exception(amqp_connection_exception_class_entry, "blah blah > blah", 0 TSRMLS_CC); > return; These kinds of questions (regarding how to use PHP) should be asked on the php-general list. The internals li

Re: [PHP-DEV] Type hinting

2010-06-09 Thread Daniel Convissor
Hi Zeev: On Wed, Jun 09, 2010 at 05:17:13PM +0300, Zeev Suraski wrote: > > I think having E_TYPE (or whatever), a non-fatal notice that can be > either ignored or handled separately from everything else makes sense. I > think we may actually want to introduce it at the most basic levels of >

Re: [PHP-DEV] Type hinting

2010-06-08 Thread Daniel Convissor
Hi Lukas: On Fri, Jun 04, 2010 at 08:28:12AM +0200, Lukas Kahwe Smith wrote: > > Same deal as E_NOTICE. Either you care about them or you dont. Exactly. The type hinting situation is unique. It is something that applications will frequently want to handle gracefully in order to provide usefu

  1   2   3   4   >