Re: [PHP-DEV] [PATCH] Notice on array to string convertion

2011-06-04 Thread David Zülke
I think for consistency's sake it should be a notice as the same is already done in _convert_to_string(). In fact, couldn't zend_make_printable_zval() use _convert_to_string()? - David On 03.06.2011, at 09:57, Derick Rethans wrote: > On Thu, 2 Jun 2011, Ilia Alshanetsky wrote:

Re: [PHP-DEV] Trying to find out where the memory went

2011-06-04 Thread David Zülke
What does var_dump(memory_get_peak_usage()); token_get_all(file_get_contents('')); var_dump(memory_get_peak_usage()); get you? David On 04.06.2011, at 23:38, Mike van Riel wrote: > Dear Internals, > > During development of DocBlox I encountered a (for me) unusual situatio

Re: [PHP-DEV] Trying to find out where the memory went

2011-06-05 Thread David Zülke
Smells like a memory leak if gc_collect_cycles() doesn't fix it. David On 05.06.2011, at 00:01, Mike van Riel wrote: > Hey David, > > That gives me the following output: > >int(640720) >int(244001144) > > Mike > > On Sat, 2011-06-04 at 23:51 +02

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-06 Thread David Zülke
wser window without an address bar in PHP" on forums. And now you want to throw yet another language construct at them that looks like JSON, but doesn't necessarily behave like it even when used with PHP's own JSON functionality, and does not offer any benefit whatsoever other than the ability to copy and paste array and object declarations between PHP and JS code. David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] $arr = array('Hello', 'world'); $arr();

2011-06-06 Thread David Zülke
<3 David On 05.06.2011, at 17:52, Felipe Pena wrote: > Hi all, > Reading our bug tracker I noticed a good feature request [1] from 2009 which > points to an interesting feature that I think makes sense for us, since we > are now working with $f() using objects and strings, and t

Re: [PHP-DEV] 5.4 moving forward

2011-06-06 Thread David Muir
ow uptake is because a lot of hosting companies run FreeBSD, and they can't upgrade to 5.3 unless they either drop support for Zend Optimizer, or swap to a different platform. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] 5.4 moving forward

2011-06-06 Thread David Muir
of the prior non-LTS releases. 3. Makes hosting companies feel safer offering an LTS release as it means less disruption for their users. 4. Businesses like it because it's less work for them to upgrade every 3-5 years instead of every 6-18 months. Those are the ones I can think of. Although I appreciate the model with my OS, I don't think it would work well on the application/component level. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-06 Thread David Zülke
single versus double quotes, trailing commas, and so forth. David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] 5.4 moving forward

2011-06-06 Thread David Muir
it stands we don't know if 5.3 will continue to be supported for the next 5 years, or if it will be EOL next year. All we have to go on is what's happened in the past, and although 5.2's lifetime was an anomaly, it seems it's what people have come to expect. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Bundling "modern" extensions

2011-06-07 Thread David Muir
y >> - faster runtime, include only what libs you use, as you need them > what are you speaking about and since how long you are working > with PHP that you never heard about PEAR, ZendFramework? > And you should know that PEAR and ZF are user-land libraries, not compiled libraries. I think Martin is wishing for is the PHP Native Interface: https://wiki.php.net/rfc/php_native_interface Either that, or a PHP equivalent of Cython or Pyrex. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Bundling "modern" extensions

2011-06-07 Thread David Muir
On 07/06/11 18:40, Reindl Harald wrote: > > Am 07.06.2011 11:32, schrieb David Muir: >> On 07/06/11 15:49, Reindl Harald wrote: >>> Am 07.06.2011 04:42, schrieb Martin Scotta: >>>> On Mon, Jun 6, 2011 at 8:15 PM, Reindl Harald >>>> wrote: >>

Re: [PHP-DEV] Trying to find out where the memory went

2011-06-07 Thread David Zülke
f the above gives the same numbers you got initially, then there's a memleak in token_get_all(). David On 06.06.2011, at 22:30, Mike van Riel wrote: > David and Pauli, > > When I change the test script to: > >var_dump(memory_get_peak_usage()); >gc_collect_

