Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Richard Lynch
On Mon, July 16, 2007 7:47 am, Jani Taskinen wrote: I have moved the POSIX regex dependant functions to ext/ereg/ extension. Now only places using the POSIX regex functions (ext/ereg/ excluded) are ext/standard/browscap.c and ext/pgsql/pgsql.c. I took a brief look at the pgsql.c stuff, and

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-17 Thread Richard Lynch
On Sat, July 14, 2007 9:00 am, Rasmus Lerdorf wrote: Richard Lynch wrote: $a = マニュアル; echo $a[1]; Whoa. That was weird... Right, your mail client doesn't handle Unicode correctly. You might want to do something about that. Or not, since I don't have any

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 4:29 pm, Jani Taskinen wrote: Richard Lynch kirjoitti: I took a brief look at the pgsql.c stuff, and it looks like it's all fairly straight-forward to alter to PCRE instead of POSIX, and it's all localized to this function: http://lxr.php.net/ident?i

Re: [PHP-DEV] PHP ICU project announcement

2007-07-14 Thread Richard Lynch
On Fri, July 13, 2007 2:35 pm, Stanislav Malyshev wrote: We have started a project to make it easier to support international markets using PHP. A number of internationalization functions from IBM ICU will be made available in PHP as an extension. I realize that my natural state is the state

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-14 Thread Richard Lynch
On Wed, July 11, 2007 9:02 pm, chris# wrote: Getting 2 PHP modules to co-exist without tromping on each others' symbols is, I think, the show-stopper... It was possible to have PHP3 and PHP4 both as modules, I think, but that was an anomoly? So which one of the developers broke this

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-14 Thread Richard Lynch
On Wed, July 11, 2007 9:14 pm, Rasmus Lerdorf wrote: Richard, you are rather confused on this Unicode stuff. I'm 100% certain we can all agree on that point. :-) The fact that PHP and ICU uses UTF-16 internally has absolutely nothing to do with what is exposed at the scripting level. But

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-11 Thread Richard Lynch
On Wed, July 11, 2007 6:13 pm, Tijnema wrote: On 7/12/07, Jani Taskinen [EMAIL PROTECTED] wrote: A lot easier (and works already) is to install PHP as CGI/FastCGI (one version or all of them, one can be module of course) and define the required PHP version by the file suffix.. --Jani

Re: [PHP-DEV] Always enable mail() function

