Re: [PHP-DEV] native php annotations

2011-03-24 Thread Karsten Dambekalns
Hi Guilherme. On 14.03.11 19:02, guilhermebla...@gmail.com wrote: > @Etienne: That RFC is outdated. > Since the last feedback form internals list, a lot of changes have > been made to that RFC. Maybe I should update it ASAP so you can > clearly understand what have changed to be compatible with cu

Re: [PHP-DEV] About optimization

2010-01-27 Thread Karsten Dambekalns
Hi. On 13.01.10 16:48, Rasmus Lerdorf wrote: > Alain Williams wrote: >> Unfortunately: APC does not work with PHP 5.3 -- I have a site where I would >> love to use it but I cannot. I use APC to great effect elsewhere. Hm. I have 5.3.1 with APC 3.1.3p1 and it runs fine. This is not a production en

[PHP-DEV] Re: PDO Bug introduced in revision 290786 and released in 5.2.12 and5.3.1

2010-01-16 Thread Karsten Dambekalns
Hi. On 16.01.10 02:54, Matt Read wrote: > We are developers from the Habari Project, an open source PHP blogging > application; We would like to raise concern with a recent change to the > logic of PDO. I fully support what Matt writes. Although we don't use that behaviour in our codebase, the wa

Re: [PHP-DEV] Performance question about create_function

2009-10-29 Thread Karsten Dambekalns
Hi. On 26.10.09 15:25, Mathieu Suen wrote: > I am more asking about performance. I would have been ready to sacrifice performance if it saved money. But according to my quick tests, it does not. See http://tr.im/DrsH for details... oh, this is on PHP 5.3. Any other insights on this welcome! Reg

Re: [PHP-DEV] Type hinting/casting request for vote

2009-07-08 Thread Karsten Dambekalns
Hi. On 08.07.2009 12:11 Uhr, Steven Van Poeck wrote: Derick Rethans wrote: With this logic, we got a PHP 5.3 as well, and with the same logic there will be a PHP 5.4, 5.5, 5.6 and we never get to 6. Instead of putting stuff in PHP 5.4 (which at the moment is *not* planned), why not focus all ef

Re: [PHP-DEV] Notes from the PDM in Chicago

2009-06-04 Thread Karsten Dambekalns
Hi Lukas. On 04.06.2009 8:40 Uhr, Lukas Kahwe Smith wrote: To me its absolutely critical that we do not give the impression that the next bigger update after 5.3 will be 5.4. The next big thing is 6.0. Thumbs up, and good luck with this ambitious plan! ;) We'd be happy to switch to PHP 6...

Re: [PHP-DEV] Extending SplObjectStorage impossible due to type hints!?

2009-04-03 Thread Karsten Dambekalns
Hi Alexey. On 03.04.2009 12:33 Uhr, Alexey Zakhlestin wrote: well, and what is the reason why you can't make your "attach()" compatible with SplObjectStorage's? the following signature works for me (both in 5.2 and 5.3): public function attach($obj, $inf = null) Doh, well. Even better, so it'

[PHP-DEV] Extending SplObjectStorage impossible due to type hints!?

2009-04-03 Thread Karsten Dambekalns
Hi. I am trying to extend SplObjectStorage and override the attach() method. This gives me: Strict Standards: Declaration of B::attach() should be compatible with that of SplObjectStorage::attach() in test.php on line 5 Seems am am hitting the object type hint wall again. Any ways around t

Re: [PHP-DEV] GSoC - XDebug profiling web front-end

2009-04-01 Thread Karsten Dambekalns
Hi. On 31.03.2009 18:08 Uhr, David Coallier wrote: I'm sorry to tell you that but xdebug web profiling was a project for last year. Please read http://wiki.php.net/gsoc/2009 for this years GSoC ideas. Well, was it done last year? If yes: great, where is it? If no: yeah, do it this year! Reg

[PHP-DEV] Re: Vote: allow_call_time_pass_reference value in production INI

2009-02-19 Thread Karsten Dambekalns
Hi. On 19.02.2009 6:34 Uhr, Eric Stewart wrote: allow_call_time_pass_reference = Off (Issue Warnings) +1 Karsten -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: New INIs, Round Two.

2009-02-18 Thread Karsten Dambekalns
Hi Eric. On 17.02.2009 8:02 Uhr, Eric Stewart wrote: extension_dir = "./" Should be commented out as has been pointed out already by Johannes Schlüter. enable_dl = On enable_dl should be off(). Well, that has been said a few time already... :) By now I also think that allow_call_time_p

[PHP-DEV] Re: RFC for new INI's