Re: [PHP-DEV] Trying to find out where the memory went

2011-06-07 Thread David Zülke
7;')); var_dump(memory_get_usage()); And then, a comparison to this would be useful: var_dump(memory_get_usage()); token_get_all(file_get_contents('')); gc_collect_cycles(); var_dump(memory_get_usage()); David On 07.06.2011, at 16:34, Ferenc Kovacs wrote: > On Tue, Jun 7, 2011

Re: [PHP-DEV] Trying to find out where the memory went

2011-06-07 Thread David Zülke
One thing to keep in mind of course is that each zval incurs an overhead. $x = 1; requires 144 bytes of memory in total IIRC. David On 04.06.2011, at 23:38, Mike van Riel wrote: > Dear Internals, > > During development of DocBlox I encountered a (for me) unusual situation > wit

Re: [PHP-DEV] Trying to find out where the memory went

2011-06-07 Thread David Zülke
essage why it might be so much more than you expected (zval overhead, basically) David On 07.06.2011, at 19:44, Mike van Riel wrote: > I have ran the script that you provided and got the following results: > >int(635192) >int(635944) > > Which is far less than the pe

Re: [PHP-DEV] Trying to find out where the memory went

2011-06-07 Thread David Zülke
eats up 8 bytes, and "12345678901234567" will consume 24 bytes for the raw text, not 17. David On 07.06.2011, at 20:26, Mike van Riel wrote: > Am i then also correct to assume that the output of > memory_get_peak_usage is used for determining the memory_limit? > > Also: after

Re: [PHP-DEV] Callable typehint

2011-06-07 Thread David Zülke
deterministic and you should therefore be able to > easily handle this gracefully. Precisely. I'd love to see a "callable" type hint too. And a "scalar" one while we're at it ;) David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] Callable type

2011-06-07 Thread David Zülke
&$array , callback $funcname [, mixed $userdata ] ) > > and type check that says "callable". Oh, good point. It should be "callback" then, too, maybe? Or the documentation should be adjusted (which might be a good idea, as "$funcname" doesn't refl

Re: [PHP-DEV] Callable type

2011-06-07 Thread David Zülke
le" arguably does make more sense, but either way, it needs to be consistent, that's what matters most. David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] Callable type

2011-06-07 Thread David Zülke
On 08.06.2011, at 00:38, dukeofgaming wrote: > On Tue, Jun 7, 2011 at 4:41 PM, Matthew Weier O'Phinney < > weierophin...@php.net> wrote: > >> On 2011-06-07, dukeofgaming wrote: >> >>> +1 for "callable", it is really more consistent. >

Re: [PHP-DEV] Callable type

2011-06-08 Thread David Zülke
He means function foo(callback derp = array('MyClass', 'ohai')) { ... } David On 08.06.2011, at 15:31, Anthony Ferrara wrote: >> No default values, other then NULL allowed. >> Otherwise we would need to support array("classname", "methodname&quo

[PHP-DEV] [IDEA/PRE-RFC] PHP Core Mentorship Program

2011-06-10 Thread David Coallier
if you prefer so we can start organising whatever would have to be done: dav...@php.net References: [1]: http://pythonmentors.com/ [2]: http://jessenoller.com/2011/03/25/just-proposed-python-core-mentorship-program/ -- David Coallier Orchestra.io -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [IDEA/PRE-RFC] PHP Core Mentorship Program

2011-06-13 Thread David Coallier
interest in participating as mentees. Just to give you an update, right now I'm trying to compile a list of volunteer-mentors. Once this has been done, we'll start compiling user-groups mentees and mentees in general. Thanks for your interest :) -- David Coallier -- PHP Internals - P

Re: [PHP-DEV] [IDEA/PRE-RFC] PHP Core Mentorship Program

2011-06-13 Thread David Coallier
7;d like to validate the idea. If anyone is interested in starting a few "contributing" pages on the wiki and whatnot then nothing stops them or you from doing it. It is open source, let ideas flourish. Back to the main subject of discussion: Are you interested in being a volunteer-mentor? -- David Coallier -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] unregister_shutdown_function()