2007-07-11 Thread Richard Lynch
On Tue, July 10, 2007 4:49 pm, Jani Taskinen wrote: I'd like to commit the attached patch which should always enable mail(), any objections? +1 I don't see any reason why I should have to install sendmail before I install PHP. PHP is way more important than sendmail, after all. :-) It's not

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-11 Thread Richard Lynch
On Mon, July 9, 2007 2:49 am, Stanislav Malyshev wrote: +1 for braces. ?php function super_common_function_every_namespace_in_my_project_uses(){ } namespace A::B { function foo() { //arcana of A::B stuff } } ? That's what I would like to avoid. Because if you

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-11 Thread Richard Lynch
On Mon, July 9, 2007 4:58 pm, Stefan Priebsch wrote: I know, and I use spl_autoload_register. But then I would blatantly suggest to remove __autoload() in PHP6 and force SPL to be compiled into PHP. Deprecate in 6, remove in 7 might be a better strategy... Otherwise you'll hear: Oh, I can't

Re: [PHP-DEV] RIP PHP 4?

2007-07-11 Thread Richard Lynch
On Wed, July 11, 2007 7:48 pm, Jeff Griffiths wrote: Richard Lynch wrote: On Wed, July 11, 2007 4:40 pm, Tijnema wrote: Except for the OO, I don't see anything that can't be done in PHP4, while it can be done in PHP5. Some workarounds are maybe needed, but it mostly doesn't require more than

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-11 Thread Richard Lynch
On Mon, July 9, 2007 3:06 am, Stanislav Malyshev wrote: But now \xF0 isn't going to be ASCII 128 anymore, is it? ASCII doesn't have any characters beyond 0x7f AFAIK, but it doesn't matter, I get what you mean. \xF0 in unicode mode would be U+00F0 of course. Now how preg_match should handle it

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-11 Thread Richard Lynch
On Mon, July 9, 2007 3:13 am, Alexey Zakhlestin wrote: On 7/9/07, Richard Lynch [EMAIL PROTECTED] wrote: Anybody who actually NEEDS Unicode ought to be the ones who have to type a new keyword or something, not the bazillion users who have no need for Unicode and likely never will... I

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-11 Thread Richard Lynch
On Mon, July 9, 2007 1:41 pm, Andrei Zmievski wrote: Once again, you're trying to work with bytes inside Unicode strings, which just does not make sense. From our perspective, you've gone and changed a fundamental data structure out from under us, in a non-backwards-compatible way, and broken a

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-11 Thread Richard Lynch
On Wed, July 11, 2007 3:11 am, Richard Quadling wrote: On 11/07/07, Evert | Rooftop [EMAIL PROTECTED] wrote: Larry Garfield wrote: Top 10 by what metric? If I had to guess based on market share, I'd say (unordered): Drupal Squirrelmail WordPress phpMyAdmin MediaWiki Joomla

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-11 Thread Richard Lynch
On Wed, July 11, 2007 7:57 pm, David Coallier wrote: If you want to do functional programming then go ahead, if you want to do OOP, then do real OOP, not sub-oop or some php4-oop. Many users, for many tasks, have absolutely zero need to do any OOP at all. And bloating their PHP for OOP they

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-11 Thread Richard Lynch
On Tue, July 10, 2007 7:06 pm, Larry Garfield wrote: If 90% of the strings in use would work fine if treated as unicode, then it would make sense to just always assume Unicode unless explicitly specified otherwise. If that 10% includes enough users who have written millions of line of code

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-11 Thread Richard Lynch
On Mon, July 9, 2007 5:24 pm, Christopher Jones wrote: I also think we shouldn't backport features to PHP5. We should I believe the only serious reason FOR this is if you want to drop the semantics OFF in PHP 6... If getting new features requires upgrading to 6 and taking the Unicode stuff

RE: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-11 Thread Richard Lynch
On Tue, July 10, 2007 11:30 am, Andi Gutmans wrote: What I really think we need to do for this release, which we haven't been good at doing in the past, is build a PHP Compatibility Team which tries to port many applications to PHP 6 and finds the issues in doing this port (both with

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-11 Thread Richard Lynch
Seems to me... Both need to be done. Do both, or pick one if you can't do both, and somebody else will do the other. That's how FLOSS works. :-) On Wed, July 11, 2007 12:33 am, Evert | Rooftop wrote: One final question.. should I assume while converting code unicode.semantics is on or off?

Re: [PHP-DEV] RIP PHP 4?

2007-07-09 Thread Richard Lynch
With the benefit of a lot of reading in this thread... And not sure my vote even counts. +1 PHP4 link to museum +1 Announce ASAP security fixes only until 8/8/8 It is not abandoning users, at this point, to do this, imho. They've had years to switch to PHP 5. They've got another years' worth

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-09 Thread Richard Lynch
On Fri, July 6, 2007 1:23 am, Stanislav Malyshev wrote: You mean this will break: ?php $mask = 0xf0; $value = $_POST['foo'] $mask; ? because of Unicode? I'd say it won't do what it did before. Though I'm not sure bit operations on unicode make any sense at all... The problem here

RE: [PHP-DEV] Simple Namespace Proposal

2007-07-09 Thread Richard Lynch
On Sun, July 8, 2007 2:58 am, Dmitry Stogov wrote: -1 for braces and multiple namespaces per file Braces will allow define something outside namespace and I like to avoid this possibility. In the following correct example function bar() is defined in global namespace. ?php namespace

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-09 Thread Richard Lynch
On Fri, July 6, 2007 11:48 am, Antony Dovgal wrote: On 06.07.2007 20:44, Stanislav Malyshev wrote: You don't by a Porsche if you need a taxi, why would you install PHP6 if you don't need Unicode? Namespaces ;) This reason is only valid if we don't backport such things from PHP6 to PHP5

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-05 Thread Richard Lynch
On Fri, June 29, 2007 1:21 am, Tomas Kuliavas wrote: If unicode semantics are on what exactly is borked in PHP 5? In Unicode mode \[0-7]{1,3} and \x[0-9A-Fa-f]{1,2} refer to unicode code points and not to octal or hexadecimal byte values. Fix is not backwards compatible. Gak. You mean

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-05 Thread Richard Lynch
On Fri, June 29, 2007 3:25 am, Alexey Zakhlestin wrote: The thing which I don't understand is: why do people want backward compatibility that much? Because if you run a webhost with a zillion users, half of whom are screaming for PHP 6, and half of whom are screaming because something broke,

Re: [PHP-DEV] Exception thrown without a stack frame