2009-02-11 Thread Karsten Dambekalns
Hi. On 11.02.2009 15:26 Uhr, Christian Schneider wrote: session.bug_compat_42 = Off ; Why should devel/production differ? Because in dev a warning should be shown, but the warning setting only has an effect if this setting is on (at least that way it is documented in php.ini). Regards, Kar

[PHP-DEV] Re: RFC for new INI's

2009-02-10 Thread Karsten Dambekalns
Hi Eric. On 10.02.2009 3:27 Uhr, Eric Stewart wrote: A new RFC for PHP's proposed INI files have been added to the wiki. Below is a direct link to the page. http://wiki.php.net/rfc/newinis I love the settings for production, but I think you reversed the meaning of allow_call_time_pass_referen

Re: [PHP-DEV] Re: Quick question about closing PHP tags

2009-02-04 Thread Karsten Dambekalns
Hi. On 03.02.2009 10:51 Uhr, Richard Quadling wrote: PS: Let the idea grow for another eight years! :) When PHP6 becomes the norm with its lovely unicode handling, BOM's may become more prevalent. If the editor of choice supplies them, having PHP strip them from include/require would be helpfu

[PHP-DEV] Re: Quick question about closing PHP tags

2009-02-03 Thread Karsten Dambekalns
Hi. On 02.02.2009 9:28 Uhr, mike wrote: There's some discussion going on -discuss about whether or not to close PHP tags. ... Obviously the bonus is no stupid human error/whitespace type issues with output buffering and such. But I wanted to know if there's any opinion either way for any othe

Re: [PHP-DEV] New function proposal: spl_class_vars / params / contents

2009-01-21 Thread Karsten Dambekalns
Hi. On 21.01.2009 11:44 Uhr, Kenan R Sulayman wrote: I did propose the function because the construction in user-land is quite expensive; Reflection is expensive, indeed. The way we solved it for FLOW3 is to create a ReflectionService that caches such information as long as the source doesn'

Re: [PHP-DEV] Path length for files on NTFS

2009-01-16 Thread Karsten Dambekalns
Hi. On 16.01.2009 17:12 Uhr, Pierre Joye wrote: The problem is exactly the same on any OS, only the size varies. The limit is not higher either. What do you use as naming for your entries? Oe example with 229 characters: /Users/karsten/Sites/typo3v5/Data/Temporary/6e7991cd3e3f10e110df4a26825c1

Re: [PHP-DEV] Path length for files on NTFS

2009-01-16 Thread Karsten Dambekalns
Hi Pierre. On 16.01.2009 14:33 Uhr, Pierre Joye wrote: While NTFS supports path lengths of up to 32k characters, By the way, this limit is approximative. In what way? There is no plan yet to increase this value. The main problem is that the maximum length of a path is volume dependent, not

[PHP-DEV] Path length for files on NTFS

2009-01-16 Thread Karsten Dambekalns
Hi everyone. I posted this on php.windows a two days ago without a response. Maybe someone here can help me. Recently someone using our software told us about problems with generated filenames being too long. I did some research on the net and some quick tests on Vista Business, and it seem

[PHP-DEV] Re: json_encode()

2008-12-16 Thread Karsten Dambekalns
parsers, you have to pass it a PHP array or object. +1 Karsten Dambekalns -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Problem with (namespaced) code extending ReflectionProperty- possible bug?

2008-12-09 Thread Karsten Dambekalns
Hi. Stanislav Malyshev wrote: According to the manual and the PHP source the signature is this: public function getValue(stdclass $object) ... Use public function getValue($object = null) {} instead. Thanks, that works! I saw the [] in the C source, but failed to draw the right conclusion

[PHP-DEV] Problem with (namespaced) code extending ReflectionProperty - possible bug?

2008-12-08 Thread Karsten Dambekalns
Hi. Running 5.3.0alpha3 now and converting our codebase to the new namespaces syntax. Works fine so far, the new name resolution rules are very usable and lead to cleaner code so far. :) Now I ran into a problem. We have a class extending ReflectionProperty, and I got a complaint about the s

Re: [PHP-DEV] Upgrading to internal DateTime

2008-12-05 Thread Karsten Dambekalns
Hi Derick. Derick Rethans wrote: This is not the correct thing to do, as you will lose timezone information. The W3C format only stores UTC offsets (in the form of +00:00). However, that same UTC offset can be used in different areas with different DST changes. Best thing is to store in Unix t

[PHP-DEV] Re: Fatal error: Call to a member function on a non-object