2011-06-20 Thread David Muir
;s registered is > to remove it then that's unnecessary. > > Regards, > > Arpad > Unless you want to check if a shutdown function has been registered, and adjust certain behaviour accordingly. eg, you might want to make sure you exit gracefully prior to doing something

Re: [PHP-DEV] Variable scopes for language constructs (foreach, ...)

2011-06-26 Thread David Muir
e existing > implementations much (who uses the key/value of a foreach after the > loop?) or could easily be changed. I do, and I've seen the construct used many times. It would be a major pain to track down and fix if this behaviour changes. Cheers, David -- PHP Internals - PHP Runtime

Re: [PHP-DEV] todo: crypt_blowfish issue

2011-06-28 Thread David Zülke
e-off; people could even implement this in their app code by replacing "$2a" with "$2x" for a transitional period in the hash if the comparison fails (and then simply re-hash the password again with $2a so it's secure). I'm volunteering to write the necessary code s

Re: [PHP-DEV] todo: crypt_blowfish issue

2011-06-28 Thread David Zülke
On 28.06.2011, at 14:26, Johannes Schlüter wrote: > On Tue, 2011-06-28 at 12:19 +0200, David Zülke wrote: > >> On 27.06.2011, at 01:55, Stas Malyshev wrote: >> >>> However, it still has a chance somebody's data won't work after the >>> update if

Re: [PHP-DEV] Fix for #53727 (is_subclass_of resolution with interfaces)

2011-06-29 Thread David Zülke
On 29.06.2011, at 21:39, Ralph Schindler wrote: > interface A {} > class B implements A {} > class C extends B {} > var_dump(is_subclass_of('B', 'A')); // true Typo there; that should be 'C', not 'B'. David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] Fix for #53727 (is_subclass_of resolution with interfaces)

2011-06-29 Thread David Zülke
o the same thing? > > I thought instanceof was for parent classes + interfaces.. and > is_subclass_of() was just for parent classes. instanceof is a language construct and only operates on object instances. David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] Fix for #53727 (is_subclass_of resolution with interfaces)

2011-06-29 Thread David Zülke
On 29.06.2011, at 23:05, Martin Scotta wrote: > are you kidding, right? > > $class = 'stdClass'; > $instance = new $class; > var_dump( $instance instanceof $class ); That still only works on instances. Not on class names. Which this dicussion is about. David smim

Re: [PHP-DEV] Fix for #53727 (is_subclass_of resolution with interfaces)

2011-06-29 Thread David Muir
.) Thoughts? > > -Matt > On Jun 29, 2011 5:26 PM, "Ralph Schindler" wrote: > As in class_implements() (shown in Ralph's example)? David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] Friendly log messages for CLI server

2011-06-29 Thread David Zülke
codes if the output isn't redirected somewhere else. David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] Fix for #53727 (is_subclass_of resolution with interfaces)

2011-06-29 Thread David Muir
or that on a fairly regular basis. (when I first > found class_implements() this is what I thought it did before reading the > docs) > > -matt Oops. My bad. Missed the array_key_exists() part in the example. David -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] bugs.php.net status and plan(s)

2011-06-29 Thread David Zülke
isk, which is helpful not only on slow connections :) The bug report form and anything else that transmits a password or similar could of course still be done via https://. If the current web interface doesn't allow this, I'd be happy to help with adding that feature. David smi

Re: [PHP-DEV] Improvements to HTTP stream metadata

2011-07-01 Thread David Zülke
7;t get the metadata anymore either; newer versions have the "ignore_errors" context option for that). David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] [RFC] Choosing a distributed version control system for PHP (or not). Call for Participation.

2011-08-08 Thread David Muir
On 08/08/11 07:37, Richard Riley wrote: > David Soria Parra writes: > >> On 2011-08-07, Stas Malyshev wrote: >>> Hi! >>> >>> As somebody that have seen reasonably big project switch from SVN to git >>> and worked quite actively with git since then