2007-07-05 Thread Richard Lynch
On Sat, June 30, 2007 9:55 am, Jakob Buchgraber wrote: Okay, I can now reproduce the problem. Here is the code: ?php class Foo { public function __destruct() { throw new Exception(); } } $a = new Foo(); ? I couldn't reproduce it before as I didn't assign the instance

Re: [PHP-DEV] toString() and Object #ID

2007-07-05 Thread Richard Lynch
On Sun, July 1, 2007 2:18 pm, Pavel Shevaev wrote: $ php -r class Foo{};$foo = new Foo();var_dump($foo); object(Foo)#1 (0) { } What I actually need, not the object hash but simply its unique id. According to Marcus, it's NOT unique. But I can see that for debugging, it would be very very

Re: [PHP-DEV] toString() and Object #ID

2007-07-05 Thread Richard Lynch
On Sun, July 1, 2007 2:50 pm, Sebastian Bergmann wrote: Pavel Shevaev schrieb: What I actually need, not the object hash but simply its unique id. The problem is that there is no such unique id in the current engine. How does PHP internally distinguish it? Surely it has some kind of

Re: [PHP-DEV] Feature(let) idea

2007-06-28 Thread Richard Lynch
On Tue, June 19, 2007 3:36 am, Stefan Priebsch wrote: - define a unified path separator for include_path (the system-dependend ones could still be accepted, thus keeping BC) Any character you choose would be a valid part of a filename in some other OS, and so you'd then need an escape

Re: [PHP-DEV] Bug 38245: magic_quotes_gpc and $_FILES

2007-06-28 Thread Richard Lynch
On Tue, June 19, 2007 5:19 am, Tim Starling wrote: Can someone explain the closing comment on this bug report to me? http://bugs.php.net/bug.php?id=38245 Surely in a addslashes-escaped string, \\ is the Windows directory separator, not \. The bug clearly describes irreversible corruption

Re: [PHP-DEV] Re: documentation of php5ts.dll and .NET wrapper

2007-06-28 Thread Richard Lynch
On Tue, June 19, 2007 3:38 am, Richard Quadling wrote: On 19/06/07, Johannes Schlüter [EMAIL PROTECTED] wrote: Sara has a nice article about TSRM: http://blog.libssh2.org/index.php?/archives/22-What-the-heck-is-TSRMLS_CC-anyway.html and since you're using php5ts.dll you have zts enabled.

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-06-28 Thread Richard Lynch
On Tue, June 19, 2007 2:44 pm, Rasmus Lerdorf wrote: It comes down to predicting the future. Whichever way we go, the decision is going to be second-guessed. If we have critical mass for a clean BC break, then I am ok with it. For me personally it would make things a bit easier, but I

Re: [PHP-DEV] Exception thrown without a stack frame

2007-06-28 Thread Richard Lynch
I would guess that an exception is getting thrown before you PHP script has actually started... Something in the parsing of GET/POST data or file upload handler, perhaps. Can you nail down what was being done when it occurred, perhaps by sending the error to Apache error log, and then looking at

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 2:07 am, Dmitry Stogov wrote: Current time most PHP instalations use setting 'display_error=0'. This setting hides errors from user but may send to him just a blank page. The proposed patch sends HTTP 500 response on errors instead of blank pages. The pages that

Re: [PHP-DEV] Windows and Memory Limit of -1

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 7:09 am, Richard Quadling wrote: Hi. Are there any special concerns for setting memory_limit to -1 in PHP.INI on Windows (using Sambar Server, not IIS/Apache). I'm getting Out of memory errors recently. Memory is good. Admittedly the code is trying to add a 12MG file

Re: [PHP-DEV] [RFC] SPL PCRE as always enabled in core

2007-06-05 Thread Richard Lynch
On Tue, June 5, 2007 3:19 pm, Marcus Boerger wrote: let's make ext/pcre and ext/spl first class core components and not allow to disable them. PCRE: +0.5 SPL: -1 (Just confuses me, never use it, don't need it) ymmv imho . . . -- Some people have a gift link here. Know what I want? I

Re: [PHP-DEV] Recursive classes ... possible bug?