2008-11-17 Thread Karsten Dambekalns
Hi. Christopher Vogt wrote: I fetch records a database. Sometime it happens that a record does not exist anymore. Let's assume it's a user, then $user will be NULL. echo $user['fullname']; // no error at all, $user['fullname'] === NULL Shouldn't this at least trigger a Notice? Check your err

[PHP-DEV] Re: quick polls for 5.3

2008-11-13 Thread Karsten Dambekalns
Hi. Lukas Kahwe Smith wrote: 1) ext/mhash in 5.3. ext/hash has all the functions, so the entire BC break will be that "if (extension_loaded('mhash'))" will need fixing if mhash is removed (answer both) I) enable ext/hash by default II) remove ext/mhash +1 for both 2) deprecate ereg*. ext/er

Re: [PHP-DEV] Call it: allow reserved words in a class or not?

2008-11-07 Thread Karsten Dambekalns
Hi. Steph Fox wrote: This thread really should be re-titled to "allow reserved words as a classname or not". Then perhaps the only logical response to the question would be so obvious that there would be no thread... oo-er... Right, the subject indicates a different question that what seems t

[PHP-DEV] Re: Proposal for new construct: nameof

2008-10-30 Thread Karsten Dambekalns
Hi. Stan Vassilev | FM wrote: I suggest we introduce a new construct which will return a string when passed any identifier to resolve against the current file's use clauses: nameof Symbol\Name; ... NOTE: As a side effect this means less direct writing of string function/class names, and less

Re: [PHP-DEV] Clarifying the resolution rules

2008-10-28 Thread Karsten Dambekalns
Hi. Stan Vassilev | FM wrote: A yet another compromise is possible as the lesser evil: ... They key change is: not to make difference between internal and user global functions, just fall back to global ones, so that there's no additional confusion among drop-in replacements, user resources,

Re: [PHP-DEV] my last attempt at sanity with namespaces

2008-10-17 Thread Karsten Dambekalns
Hi. Sorry for yet another OT post in this thread. Josh Davis wrote: I have a question about 3. Where in a script can you use the "use" statement? Could it be used inside conditionals? For example, if ($testing) { use class testing::PDO; } else { use class ::PDO; } I hope this is a ba

[PHP-DEV] Re: my last attempt at sanity with namespaces

2008-10-16 Thread Karsten Dambekalns
Hi Greg, everyone. Greg Beaver wrote: http://wiki.php.net/rfc/namespaceissues Read it and discuss. Let's be clear people: the technical problems in namespaces are limited and solvable. The problems in the political environment surrounding them may not be. Wouldn't politics be a stupid-ass re

Re: [PHP-DEV] namespaces and alpha3

2008-10-15 Thread Karsten Dambekalns
en [1] http://forge.typo3.org/repositories/show/package-php6 [2] http://forge.typo3.org/repositories/show/packages -- Karsten Dambekalns FLOW3 & TYPO3 Development TYPO3 Association -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] namespaces and alpha3

2008-10-15 Thread Karsten Dambekalns
eature would be less ready to repeat the ordeal. I heartily second that. Regards, Karsten -- Karsten Dambekalns FLOW3 & TYPO3 Development TYPO3 Association -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] namespaces and alpha3

2008-10-15 Thread Karsten Dambekalns
just evaporate into nothingness are somewhat different. No? Trying to be cynical, Karsten -- Karsten Dambekalns FLOW3 & TYPO3 Development TYPO3 Association -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] namespaces and alpha3

2008-10-15 Thread Karsten Dambekalns
een hoping and waiting for for years? Regards, Karsten -- Karsten Dambekalns FLOW3 & TYPO3 Development TYPO3 Association -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: namespace issues

2008-09-23 Thread Karsten Dambekalns
Hi. For what it's worth, my point of view: Stanislav Malyshev wrote: 1. Allow braces for namespaces. So, the syntax for namespaces will be: a) namespace foo; should be first (non-comment) statement in the file, namespace extends to the end of the file or next namespace declaration. b) namespa

Re: [PHP-DEV] solving the namespace conflict issues between function/staticmethodclass constant/ns constant

2008-09-23 Thread Karsten Dambekalns
Hi. Dmitry Stogov wrote: Yes. Changing :: into any other separator solves the functions/static methods and constants ambiguity, but it also breaks intuitive syntax. Well, I'd say those having problems to grok the syntax will have problems getting the whole concept of namespaces. :) That bei

[PHP-DEV] Re: Adding pecl/http to core

2008-09-23 Thread Karsten Dambekalns
Hi. Michael Wallner wrote: I wonder what the general opinion is on adding pecl/http to the main PHP distribution? Many people have poked me in the past, so I guessed it's time to ask me and you that question once for all. Not that I have a lot to say here, but +∞ from my side as well. Karste