Re: [PHP-DEV] [RFC] Choosing a distributed version control system for PHP (or not). Call for Participation.

2011-08-08 Thread David Muir
On 09/08/11 01:07, Lester Caine wrote: > David Muir wrote: >> John Szakmeister, who is a Subversion developer himself, has a good >> comparison of svn, hg, bzr and git: >> http://www.szakmeister.net/blog/2011/feb/17/choosing-new-version-control-system/ >> >> >

Re: [PHP-DEV] Activation of IGBinary serialization extension in 5.4 by default

2011-08-21 Thread David Muir
acked with a method other > than the current) > the pro side is that it would be possible to handle this situation (if > you cannot upgrade a php instance for example for some reason) as you > could handle those situations (unserialize the data field to get the > original data, or u

Re: [PHP-DEV] Choosing a distributed version control system for PHP - problems

2011-08-22 Thread David Muir
neither are clear front > runners? It would seem however that a hybrid system supporting both is > probably still some way off :( > There's something weird in HG's network stack. I tried doing grabbing an svn repository with hg, and it took over an hour to get part of the way t

Re: [PHP-DEV] Activation of IGBinary serialization extension in 5.4 by default

2011-08-22 Thread David Muir
, but Thunderbird picks up your address instead of internals. David On 23/08/11 09:52, Pierre Joye wrote: > then the gain will be zero. By the way, no need to go private to reply :) > > On Tue, Aug 23, 2011 at 1:29 AM, David Muir wrote: >> That still requires the extension.

Re: [PHP-DEV] [VOTE] Choosing a distributed version control system for PHP

2011-08-25 Thread David Muir
On 08/26/2011 04:12 AM, Kalle Sommer Nielsen wrote: > 2011/8/24 David Soria Parra : >> Hi Internals,, >> >> after 3 weeks of discussion, I think we are ready to start voting on >> the DVCS RFC. If you think something is missing or should be explained >> in mo

[PHP-DEV] Time zone database shut down by legal threat

2011-10-06 Thread David Zülke
FYI: http://blog.joda.org/2011/10/today-time-zone-database-was-closed.html This could impact PHP as well since it bundles the database. David P.S. I hope Google/IBM/Oracle/whoever just buys those guys and then fires everyone. -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] SplClassLoader

2011-10-24 Thread David Coallier
/github.com/metagoto/splclassloader If we can identify where we want it in the structure of the PHP project, I'll be happy to merge the implementation and modify the config files to have --enable-spl-autoloader or such. Does anyone have a preference for this? /ext/spl/ /ext/spl-loader

Re: [PHP-DEV] SplClassLoader

2011-10-24 Thread David Coallier
attempting to modify the patch to be included directly in SPL with the name SplClassLoader so that one can do: $cl = new \SplClassLoader(..., ...); Once the patch is adjusted to fit with SPL, we can revisit the name however it is going to be used. -- David Coallier -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] SplClassLoader

2011-10-24 Thread David Coallier
the patch is adjusted to fit with SPL, we can revisit the name > however it is going to be used. For the record: https://gist.github.com/1310352 (I know there are Whitespaces issues, I'll get those resolved) I'll be adding the tests tomorrow morning and then making sure the RFC is

Re: [PHP-DEV] SplClassLoader

2011-10-24 Thread David Coallier
> > Could you open a FR at bugs.php.net and attach the patch to it please? > Could be easier to track  (and the # to the RFC too :) > Yeah I'll do that once I have the tests adjusted and once I know the patch actually works as expected. -- David Coallier -- PHP Intern

[PHP-DEV] SplClassLoader RFC Voting phase

2011-11-07 Thread David Coallier
hp.net/rfc/splclassloader/vote Thank you very much for all the interest showed so far, -- David Coallier -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] SPLClassLoader RFC Thoughts And Improvements

2011-11-10 Thread David Muir
fixed target for loading classes, and if we want to support autoloading functions or whatever else later on, a new interface can be added that would define the appropriate method eg. loadFunction($function). Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: SPLClassLoader RFC Thoughts And Improvements