2007-06-05 Thread Richard Lynch
On Tue, June 5, 2007 4:10 pm, [EMAIL PROTECTED] wrote: Dear internals, I stumbled upon the following odd error message from PHP which I was not expecting. Here is a small example that triggered the error with 5.2.2, 5.2.3 and a php5.2-200706052030 snapshot. ?php class class1{

Re: [PHP-DEV] [patch] Callbacks bug/change request

2007-06-01 Thread Richard Lynch
On Fri, June 1, 2007 12:06 pm, Stanislav Malyshev wrote: You'd probably do something along those lines if it were possible: ((ParentClass) $child)-virtualMethod(); Looks like bad style to me - why not call child's method and it would, if needed, pass control to parent? Or, if, for some

Re: [PHP-DEV] Toggling enable_dl API off for runtime?

2007-05-31 Thread Richard Lynch
On Thu, May 31, 2007 3:36 pm, William A. Rowe, Jr. wrote: In httpd server (and most) there is a startup phase, when we generally trust what the admin has done, and a runtime phase. There are obvious exploits if untrusted scripts can run arbitrary dlload's after startup. Call me silly, but if

Re: [PHP-DEV] [patch] Callbacks bug/change request

2007-05-31 Thread Richard Lynch
On Thu, May 31, 2007 3:44 pm, Stanislav Malyshev wrote: What about array('B', 'self::foo') -- I can see how that's needed to call the static method, I guess... But that won't be different from just array('B', 'foo') so you don't need self::... Duh. Sorry. I somehow had some imaginary

Re: [PHP-DEV] Toggling enable_dl API off for runtime?

2007-05-31 Thread Richard Lynch
On Thu, May 31, 2007 4:14 pm, William A. Rowe, Jr. wrote: Richard Lynch wrote: On Thu, May 31, 2007 3:36 pm, William A. Rowe, Jr. wrote: In httpd server (and most) there is a startup phase, when we generally trust what the admin has done, and a runtime phase. There are obvious exploits

Re: [PHP-DEV] Session security

2007-05-29 Thread Richard Lynch
On Tue, May 29, 2007 12:04 pm, Stut wrote: Hi all, Just wanted to get your opinion on a discussion currently going on on the general list. Why does the PHP session extension not use something like the user agent to validate that a session ID has not been hijacked? Or is this something

Re: [PHP-DEV] bitwise operations and Unicode strings

2007-05-29 Thread Richard Lynch
On Tue, May 29, 2007 4:25 am, Antony Dovgal wrote: Hello. Do you think the engine should support bitwise operators and Unicode strings? If yes, how do you think it should work? Example: ?php $a = 1; $a|=2; var_dump($a); ? This code outputs 3 in native mode and Fatal error:

Re: [PHP-DEV] late static binding

2007-05-29 Thread Richard Lynch
Maybe I'm just confused (well, I'm always confused...) but if a Class has multiple children, how the heck would PHP know which child:: to call?... On Sat, May 26, 2007 5:48 pm, Ken Stanley wrote: Hi all! I've been researching the current status of late static binding, and I came across this

RE: [PHP-DEV] PHP Unicode extension in PHP6

2007-05-24 Thread Richard Lynch
On Tue, May 22, 2007 1:12 pm, Derick Rethans wrote: On Tue, 22 May 2007, Tomas Kuliavas wrote: Recent versions of PHP5, has a binary string introducer. echo strlen(b\xC4\x85); I have already said to Stefan. It is not an option. I need backwards compatibility. If older PHP versions

Re: [PHP-DEV] PHP Unicode extension in PHP6

2007-05-21 Thread Richard Lynch
On Mon, May 21, 2007 9:57 am, Stefan Walk wrote: On 21/05/07, Tomas Kuliavas [EMAIL PROTECTED] wrote: Latin capital letter A with diaeresis is 00C4. Not C4. Pay attention in maths, leading zeroes don't change a number. Pay attention to documentation. Leading zeros change a number. ?php

Re: [PHP-DEV] potential solution to user streams + allow_url_include=off

2007-05-21 Thread Richard Lynch
On Fri, May 18, 2007 10:51 am, Greg Beaver wrote: The solution: = Add a new function: stream_wrapper_set_local() So, basically, your function would be similar to: I'm removing the safety from the gun with which I might shoot myself in the foot. :-) :-) :-) Would it be applied on

Re: [PHP-DEV] potential solution to user streams + allow_url_include=off

2007-05-21 Thread Richard Lynch
On Fri, May 18, 2007 6:47 pm, Cristian Rodriguez wrote: 2007/5/18, Greg Beaver [EMAIL PROTECTED]: ?php include $_GET['dumb']; ? What about permanently removing this (mis) feature ?? , Im yet to hear any valid reason or example to continue to permit this remote include thingy, all

Re: [PHP-DEV] 1/-2*5 (bug 41401)

2007-05-21 Thread Richard Lynch
On Fri, May 18, 2007 12:03 pm, Derick Rethans wrote: On Fri, 18 May 2007, Rasmus Lerdorf wrote: Stanislav Malyshev wrote: Looks like we have a precedence bug in the parser rules there. Fortunately it's quite easy to fix, for example writing the rules as: |'+' expr %prec T_INC

Re: [PHP-DEV] potential solution to user streams + allow_url_include=off

2007-05-21 Thread Richard Lynch
On Sat, May 19, 2007 4:00 am, Stefan Esser wrote: Antony is very fast with assigning bugs to persons that have nothing todo with them. I believe there is still a bug assigned to me because in Antony's world I am responsible for it, while infact my commit was in a version AFTER the one the

Re: [PHP-DEV] potential solution to user streams + allow_url_include=off

2007-05-21 Thread Richard Lynch
On Sat, May 19, 2007 3:00 am, Stefan Esser wrote: If you are aware of some security problems in current PHP sources you are as always welcome to report them and they will be fixed. I think everybody here as always are thankful for any help we can get. Ohh BTW. I am aware of many security

Re: [PHP-DEV] potential solution to user streams + allow_url_include=off

2007-05-21 Thread Richard Lynch
On Sat, May 19, 2007 4:42 am, Cristian Rodriguez wrote: 2007/5/18, Stanislav Malyshev [EMAIL PROTECTED]: Sane hosters do not rely on general-purpose language to provide security, they use OS and hardware designed for exactly that purpose. ;) unfortunately hosters has to equilibrate security

Re: [PHP-DEV] Re: #41401 [Opn-Bgs]: Order of Operations error on divide by negative

2007-05-17 Thread Richard Lynch
On Wed, May 16, 2007 9:08 am, Brian Moon wrote: According to my memory of Please My Dear Aunt Sally these should be: My memory has My Dear in equal priority, left to right... This documentation would seem to bear that out:

Re: [PHP-DEV] register_session_gc_handler proposal

2007-05-17 Thread Richard Lynch
On Tue, May 15, 2007 12:53 pm, Emil Ivanov wrote: Sorry to bother you, as I know you are quite busy, but I have a problem and maybe a elegant solution does not exist right now. The case is simple: A user is allowed to upload files to the server, which are store in a temporary location and

Re: [PHP-DEV] Tests - and a question

2007-05-17 Thread Richard Lynch
On Tue, May 15, 2007 12:38 pm, Antony Dovgal wrote: On 05/15/2007 08:52 PM, Stanislav Malyshev wrote: Well, I'm pretty sure regular humans know how to run `find . -name *.phpt | xargs grep func`. I dunno... It took me years to figure out that xargs thing and how to make it go... I'd read the

Re: [PHP-DEV] Tree sort in C

2007-05-10 Thread Richard Lynch
On Wed, May 9, 2007 1:00 pm, Brian Moon wrote: Richard Lynch wrote: Seems like you could just make it a custom extension and see if people use it a lot... Even if you just had every phorum user asking for it, that would drive a lot of interest, no? Well, making a custom Phorum

Re: [PHP-DEV] Tree sort in C

2007-05-09 Thread Richard Lynch
On Wed, May 9, 2007 9:22 am, Brian Moon wrote: A common issue in lots of applications is tree sorting with unlimited depth. Phorum has used a recursive function since 1999 to solve this problem. However, at MySQL Conference this year, we finally wrote a non Seems like you could just make it

Re: [PHP-DEV] Re: Help with the snaps site

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 10:30 am, David Coallier wrote: Here is an optimized version for early browsers: http://dev.agoraproduction.com/php/snaps/snaps2.php Works for me. [not a joke] I'd rather have a simple site that works in Mozaic 1.0 than something that only mostly kinda sorta works in

Re: [PHP-DEV] serialize and cache handling

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 1:17 am, Derick Rethans wrote: On Mon, 7 May 2007, Lukas Kahwe Smith wrote: Stanislav Malyshev wrote: can write this data to disk. So, you needs 20MB. If serialize (and of course unserialize) would be able to write directly to disk (or read directly from disk),

Re: [PHP-DEV] [PATCH] Passthrough MD5/SHA1 calculation of uploaded files

2007-05-07 Thread Richard Lynch
What purpose does this serve, exactly?... Seems like anybody who can intercept the upload and send bad file data can also send a matching MD5 for the bad data... Actually, re-reading the message clarified for me that you're doing this only to save the time of whatever it would take to do an MD5

Re: [PHP-DEV] Bug? Raw POST data in PHP 5.2.2, take two