2011-11-10 Thread David Muir
der. A second interface could be added for self-registering autoloaders, but that begs the question, why should an autoloader know how to register itself with a particular loading stack (sure the spl autoloading stack is the only one we have, but still...)? There's no discussion in the RFC showing why those methods should be part of an autoloader interface. The same applies to the setMode() and add() methods. What contract are they fulfilling? Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] get_magic_quotes_gpc() throws deprecated warning in 5.4

2011-11-12 Thread David Zülke
and > line code on line 1 Bug report is up at https://bugs.php.net/bug.php?id=55371, I've attached a patch to the ticket and this email that fixes the problem, test included. - David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] get_magic_quotes_gpc() throws deprecated warning in 5.4

2011-11-12 Thread David Zülke
Had a few other tests failing, updated those accordingly and attached a newer version. David On 12.11.2011, at 12:06, David Zülke wrote: > I looked through the mailing list archives, and in several threads the > consensus seemed to be that the setters should throw a warning, b

Re: [PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-17 Thread David Zülke
notice, it'd not be unreasonable to expect it for ob_get_clean() as well. David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-18 Thread David Zülke
So the consensus so far is to drop notices from ob_clean(), ob_end_clean() and ob_get_clean()? What about ob_flush() or others? David On 18.11.2011, at 14:08, Ilia Alshanetsky wrote: > I agree with Stas' point there is really no need to force people do > the while (o

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

2011-11-23 Thread David Muir
xists with a final !== null check. array_isset($string['foo']['bar']) //false (not an array) array_isset($array['foo']['bar']) //true, 'foo' is an array, and 'bar' is not null array_isset($array['foo']['bar'][0]) //f

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

2011-11-23 Thread David Muir
ime is a good place for introducing new language > constructs. Actually, I'm pretty sure it's not. And I believe you're missing the point. I'm not suggesting it for 5.4, but illustrating that until something like it (or better) exists, the "bug fix" should wait unti

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

2011-11-23 Thread David Muir
On 24/11/11 12:44, Ferenc Kovacs wrote: > > > On Thu, Nov 24, 2011 at 1:38 AM, David Muir <mailto:davidkm...@gmail.com>> wrote: > > Just to clarify, the changes introduced in 5.4 will result in the > following: > > > $string = 'foo';

Re: [PHP-DEV] FRC: html_erros and docref_root

2003-03-19 Thread David Hill
> Some 64bit issues, some bugs marked "Critical", etc.. > On the 64bit issues... other than the ext/mbstring thing I am not currently aware of any. I am still looking at the current test failures though - I have 12 and so far 3 are explainable do to os "features" and one is the mbstring pro

Re: [PHP-DEV] CVS Account Request: imran

2003-03-20 Thread David Brown
On Thu, Mar 20, 2003 at 07:54:14AM -, imran asghar wrote: | to know with new bugs. If you're looking for information on existing PHP bugs (or are interested in reporting new ones), you probably want http://bugs.php.net/, not a CVS account. -- PHP Internals - PHP Runtime Development Mailing

RE: [PHP-DEV] issues with gettext on multithreaded servers

2003-03-21 Thread David Sklar
-specific settings or environment variables should take priority and then do the right think based on the OS. David > On Fri, 21 Mar 2003, Nathan Fredrickson wrote: > >> Hi all, >> >> I have found some problems (and possible solutions) concerning use >> of the get

[PHP-DEV] Re: [PHP-QA] Picky about TZ dates...

2003-03-24 Thread David Hill
I need to change the US/Eastern references as well - needs to be EST5 or EST-5. Dave - Original Message - From: "Marcus Börger" <[EMAIL PROTECTED]> To: "David Hill (php.net)" <[EMAIL PROTECTED]> Cc: "Php-Qa" <[EMAIL PROTECTED]>; <[EMA

[PHP-DEV] reentrantcy issue with ext/standard/parsedate.y

2003-03-27 Thread David Hill
Hi all, while trying to understand a test failure on Tru64 I noticed that ext/standard/parsedate.y is not reentrant. I am assuming that we do care about this given the effort with ZTS and I care because I build Apache2 multithreaded. I am not much of a bison expert (other than to say that

Re: [PHP-DEV] bison 1.875 causes segfault

2003-03-28 Thread David Hill
I am not seeing this problem with Apache 1.3, PHP_4_3 or php5-HEAD and tru64, nor with the cli. What platform are you seeing it on ? Could it be any unitilized or buffer overflow issue ? Dave - Original Message - From: "Sebastian Bergmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

RE: [PHP-DEV] [PATCH] upload progress metter

2003-06-06 Thread David Enderson
, that the easiest way to pass information seemed to be through the use of temporary files. I was hoping that once I submitted my patch that someone on this list might have a better suggestion like direction on using shared memory or something. --David -=+=- David Enderson Programmer

[PHP-DEV] [PATCH] Fixes for Sybase-DB in PHP 5 HEAD

2003-06-06 Thread David Brown
Hi: The enclosed patch makes the Sybase DBLib support compile against PHP 5 and ZE 2, fixes crashes in sybase_select_db() and sybase_affected_rows() related to incorrect zval initialization, implements the missing sybase_fetch_assoc(), removes a bunch of redundant calls to Z_STRLEN_PP() in php_syb

Re: [PHP-DEV] sendmail and smtp

2003-05-28 Thread David Grant
Allowee wrote: I got the feeling that it's linux again.. it's in a sig smewhere... "Linux is user friendly, it's just picky on who's friend it is" something like that.. Have you tried examining your log files? Regards, David -- David Grant Web De

[PHP-DEV] [PATCH (resend)] Add an optional size limit to debug_backtrace

2003-05-29 Thread David Brown
Hi: Attached is a patch that adds an optional 'limit' parameter to debug_backtrace, which limits the size of the returned array. In cases where a script wants debug information only for the current function, or for the function levels above that, we can save a lot of unnecessary call-stack traver

[PHP-DEV] ZE2 and assert()

2003-05-31 Thread David Brown
Hi: Given the following script, which uses assert to eval() a string that references the current class: foo == 1'); } function as_expr() { assert($this->foo == 1); } } $foo = new foo(); $foo->as_expr(); $foo->as_string(); ?> PHP 4.3-cvs executes it correctly, but PHP 5.0-cvs wi

[PHP-DEV] [PATCH] Fix off-by-one in zend_register_standard_constants

2003-06-01 Thread David Brown
Hi: The function zend_register_constant expects c->name_len to equal sizeof(c->name) for any struct _zend_constant named c. In zend_register_standard_constants, sizeof() is used to compute the length of the constant name correctly, but ZEND_STRL() is used to allocate the string. ZEND_STRL() alloca

[PHP-DEV] Bug #22510: Working toward a fix...

2003-06-01 Thread David Brown
Hi: I believe there's a missing refcount increment causing this bug, and I think I may have uncovered some evidence that could get us closer to a fix. I've added opcode dumps to zend_execute.c with a well-placed perl command, so as to see the instructions as they're executed. All of the following

[PHP-DEV] Re: CVS commit in ZendEngine2/zend_execute.c

2003-06-01 Thread David Brown
> zend_execute.c, 1.468 (sterling) > Sat May 31 14:31:28 2003 (5 hours, 35 minutes ago) > revert the function call caching patch until a new solution is decided > upon. Hi: Is this being reverted due to a reported crash? If not, I'm currently seeing several with the patch applied (which go away w

Re: [PHP-DEV] Re: CVS commit in ZendEngine2/zend_execute.c

2003-06-01 Thread David Brown
On Sun, Jun 01, 2003 at 02:34:41AM +0200, Marcus B?rger wrote: | Yes David, | | in ZTS mode it causes much problems, i found them some hours ago. But | the main reason for revert is that the patch was done in the wrong | way. Currently we are trying to figure out a new way since the | performance

Re: [PHP-DEV] allow_url_fopen / allow_url_include and fine grained control

2007-01-18 Thread David Zülke
Sara, I assume this would also mean all userland stream wrappers become is_url=1? Anyway, +1. David Am 17.01.2007 um 02:07 schrieb Sara Golemon: allow_url_include has been bashed lately for being "not good enough", and there is a kernel of truth to that, though where the

[PHP-DEV] CVS Account Request: jamek6

2007-01-19 Thread David Jamka
For Translating the documentation -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Diagnosing bug

2007-01-22 Thread David Mytton
t case for this so I can report it properly? Thanks, David Mytton -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] allow_url_fopen / allow_url_include and fine grained control

2007-01-22 Thread David Zülke
My understanding is that this coudn't happen because a userspace stream would be flagged is_url. So unless someone turns off, say "ftp", and then adds "ftp" to the whitelist, there is no problem. And if anyone does that, he/she should seriously consider looking for a job where he/she can't

[PHP-DEV] CVS Account Request: shangxiao

2007-02-11 Thread David Sanders
I've been told to request karma for pear/HTML_QuickForm_altselect Proposal: http://pear.php.net/pepr/pepr-proposal-show.php?id=475 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: doury

2007-03-05 Thread David Oury
Publication of an experimental extension connecting PHP to Z/OS-IMS. This prototype includes execution of transactions using close copies filled through XML description. Link to previous discussion in PECL news : http://news.php.net/php.pecl.dev/4586 Link to Source Forge project : https://source

[PHP-DEV] Re: PHP Just-In-Time Compiler

2007-03-08 Thread David Lindstrom
Phalanger might be of interest to you.. Compiles PHP to MSIL, which then compiles to machine code JIT.. Works pretty good really.. http://www.php-compiler.net http://www.codeplex.com/Phalanger -- // DvDmanDT mail: dvdmandt¤telia.com msn: dvdmandt¤hotmail.com "Jacob Santos" <[EMAIL PROTECTED]>

[PHP-DEV] RE : [PHP-DEV] CVS Account Request: doury

2007-03-14 Thread OURY David
Hello, I can't login to http://pecl.php.net My subscription has been rejected ? Or more time is required ? David OURY INFOTEL Conseil [EMAIL PROTECTED] -Message d'origine- De : David Oury [mailto:[EMAIL PROTECTED] Envoyé : lundi 5 mars 2007 13:19 À : internals@lists.php

Re: [PHP-DEV] A request for code change : Repeated opening and closing the session leads to a LOT of Set-Cookie headers.

2007-03-15 Thread David Lindstrom
Well, you could always add a user comment. Isn't that what they are for anyway? ""Richard Quadling"" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Ha! > > Stupido! I had cut'n'pasted and somehow had a trailing space on the > ini entry name! > > But, it works a treat. > > Is t

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-19 Thread David Zülke
r_dump($data); # data is sorted alphabetically So, the question is, do we want this in PHP? Oh yes. Please. Please. Please :) David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-20 Thread David Zülke
27;php://stderr',"Error: $msg\n"); } vs. $error_func = function($msg) { file_put_contents('php://stderr',"Error: $msg\n"); } The second one looks better for me. what about "lambda", like in Python? David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-20 Thread David Zülke
at means people will maybe look it up to learn what a lambda is before they use it, just what PHP needs ;) Seriously though, my suggestion is nonsense because anonymous functions in PHP wouldn't be restricted to a single expression, which is the case with lambdas. David -- PHP Int

[PHP-DEV] GSoC idea proposal for a new PHP project

2007-03-24 Thread David Duong
he right mentoring organization to apply to. Although it doesn't add to the PHP project itself, except to be a test case itself for PHP5 and possibly PHP6. I should end the email here, but I'll provide a schedule, progress indicators, bio, etc in the Google SoC application. Regards,

[PHP-DEV] Re: Fatal Error on pecl.php.net and bugs.php.net not responding

2007-03-25 Thread David Duong
It seems to be working now. - David Jakob Buchgraber wrote: Hey! When using the search on pecl.php.net I get a PHP fatal error. I actually wanted to file a bug, but http://bugs.php.net is not responding. I queried for APC using the package search: http://pecl.php.net/package-search.php

Re: [PHP-DEV] GSoC idea proposal for a new PHP project

2007-03-28 Thread David Duong
, SQLite, PgSQL and MSSql. Even though the application has already been submitted, I would appreciate any comments or suggestions about this project. Regards, David Duong Marcus Boerger wrote: Hello David, remember that the deadline for submitting projects is monday. best regards marcus

Re: [PHP-DEV] GSoC idea proposal for a new PHP project

2007-03-28 Thread David Duong
Please ignore all the redundant statements in my first paragraph >.<, I'm not sure why it came out to be like that.. David Duong wrote: Hello everyone and thanks for the reminder Marcus, This is just a follow up of what I posted earlier in this thread. Instead of submitting m

[PHP-DEV] max_execution_time - ITIMER_REAL vs ITIMER_PROF

2007-04-04 Thread David Sklar
porating a patch for a "max_real_time" config directive / timeout? Thanks, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] magic_quotes_gpc behaviour

2007-04-10 Thread David Zülke
2 branch? Yes, BC. magic_quotes is crappy/complicated enough to deal with already, please don't make it behave differently between PHP5 versions. No need to. Nobody should use it anymore, so there is no reason to change behavior again anyway. David -- PHP Internals - PHP Runtime De

Re: [PHP-DEV] dropping asp_tags in HEAD

2007-04-14 Thread David Lindstrom
I suggest adding a new php.ini option: ignore_xml_tags, default to on, which would cause the parser to just ignore tags. -- // DvDmanDT mail: dvdmandt¤telia.com msn: dvdmandt¤hotmail.com "Bart de Boer" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > > I think ASP tags should

[PHP-DEV] Trapping "memory exhausted" error

2007-04-16 Thread David Sklar
to adjust the heap limit and throw a non-fatal error from within zend_mm_safe_error()? David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Trapping "memory exhausted" error

2007-04-17 Thread David Sklar
as been reached, and in that case they'd want to be able to calculate the appropriate size of their grace period, but if they're going to go to such contortions, then that's what they're stuck with. David Richard Lynch <[EMAIL PROTECTED]> wrote: You might also come at it

Re: [PHP-DEV] Trapping "memory exhausted" error

2007-04-17 Thread David Sklar
-- as Stanislav said above, it could be difficult to do a lot after the allocation has failed. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Trapping "memory exhausted" error

2007-04-18 Thread David Sklar
On 4/17/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, April 17, 2007 3:16 am, David Sklar wrote: > Richard Lynch <[EMAIL PROTECTED]> wrote: >> You might also come at it from the other direction and detect/notify >> at some number smaller than the current

Re: [PHP-DEV] Trapping "memory exhausted" error

2007-04-18 Thread David Sklar
mments at http://php100.wordpress.com/2007/04/16/graceful-recovery/) David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] require_once

2007-04-24 Thread David Sklar
want maximum performance here, pass full paths, not relative paths, to include/require to avoid any include_path overhead. David On 4/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello everyone, when testing speed of includes and requires i found that "require_once" seems

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread David Lindstrom
Still, PHP should never segfault? "Chris Malton" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Antony Dovgal wrote: >> Please try the latest snapshot available at http://snaps.php.net. >> If you're still able to reproduce the problem using the snap, please >> provide a short (

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread David Lindstrom
Doesn't the zval contain info about the length of the string? -- // DvDmanDT mail: dvdmandt¤telia.com msn: dvdmandt¤hotmail.com "Ci" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Stefan Esser napisa³(a): >> No. The correct way for getting the variable is >> >> >> zval **data;

[PHP-DEV] PHP6 Feature Testing & Debugging

2007-04-26 Thread David Coallier
reported ? I am currently building a list of things that we have to test and I am wondering which are the parts you consider the most important and the most bogus/untested perhaps. Thanks, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net

<    1   2   3   4   5   6   7   8   9   10   >