2007-05-07 Thread Richard Lynch
On Mon, May 7, 2007 2:30 pm, Dirk Haun wrote: Ilia Alshanetsky wrote: I sure hope those nifty Web 2.0 sites don't use SOAP and XML-RPC but rather JSON or REST. Okay, but XML-RPC is used for Pingbacks, Trackbacks, and for pinging weblog directories like Technorati. That's something like the

RE: [PHP-DEV] [RFC] Starting 5.3

2007-05-07 Thread Richard Lynch
On Mon, May 7, 2007 1:17 am, Andi Gutmans wrote: I see no value in making compatibility breaks in 5.x and not in the next major version. As it is we drive a lot of our users crazy. We already agreed this is a 6.x thing. +1 If there has to be a 5.3, I'd want to see features that: are

Re: [PHP-DEV] [RFC] Starting 5.3

2007-05-04 Thread Richard Lynch
On Fri, May 4, 2007 1:09 pm, Antony Dovgal wrote: If you don't like PECL or think it's too difficult to use, let's make it easy enough for all. How easy is it for an average user on a shared host that needs X, to use pecl to get X, without an intervention by the webhost? I know y'all don't

Re: [PHP-DEV] Re: Help with the snaps site

2007-05-04 Thread Richard Lynch
On Fri, May 4, 2007 4:49 am, Richard Quadling wrote: Hey! It wasn't THAT scary! Just a table which has the most recent activity on the left side columns. Not too wide. Easy to see which version and the either source or Win32 stuff. And also all the additional files requested. I like the

Re: [PHP-DEV] [RFC] Starting 5.3

2007-05-04 Thread Richard Lynch
On Fri, May 4, 2007 12:46 pm, Ilia Alshanetsky wrote: 2) Add open_filename debug info to streams What would this mean for performance and memory usage of file ops? An additional malloc and strcpy on opening and an additional free on closing. We could however limit actual use to

Re: [PHP-DEV] While-else

2007-05-03 Thread Richard Lynch
On Thu, May 3, 2007 2:34 am, Andrew Brampton wrote: - Original Message - On Sat, April 28, 2007 1:03 pm, Pelle Ravn Rosfeldt wrote: Is it possible to make a while with a else-statement in PHP6? I know that it's not the first time this subject is up, but my research shows that a lot

Re: [PHP-DEV] While-else

2007-05-02 Thread Richard Lynch
On Sat, April 28, 2007 1:03 pm, Pelle Ravn Rosfeldt wrote: Is it possible to make a while with a else-statement in PHP6? I know that it's not the first time this subject is up, but my research shows that a lot of people miss it. Including me. Here's an example of what I mean:

Re: [PHP-DEV] Killing an ISAPI thread.

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 10:21 am, Richard Quadling wrote: Running PHP via ISAPI on Sambar Server. I have a script which is allowed to take a long time. The user has an Abort option and via clever use of sessions, the script can be terminated. [This answer probably belongs on php-general, but

Re: [PHP-DEV] Performance problem in Windows between 5.1 5.2

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 1:43 pm, Mauro N. Infantino wrote: definitions are taking more time in PHP5.2.x. The problem I'm facing is that I'm trying to benchmark this, but I'm not being able because I can not find the way to iterate this case enough times to get a significant number. eval()'d

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Richard Lynch
On Tue, April 24, 2007 11:16 am, Rasmus Lerdorf wrote: Chris Malton wrote: // secure variables from outside $modxtags = array('@script[^]*?.*?/script@si', '@#(\d+);@e', '@\[\[(.*?)[EMAIL PROTECTED]', '@\[!(.*?)[EMAIL PROTECTED]',

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Richard Lynch
On Tue, April 24, 2007 2:40 pm, Pawe³ Stradomski wrote: Derick Rethans wrote: On Tue, 24 Apr 2007, David Lindstrom wrote: Still, PHP should never segfault? Almost never... stack overflows are okay. regards, Derick I' ve run into PHP segfaulting (infinte loop of two constructors)

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Richard Lynch
On Tue, April 24, 2007 3:22 pm, Derick Rethans wrote: On Tue, 24 Apr 2007, Pawe? Stradomski wrote: Derick Rethans wrote: On Tue, 24 Apr 2007, David Lindstrom wrote: Still, PHP should never segfault? Almost never... stack overflows are okay. I' ve run into PHP segfaulting (infinte

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

2007-04-24 Thread Richard Lynch
On Tue, April 24, 2007 4:02 pm, Ci wrote: Tijnema ! napisa³(a): I believe that the source string needs to be 0 terminated (\0). Don't ask me how to fix it ;) Thanks all of You. I solve all problems. Hmmm, maybe there are some things to make better, but the main idea is solved. BTW.

Re: [PHP-DEV] PHP6 todo list (E_STRICT in E_ALL)

2007-04-17 Thread Richard Lynch
On Tue, April 17, 2007 8:15 am, Hannes Magnusson wrote: On 4/17/07, Christian Schneider [EMAIL PROTECTED] wrote: Hannes Magnusson wrote: 7. add E_STRICT to E_ALL DONE (dmitry) My dictionary says that all means *all*, not all except this and this and sometimes not that. E_ALL should

Re: [PHP-DEV] Trapping memory exhausted error

2007-04-17 Thread Richard Lynch
On Tue, April 17, 2007 3:18 am, David Sklar wrote: On 4/17/07, Peter Hodge [EMAIL PROTECTED] wrote: Hello, A soft memory limit could be very useful; it doesn't necessarily need to throw an error, but it would provide an opportunity to free some memory and prevent the script from crashing.

Re: [PHP-DEV] Trapping memory exhausted error

2007-04-17 Thread Richard Lynch
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 hard limit, configurable in php.ini... This might play better with anything relying

Re: [PHP-DEV] Trapping memory exhausted error

2007-04-16 Thread Richard Lynch
You might also come at it from the other direction and detect/notify at some number smaller than the current hard limit, configurable in php.ini... This might play better with anything relying on the current behaviour. On Mon, April 16, 2007 5:19 am, David Sklar wrote: I am interested in being

Re: [PHP-DEV] dropping asp_tags in HEAD

2007-04-16 Thread Richard Lynch
On Sat, April 14, 2007 4:49 am, Bart de Boer wrote: And let me stress that this is something we're *forcing* people to do when they're on a short tags enabled server... It's not something they're allowed to do at free will... PHP's convention is currently responsible for people creating

Re: [PHP-DEV] dropping asp_tags in HEAD

2007-04-16 Thread Richard Lynch
On Sat, April 14, 2007 11:07 am, Marcus Boerger wrote: Hello Guilherme, ?= is also not confirm toxml spec. What we could do is ?echo. I just don't understand why you think PHP source should conform to XML spec... I might use PHP to produce compliant XML. But my PHP source code itself is

Re: [PHP-DEV] dropping asp_tags in HEAD

2007-04-16 Thread Richard Lynch
PHP source as an XML document... [shudder] -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] Re: php feature

2007-04-13 Thread Richard Lynch
On Fri, April 13, 2007 12:08 pm, Andrew Hutchings wrote: Especially because a lot people use shared hosting these days, and that means that they all run on the same apache. and so they would share the same application variables. So if person a b both install the same script on a different

Re: [PHP-DEV] dropping asp_tags in HEAD

2007-04-13 Thread Richard Lynch
On Thu, April 12, 2007 6:00 pm, Robert Deaton wrote: I understand the need to remove short tags. Here's the reason: ?xml. That's it? I mean, we've co-existed with ?xml just fine for some time now, allowing users to choose short_tags or XML, but not both, by setting php.ini up the way they

Re: [PHP-DEV] dropping asp_tags in HEAD

2007-04-13 Thread Richard Lynch
On Fri, April 13, 2007 9:16 am, Tijnema ! wrote: I don't see why you are all against dropping the ASP tags. I see people using ASP PHP in one script, what would that do? If ASP runs first then there isn't a problem, but if PHP runs first, it would execute the ASP code. There are actually

Re: [PHP-DEV] dropping asp_tags in HEAD

2007-04-12 Thread Richard Lynch
On Thu, April 12, 2007 3:12 pm, Antony Dovgal wrote: Surely we must to keep a setting just because two people in the world use it. I'm afraid their apps won't run on PHP6 anyway because of numerous major changes (already done and still planned), so one more cleanup won't hurt anyone. What

Re: [PHP-DEV] php feature

2007-04-11 Thread Richard Lynch
On Wed, April 11, 2007 6:29 pm, Oliver Block wrote: did you ever discuss a feature like 'application variables'? What I mean is that a bunch of scripts builds a logic application which is e.g. able to share variables. While session variables can be used to store values between script files for

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

2007-03-22 Thread Richard Lynch
On Thu, March 22, 2007 8:09 am, Christian Schneider wrote: Plain old google brought up: http://groovy.codehaus.org/Martin+Fowler's+closure+examples+in+Groovy among other hits (Groovy syntax should be easy enough to follow). He said real-life examples (-:C I said real-life NEED, as in, I

Re: [PHP-DEV] GSoC

2007-03-22 Thread Richard Lynch
On Wed, March 21, 2007 2:47 am, Tijnema ! wrote: On 3/21/07, Richard Lynch [EMAIL PROTECTED] wrote: I splice the ID3 tags onto the front of an MP3 stream in PHP on this site: http://uncommonground.com/ The id3 library in PHP is quite good at this, but needs a maintainer... Well

Re: [PHP-DEV] GSoC

2007-03-22 Thread Richard Lynch
On Wed, March 21, 2007 3:57 am, Antony Dovgal wrote: I don't think anybody sane is doing audio encoding and video resizing in PHP. PHP is about interface, clients are not going to wait an hour or two for a page to load. E. Actually, I have many PHP scripts with fire up exec processes to

Re: [PHP-DEV] GSoC

2007-03-22 Thread Richard Lynch
On Wed, March 21, 2007 3:57 am, Antony Dovgal wrote: I don't think anybody sane is doing audio encoding and video resizing Whoops! Sorry. I missed the part about being sane. That makes my previous post invalid. :-) -- Some people have a gift link here. Know what I want? I want you to buy a

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

2007-03-20 Thread Richard Lynch
On Mon, March 19, 2007 11:59 pm, Andi Gutmans wrote: There are various ways to go about implementing this. While reading your email I've had another couple of ideas incl. some funky parameter passing games. All these ideas are legit and have pros/cons but what's most important is actually

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

2007-03-19 Thread Richard Lynch
On Sun, March 18, 2007 6:41 pm, Wez Furlong wrote: We've been daydreaming about the ability to do something like this in PHP: $data = array(zoo, orange, car, lemon, apple); usort($data, function($a, $b) { return strcmp($a, $b); }); var_dump($data); # data is sorted alphabetically I'd LOVE

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

2007-03-19 Thread Richard Lynch
On Sun, March 18, 2007 7:30 pm, Wez Furlong wrote: I found another flaw; when used in a loop it keeps trying to declare the same function over and over. I think this is because the ZEND_DECLARE_FUNCTION opcode is emitted as part of the arg list building op sequence. I'm poking to find an

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

2007-03-19 Thread Richard Lynch
On Mon, March 19, 2007 3:35 pm, Robert Cummings wrote: On Mon, 2007-03-19 at 15:20 -0500, Richard Lynch wrote: On Sun, March 18, 2007 6:41 pm, Wez Furlong wrote: We've been daydreaming about the ability to do something like this in PHP: $data = array(zoo, orange, car, lemon, apple

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

2007-03-19 Thread Richard Lynch
I think the anonymous name having metadata about the __FILE__ __LINE__ __COLUMN__ would be pretty nifty for error messages and debuggers... I'm a bit tired of seeing Error: blah blah in Unknown on line: 0 personally. :-) This presumes somebody would take the effort to de-construct that metadata

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

2007-03-19 Thread Richard Lynch
On Mon, March 19, 2007 2:33 pm, Wez Furlong wrote: I've been thinking about this on and off today too. Something along the lines of the following is more in the PHP spirit: $ver = phpversion(); $fancyVer = function () { lexical $ver; return PHP $ver; }; Where lexical is a keyword that means

Re: [PHP-DEV] google SoC - dbobj

2007-03-19 Thread Richard Lynch
On Mon, March 19, 2007 1:59 pm, Bankó Ádám wrote: 2. In C I can implement all the structure I want (as long it's sane) without much worrying about what performance cost it will have. I wouldn't do the same in PHP. I'm talking about separate classes for every database column type and abstract

Re: [PHP-DEV] segmentation fault

2007-03-19 Thread Richard Lynch
On 3/16/07, Oliver Block [EMAIL PROTECTED] wrote: Hello, I receive a segmentation fault on a RETVAL_STRING(some_module_global, 1); The problem disappears if I change it to RETVAL_STRING(some_module_global, 0); Is anybody interested in the data? Regards, Oliver As I understand

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

2007-03-19 Thread Richard Lynch
On Mon, March 19, 2007 4:55 pm, Stanislav Malyshev wrote: You have to have a pretty esoteric function to need that kind of scope control, no? Depends on your background. Some people consider LISP intuitive language :) And if you work with Javascript, you probably would be doing it daily -

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

2007-03-19 Thread Richard Lynch
On Mon, March 19, 2007 5:33 pm, Stanislav Malyshev wrote: Can't you just take the body of create_function with the syntax of the patch, and marry those two? Well, that'd be a bit hard since the whole difference is that create_function is runtime (thus having access to run-time values) while

<    1   2   3   4   5   >