[PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Sara Golemon
This feature request (which seems worth doing) has sat on the back burner awhile. Probably because, in the words of one commenter, those who can produce the patch are just using regex instead. I've got an implementation put together, the patch for which can be viewed at:

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Sara Golemon
I've got an implementation put together, the patch for which can be viewed at: http://169.229.139.97/test/str_ireplace.diff.txt After some comments on IRC, here's an alternate version to the above patch. This second approach avoids creating php_memnstri by simply searching through a copy of

Re: [PHP-DEV] Feature Request #5919 case-insensitive version ofstr_replace()

2003-01-29 Thread Derick Rethans
On Wed, 29 Jan 2003, Sara Golemon wrote: I've got an implementation put together, the patch for which can be viewed at: http://169.229.139.97/test/str_ireplace.diff.txt After some comments on IRC, here's an alternate version to the above patch. This second approach avoids creating

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Shane Caraveo
Derick Rethans wrote: On Wed, 29 Jan 2003, Sara Golemon wrote: I've got an implementation put together, the patch for which can be viewed at: http://169.229.139.97/test/str_ireplace.diff.txt After some comments on IRC, here's an alternate version to the above patch. This second approach

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Ilia A.
I may be wrong since I haven't profiled this, but my understanding is that str_replace is much faster than doing either of the regex replacements. For that reason alone, there is a use for it. Normally it would be quite faster, however once case sensitivity is added to the mix I believe the

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Sara Golemon
I may be wrong since I haven't profiled this, but my understanding is that str_replace is much faster than doing either of the regex replacements. For that reason alone, there is a use for it. Normally it would be quite faster, however once case sensitivity is added to the mix I believe

Re: [PHP-DEV] Feature Request #5919 case-insensitive version ofstr_replace()

2003-01-29 Thread Sascha Schumann
I suggest to check out http://citeseer.nj.nec.com/navarro01fast.html The presented BNDM algorithm is one of the fastest string searching algorithm while being easy to implement. Its main loop is faster than the naive str_replace implementation(*). Check out a C test

Re: [PHP-DEV] Feature Request #5919 case-insensitive version ofstr_replace()

2003-01-29 Thread Sascha Schumann
On a related topic, the 'boyer' option of str_replace isn't even documented. That alternate method of performing str_replaces look like it's a bit more efficient (no benchmarkes atm) but I'm wondering if there's a specific reasons why it wasn't documented yet. The BM algorithm is

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Shane Caraveo
Ilia A. wrote: I may be wrong since I haven't profiled this, but my understanding is that str_replace is much faster than doing either of the regex replacements. For that reason alone, there is a use for it. Normally it would be quite faster, however once case sensitivity is added to the mix

[Fwd: Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()]

2003-01-29 Thread Sara Golemon
whoops, missent just to sascha instead of list... On a related topic, the 'boyer' option of str_replace isn't even documented. That alternate method of performing str_replaces look like it's a bit more efficient (no benchmarkes atm) but I'm wondering if there's a specific reasons why it

Re: [PHP-DEV] Feature Request #5919 case-insensitive version ofstr_replace()

2003-01-29 Thread Dan Kalowsky
I'd tip my hat towards implementing it. Pollita has a good point on consistency and for those who don't know regex's. On Wed, 29 Jan 2003, Sara Golemon wrote: I may be wrong since I haven't profiled this, but my understanding is that str_replace is much faster than doing either of the regex

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Stephen Thorne
On Thu, 30 Jan 2003 06:48, Ilia A. wrote: I may be wrong since I haven't profiled this, but my understanding is that str_replace is much faster than doing either of the regex replacements. For that reason alone, there is a use for it. Normally it would be quite faster, however once case

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Stephen Thorne
Gah. I botched that, I didn't reset the timer. Total Time: 00:00:03.08 //str_replace Total Time: 00:00:04.32 //preg_replace Total Time: 00:00:03.05 //str_replace Total Time: 00:00:03.67 //preg_replace Total Time: 00:00:03.27 //str_replace Total Time: 00:00:04.40 //preg_replace Closer than I

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Ilia A.
On January 29, 2003 04:35 pm, Shane Caraveo wrote: What's the benchmark code? How is the benchmark difference on large text (ie. 100K of text) vs. small text (1K or smaller)? Attached is the benchmark script that I've used. I've intentionally used 'small' strings, since that is what I imagine

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Stephen Thorne
On Thu, 30 Jan 2003 09:09, Ilia A. wrote: On January 29, 2003 04:35 pm, Shane Caraveo wrote: What's the benchmark code? How is the benchmark difference on large text (ie. 100K of text) vs. small text (1K or smaller)? Attached is the benchmark script that I've used. I've intentionally used

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Sara Golemon
better and better... Ilia offered up an optimized version of php_str_to_str which skips string resizing and handles do-no-work scenarios up front. I've made necessary changes to make this case_optional and made a new patch: http://169.229.139.97/test/str_ireplace.diff-4.txt as well as posting

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Edin Kadribasic
I don't even see the speed difference as an issue as much as (A) simplicity for the user who hasn't figured out regex yet, (B) consistency (we have 'i' versions of most other string functions, why not this one?) +1 for the reasons stated above. Edin -- PHP Development Mailing List

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Marcus Börger
At 00:47 30.01.2003, Edin Kadribasic wrote: I don't even see the speed difference as an issue as much as (A) simplicity for the user who hasn't figured out regex yet, (B) consistency (we have 'i' versions of most other string functions, why not this one?) +1 for the reasons stated above. +1

Re: [PHP-DEV] Feature Request #5919 case-insensitive version of str_replace()

2003-01-29 Thread Sara Golemon
better and better... One last optimization to save memcpys when needle_len == str_len (thanks again ilia): Actual Patch: http://169.229.139.97/test/str_ireplace.diff-5.txt Resultant string.c for easy reading: http://169.229.139.97/test/string-5.c I've heard enough Ayes over Nays (here, in

Re: [PHP-DEV] Feature Request #5919 case-insensitive version ofstr_replace()

2003-01-29 Thread Sascha Schumann
One last optimization to save memcpys when needle_len == str_len (thanks again ilia): Actual Patch: http://169.229.139.97/test/str_ireplace.diff-5.txt Resultant string.c for easy reading: http://169.229.139.97/test/string-5.c I've heard enough Ayes over Nays (here, in bugs.php.net, and

Re: [PHP-DEV] Feature Request: Auto Include a Function

2003-01-14 Thread Andrey Hristov
T. Allen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 10:21 PM Subject: [PHP-DEV] Feature Request: Auto Include a Function Hi, Please accept my apologies in advance if this is not the correct place for this request. This may exist, but I haven't been able to find

[PHP-DEV] Feature Request: Auto Include a Function

2003-01-13 Thread Brian T. Allen
Hi, Please accept my apologies in advance if this is not the correct place for this request. This may exist, but I haven't been able to find it, and I think it would be REALLY helpful and convenient. The idea is this: When you write a script and call a function: ?php $whatever =

Re: [PHP-DEV] Feature Request: Auto Include a Function

2003-01-13 Thread Andrew Brampton
, like C does searching through .h files, but since its not I don't think its a good idea. Andrew - Original Message - From: Brian T. Allen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 8:21 PM Subject: [PHP-DEV] Feature Request: Auto Include a Function Hi

RE: [PHP-DEV] Feature Request: Auto Include a Function

2003-01-13 Thread Brian T. Allen
From: Andrew Brampton [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 2:16 PM Subject: Re: [PHP-DEV] Feature Request: Auto Include a Function I'm not a PHP Developer but I see a few problems with this. I'm not a PHP Developer either, but I use it 12 hours a day in my work

RE: [PHP-DEV] Feature Request: Auto Include a Function

2003-01-13 Thread Sterling Hughes
, 2003 2:16 PM Subject: Re: [PHP-DEV] Feature Request: Auto Include a Function I'm not a PHP Developer but I see a few problems with this. I'm not a PHP Developer either, but I use it 12 hours a day in my work. Since a PHP script is re-evaluated/compiled on each execution it would

RE: [PHP-DEV] Feature Request: Auto Include a Function

2003-01-13 Thread Derick Rethans
On Mon, 13 Jan 2003, Brian T. Allen wrote: If a hash file were used it would only have to search for the function once, and even then only in the functions directory (like the include directory, but specifically for functions). After that the order would be: 1) Execute the function 2) If

Re: [PHP-DEV] Feature request -- feedback welcomed.

2002-10-06 Thread Andi Gutmans
You already have public which you can use instead of var. I think method would look very nice but I don't think it's worth creating another reserved word. Andi At 01:34 PM 9/28/2002 -0600, Lamont R. Peterson wrote: All: I can't hardly wait for PHP 4.3 (Zend 2.0) to hit the streets. I can't

Re: [PHP-DEV] Feature request -- feedback welcomed.

2002-09-30 Thread Shamim Islam
On the surface, it sounds like a good idea but underneath the semantic change is fraught with logical inconsistencies. A method is specifically a function declared within a class context. A static method is a static function declared within a class context. A method by itself has no meaning and

RE: [PHP-DEV] Feature request -- feedback welcomed.

2002-09-30 Thread Lukas Smith
- From: Shamim Islam [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 8:48 PM To: Lamont R. Peterson; [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Feature request -- feedback welcomed. On the surface, it sounds like a good idea but underneath the semantic change is fraught

[PHP-DEV] Feature request -- feedback welcomed.

2002-09-28 Thread Lamont R. Peterson
All: I can't hardly wait for PHP 4.3 (Zend 2.0) to hit the streets. I can't express how anxiously I've been waiting for the class model to be reworked. Great job! I would, however, like to see a couple of simple additions to the planned release (if these are already coming, then I just

Re: [PHP-DEV] Feature request -- feedback welcomed.

2002-09-28 Thread derick
On Sat, 28 Sep 2002, Lamont R. Peterson wrote: All: I can't hardly wait for PHP 4.3 (Zend 2.0) to hit the streets. I can't express how anxiously I've been waiting for the class model to be reworked. Great job! Uhm... 4.3.0 will not ship with Zend 2.0, that will b ethe honour of PHP

Re: [PHP-DEV] Feature request -- feedback welcomed.

2002-09-28 Thread Sebastian Bergmann
Lamont R. Peterson wrote: Derek All: His name is Derick, like the TV inspector. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List

Re: [PHP-DEV] Feature request -- feedback welcomed.

2002-09-28 Thread Pierre-Alain Joye
On Sat, 28 Sep 2002 22:23:08 +0200 Sebastian Bergmann [EMAIL PROTECTED] wrote: His name is Derick, like the TV inspector. yup, but he s more funny ;-) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Feature request -- feedback welcomed.

2002-09-28 Thread Sebastian Bergmann
Sebastian Bergmann wrote: His name is Derick, like the TV inspector. +almost (my bad, http://us.imdb.com/Title?0070981) -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift:

Re: [PHP-DEV] Feature request -- feedback welcomed.

2002-09-28 Thread Sascha Cunz
Uhm... 4.3.0 will not ship with Zend 2.0, that will b ethe honour of PHP 5.0.0. But one can compile Zend 2.0 into PHP 4 - i think Zeev posted an HowTo some weeks ago. Regards Sascha -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Re: [PHP-DEV] FEATURE REQUEST: symlinks under NT

2002-07-09 Thread Timo Weingärtner
, if the filesystem, the link is created in, is really NTFS. Timo -Original Message- From: Zeev Suraski [mailto:[EMAIL PROTECTED]] Sent: Montag, 8. Juli 2002 08:05 To: Timo Weingärtner Cc: [EMAIL PROTECTED] Subject: Re: Re: [PHP-DEV] FEATURE REQUEST: symlinks under NT Again, the fact they're

Re: [PHP-DEV] FEATURE REQUEST: symlinks under NT

2002-07-09 Thread Shane Caraveo
Shell Shortcuts could be used to implement symlink like behaviour, and it would be compatible on more systems, but it would be a bigger pain to implement in PHP. As far as the directory junctions, this is how MS describes them: # NTFS Directory Junctions. These are NTFS directories that can

Re: Re: [PHP-DEV] FEATURE REQUEST: symlinks under NT

2002-07-08 Thread Zeev Suraski
(Options FollowSymlinks). It would be nice to have the code included in PHP. Thanks in advance, Timo Weingärtner -Original Message- From: Zeev Suraski [mailto:[EMAIL PROTECTED]] Sent: Samstag, 6. Juli 2002 16:55 To: Timo Weingärtner Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] FEATURE REQUEST

Re: Re: [PHP-DEV] FEATURE REQUEST: symlinks under NT

2002-07-07 Thread Timo Weingärtner
- From: Zeev Suraski [mailto:[EMAIL PROTECTED]] Sent: Samstag, 6. Juli 2002 16:55 To: Timo Weingärtner Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] FEATURE REQUEST: symlinks under NT Are you sure they're equivalent to symlinks? They only work with directories as far as I know, which renders them

[PHP-DEV] FEATURE REQUEST: symlinks under NT

2002-07-06 Thread Timo Weingärtner
NTFS supports directory junctions which are equivalent to unix symlinks. I found a tool that can create, read and delete such junctions. Is there are posiibility to include that code into php so that it supports it in realpath(), symlink(), linkinfo(), readlink(), filetype(), is_link(), stat(),

Re: [PHP-DEV] feature request

2002-07-05 Thread Stig S. Bakken
Is there a portable way to implement this on all/most OS'es? Please submit this feature request on bugs.php.net. - Stig On Wed, 2002-07-03 at 23:06, veins wrote: hi, I have a feature request for the exec() family. I was thinking of adding a fourth optionnal argument to be passed as the

[PHP-DEV] feature request

2002-07-03 Thread veins
hi, I have a feature request for the exec() family. I was thinking of adding a fourth optionnal argument to be passed as the argv[0] so that the name that appears in a 'ps' can be changed. The reason is simple, as many people do, I usually have php call a shell script or a perl script on the

[PHP-DEV] Feature Request

2002-05-22 Thread Roberto Berto
Can you take a look on bug #12669 and #14712? Its about auto-globals user definied variables - ie: user can set some variables to be global in all scopes, allways global. Quick link: http://bugs.php.net/bug.php?id=12669 Atenciosamente,

Re: [PHP-DEV] Feature Request: Session Module

2002-05-05 Thread Markus Fischer
Hi, http://bugs.php.net/report.php - Markus On Sat, May 04, 2002 at 06:20:28PM -0600, Steve Meyers wrote : I just tried ext/shmop, and without even using it, the fact that it is compiled in to php causes it to segfault on every request. Here's my ./configure line

Re: [PHP-DEV] Feature Request: Session Module

2002-05-05 Thread Sebastian Bergmann
Steve Meyers wrote: Do you need a backtrace of it? If so, how do I do that? http://www.php.net/manual/en/faq.installation.php#faq.installation.nodata -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift:

Re: [PHP-DEV] Feature Request: Session Module

2002-05-05 Thread Steve Meyers
I figured it out, it was a problem in APC that was causing it. Deleting the compiled PHP files fixed the problem. I have no idea why that fixed it, but it did. Markus Fischer wrote: Hi, http://bugs.php.net/report.php - Markus On Sat, May 04, 2002 at 06:20:28PM -0600,

[PHP-DEV] Feature Request: Session Module

2002-05-04 Thread Michael Virnstein
Hi! What really would be useful for the session module, is a grouping mechanism for sessions, so i can set up variable scopes and share variables among different session: every session has private variables. that's the way it works now. i can register a variable to a session and there's no way

Re: [PHP-DEV] Feature Request: Session Module

2002-05-04 Thread Markus Fischer
Hi, I think what you want can (and should) be done with shared memory, ext/shmop . This way you exchange values as you want (it's not tied to sessions in anyway, btw). - Markus On Sat, May 04, 2002 at 11:08:52AM +0200, Michael Virnstein wrote : Hi! What really would be

Re: [PHP-DEV] Feature Request: Session Module

2002-05-04 Thread Yasuo Ohgaki
Markus Fischer wrote: Hi, I think what you want can (and should) be done with shared memory, ext/shmop . This way you exchange values as you want (it's not tied to sessions in anyway, btw). Markus' method works nicely for single server It is recommended way. Try

Re: [PHP-DEV] Feature Request: Session Module

2002-05-04 Thread Steve Meyers
I just tried ext/shmop, and without even using it, the fact that it is compiled in to php causes it to segfault on every request. Here's my ./configure line ./configure --with-mysql=/usr --with-pgsql --enable-ftp --with-ldap --with-gmp --disable-pear --enable-shmop --enable-apc

Re: [PHP-DEV] feature request for __LINE__, __FILE__ and trigger_error

2002-04-26 Thread Robert Cummings
I wrote this extension a while back, but I never released it since I didn't follow coding style and it was my first forage into extension coding for PHP. It should be what your looking for though for the most part... the function of usefulness is: get_function_call_stack() which will return an

Re: [PHP-DEV] feature request

2002-04-25 Thread Markus Fischer
Hi, people fail to understand the reason why to bloat PHP with just another function which is really just a call to another function (e.g. preg_*() in PHP. As for parsing an ini file, this is certainly not true. Anyway. There were some discussions lately to implement

Re[2]: [PHP-DEV] feature request

2002-04-25 Thread Daniel Lorch
Hi, Anyway. There were some discussions lately to implement something like word_count() and similar friends. Though I don't remember what has happened, you might want to look it up in the archive an join the discussion (It was just a week ago or so I think). There were

Re: [PHP-DEV] feature request

2002-04-25 Thread Roland Tapken
Hi! Am Wed, 24 Apr 2002 22:15:19 +0200 schrieb Daniel Lorch [EMAIL PROTECTED]: function line_count($string) { return count(preg_split(/\r?\n/, $string)); } Why not simply use a substr_count($string, \n)? It works fine for me... cu, Roland Tapken -- Please reply to: [EMAIL PROTECTED]

Re: [PHP-DEV] feature request for __LINE__, __FILE__ andtrigger_error

2002-04-25 Thread Michael Virnstein
Hi, you may be right, but this was only a suggestion. If you know a better way doing this, no problem. I thought of something like __FILE__ and __LINE__, because these constants are easy to use. If we have a function for this, not a constant, it's also ok for me. Michael Stig S. Bakken [EMAIL

Re: [PHP-DEV] feature request for __LINE__, __FILE__ andtrigger_error

2002-04-25 Thread Michael Virnstein
A short question on this: how about __LINE__? doesn't this also require runtime context or am i wrong? if so, why it is a constant then, not a function? Michael Stig S. Bakken [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, __FILE__ is compiled into

Re: [PHP-DEV] feature request for __LINE__, __FILE__ andtrigger_error

2002-04-25 Thread Alan Knowles
__LINE__ , __FILE__ (and now __FUNCTION__ __CLASS__) are converted at compile time into a string - have a look at zend/zend_language_scanner.l for more details. regards alan Michael Virnstein wrote: A short question on this: how about __LINE__? doesn't this also require runtime context or

[PHP-DEV] feature request

2002-04-24 Thread Nikolai Devereaux
It would be great if there was a function in the filesystem family similar to the unix command wc. It'd be nice to not have to write simple wrappers around system calls or creating arrays to get the number of words or lines in a file. For example, to get the number of lines in a file, I have to

[PHP-DEV] feature request for __LINE__, __FILE__ and trigger_error

2002-04-24 Thread Michael Virnstein
It would be really useful for writing functions/Classes, if i were able to determine the __FILE__ and __LINE__ of the script, that is calling my function, without the need to send __FILE__ and __LINE__ as parameter to my function. E.g. __CFILE__ for calling script and __CLINE__ for line in the

Re: [PHP-DEV] feature request for __LINE__, __FILE__ and trigger_error

2002-04-24 Thread derick
Hello Michael, I'm working (80% done) on an extension for this. It should be finished in a few days. It doesn't feature the __C*__ things yet, but I can add a function for that too. I'll keep you posted, Derick On Wed, 24 Apr 2002, Michael Virnstein wrote: It would be really useful for

Re: [PHP-DEV] feature request for __LINE__, __FILE__ and trigger_error

2002-04-24 Thread Michael Virnstein
wow...your fast! :) thanx..that would be really great! Michael [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello Michael, I'm working (80% done) on an extension for this. It should be finished in a few days. It doesn't feature the __C*__ things yet,

Re: [PHP-DEV] feature request for __LINE__, __FILE__ and trigger_error

2002-04-24 Thread Michael Virnstein
an additional thought: if __CFILE__ and __CLINE__ are used outside of a function/method, both should be NULL. and trigger_error should only overwrite its __FILE__ and __LINE__ settings, if they are NOT NULL. And if one of the __FILE__ , __LINE parameters of trigger_error is NOT NULL, both have to

Re: [PHP-DEV] feature request

2002-04-24 Thread Daniel Lorch
Hi, It would be great if there was a function in the filesystem family similar to the unix command wc. It'd be nice to not have to write simple wrappers around system calls or creating arrays to get the number of words or lines in a file. function line_count($string) { return

Re: [PHP-DEV] feature request

2002-04-24 Thread Stig S. Bakken
$wc = strlen(preg_replace('/\W*\w*/', 'x', file_get_contents($file)); Look, no arrays! :-) - Stig On Wed, 2002-04-24 at 20:20, Nikolai Devereaux wrote: It would be great if there was a function in the filesystem family similar to the unix command wc. It'd be nice to not have to write

Re[2]: [PHP-DEV] feature request

2002-04-24 Thread Daniel Lorch
Hi, $wc = strlen(preg_replace('/\W*\w*/', 'x', file_get_contents($file)); Look, no arrays! :-) - Stig is this faster than the array-based solution? -daniel -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] feature request

2002-04-24 Thread Nikolai Devereaux
function line_count($string) { return count(preg_split(/\r?\n/, $string)); } function word_count($string) { return count(preg_split(/\s+/, $string)); } There will be a PEAR-string class, which includes functions similar to this. I assigned it to me some days ago and I will be

Re: [PHP-DEV] feature request for __LINE__, __FILE__ and trigger_error

2002-04-24 Thread php4
Addressed to: [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from [EMAIL PROTECTED] Wed, 24 Apr 2002 21:06:41 +0200 (CEST) Hello Michael, I'm working (80% done) on an extension for this. It should be finished in a few days. It doesn't feature the __C*__ things

RE: [PHP-DEV] feature request

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
Especially when you have such fancy buit-ins like parse_inifile and pathinfo, and other built in unix commands like touch, chown, and chmod. Here I'm asking myself: what function would be easier for user to create: counting spaces in a string or parsing the .ini file or touch and chown?

Re: [PHP-DEV] feature request for __LINE__, __FILE__ andtrigger_error

2002-04-24 Thread Stig S. Bakken
Hi, __FILE__ is compiled into a constant string by Zend. You can think of it as equivalent of putting a string with the filename there instead. It is constant. __CFILE__ would require runtime context (which function called us), so it makes no sense as a constant. Derick's xdebug extension

RE: [PHP-DEV] feature request

2002-04-24 Thread Nikolai Devereaux
Here I'm asking myself: what function would be easier for user to create: counting spaces in a string or parsing the .ini file or touch and chown? Parsing an INI file isn't difficult. It requires the same amount of knowledge to do as counting spaces or lines, albeit with a bunch more

Re: [PHP-DEV] Feature request: anonymous usage of returned values

2002-04-20 Thread Andi Gutmans
This isn't planned for Engine 2 but you could use: list($year) = localtime($time); Andi At 03:17 20/04/2002 +0200, Markus Fischer wrote: I've brought this up on the Zend Engine2 list a while ago. The result was that it is not planned to support dereferencing of arrays from

[PHP-DEV] Feature request: anonymous usage of returned values

2002-04-19 Thread Derek Moore
I've been playin' around with Horde and IMP lately... And I've done a lot of PHP and Perl work in the past... One of the things I really like about PHP is how it has most of the really cool features of Perl that I enjoy, but lacks some of the things that annoy me about Perl. I was making

Re: [PHP-DEV] Feature request: anonymous usage of returned values

2002-04-19 Thread Markus Fischer
I've brought this up on the Zend Engine2 list a while ago. The result was that it is not planned to support dereferencing of arrays from e.g. return value on the fly. - Markus On Fri, Apr 19, 2002 at 07:26:26PM -0500, Derek Moore wrote : I've been playin' around with Horde and

[PHP-DEV] Feature Request for pcre_match*()

2002-03-04 Thread 'Ricky' S Dhatt
Hi - I'd like to ask that the pcre_match*() functions be modified such that they can also return position info on where the match(s) occured, akin to Perl's pos() I think this would be a very useful addition, plus it requires minimal code changes since the actual function, php_pcre_match()

Re: [PHP-DEV] Feature Request for pcre_match*()

2002-03-04 Thread derick
Hello, can you please post a unified diff (diff -u)? That's much more readable regards, Derick On Mon, 4 Mar 2002, 'Ricky' S Dhatt wrote: Hi - I'd like to ask that the pcre_match*() functions be modified such that they can also return position info on where the match(s) occured, akin to

Re: [PHP-DEV] Feature Request: add HTML 4.01 support into DOMXML extension?

2001-12-06 Thread Teodor Cimpoesu
Hi Jaroslaw! On Wed, 05 Dec 2001, Jaroslaw Kolakowski wrote: But, even if we don't agree with his opinion on templates, what about the features that libxml provides which are currently unused by PHP, including HTML 4.01-support (I don't know exactly what libxml can do)? Are there any

Re: [PHP-DEV] Feature Request: add HTML 4.01 support into DOMXML extension?

2001-12-06 Thread Jaroslaw Kolakowski
Can you tell more on what that patch is about and it's availability? Look at http://rainbow.mimuw.edu.pl/~jkolakow/domxml/ Regards, Jaroslaw Kolakowski -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP-DEV] Feature Request: add HTML 4.01 support into DOMXML extension?

2001-12-05 Thread Lauri Liinat
hi, has anybody ever thought about supporting HTML 4.01 in the DOMXML extension as Gnome libxml supports it anyway? should be a relatively simple addon, yet extremely useful for processing layout templates and finally killing the long thread of discussion on the brain-dead text-substituting

Re: [PHP-DEV] Feature Request: add HTML 4.01 support into DOMXML extension?

2001-12-05 Thread Andrei Zmievski
On Wed, 05 Dec 2001, Lauri Liinat wrote: hi, has anybody ever thought about supporting HTML 4.01 in the DOMXML extension as Gnome libxml supports it anyway? should be a relatively simple addon, yet extremely useful for processing layout templates and finally killing the long thread of

Re: [PHP-DEV] Feature Request: add HTML 4.01 support into DOMXML extension?

2001-12-05 Thread Alexander Wagner
Andrei Zmievski wrote: there's no point in using a home-brewn scripting language to do those tasks, is there? all the constructs are already part of the php language... Are you aware of the concept of domain-specific languages? There is a point. Are you done? I'm definately with you

Re: [PHP-DEV] Feature Request: add HTML 4.01 support into DOMXML extension?

2001-12-05 Thread Andrei Zmievski
On Wed, 05 Dec 2001, Alexander Wagner wrote: But, even if we don't agree with his opinion on templates, what about the features that libxml provides which are currently unused by PHP, including HTML 4.01-support (I don't know exactly what libxml can do)? Are there any plans to make them

Re: [PHP-DEV] Feature Request: add HTML 4.01 support into DOMXML extension?

2001-12-05 Thread Jaroslaw Kolakowski
But, even if we don't agree with his opinion on templates, what about the features that libxml provides which are currently unused by PHP, including HTML 4.01-support (I don't know exactly what libxml can do)? Are there any plans to make them accessible from PHP? It definately would be

[PHP-DEV] Feature request: Line numbering for .phps display

2001-07-26 Thread Ray A. Akey
I hope this is the right place for this. If not, please refer me to the proper place. :) Are there any plans to have PHP support the option of showing line numbers for PHP Source (.phps) display? This would be a great feature to add to your list if it is not already planned. -- Ray A. Akey /

Re: [PHP-DEV] feature request

2001-03-20 Thread Phil Driscoll
That is the only thing that I see of any real use as well. I was just humoring Andi and his idea that we would soon be requesting that feature of knowing which one failed the test. I was really voting no for the original feature - just returning true or false - unless it can be shown (and

RE: [PHP-DEV] feature request

2001-03-19 Thread Zeev Suraski
(X) Extend the isset() and empty() functions to encompass multiple variables as one inclusive logic test. ( ) Don't touch my beloved functionality vile creatures! -Chris From: Andi Gutmans [mailto:[EMAIL PROTECTED]] Subject: RE: [PHP-DEV] feature request It should be possible to do this.

Re: [PHP-DEV] feature request

2001-03-19 Thread Zeev Suraski
Phil is right. The only thing that may be both useful and practical would be isset() on multiple variables, returning either true or false. Zeev At 11:31 19/3/2001, Phil Driscoll wrote: $a = 1; $b = 2; $d = 4; $play_nice = isSet($a, $b, $c, $d); if (!$play_nice) { print "The

Fw: [PHP-DEV] feature request

2001-03-19 Thread Boian Bonev
ot;Gavin Sherry" [EMAIL PROTECTED]; "Cameron" [EMAIL PROTECTED] Sent: Monday, March 19, 2001 2:23 PM Subject: Re: [PHP-DEV] feature request hi, better write you own checker in php... and implement and/or... here is a sample :-))) ? function isset_and() { $numargs=func_num

RE: [PHP-DEV] feature request

2001-03-19 Thread Chris Newbill
-04 aM To: Phil Driscoll Cc: Chris Newbill; Andi Gutmans; PHP DEV Subject: Re: [PHP-DEV] feature request Phil is right. The only thing that may be both useful and practical would be isset() on multiple variables, returning either true or false. Zeev At 11:31 19/3/2001, Phil Driscoll

RE: [PHP-DEV] feature request

2001-03-19 Thread Andi Gutmans
Suraski [mailto:[EMAIL PROTECTED]] Sent: Monday, 19 March, 2001 7-04 aM To: Phil Driscoll Cc: Chris Newbill; Andi Gutmans; PHP DEV Subject: Re: [PHP-DEV] feature request Phil is right. The only thing that may be both useful and practical would be isset() on multiple variables

RE: [PHP-DEV] feature request

2001-03-19 Thread Andi Gutmans
Newbill; Andi Gutmans; PHP DEV Subject: Re: [PHP-DEV] feature request Phil is right. The only thing that may be both useful and practical would be isset() on multiple variables, returning either true or false. Zeev At 11:31 19/3/2001, Phil Driscoll wrote: $a = 1; $b = 2

Re: [PHP-DEV] feature request

2001-03-19 Thread Phil Driscoll
My earlier post to the list doesn't seem to have arrived yet, so here it is again. You'll note from the posting that I'm not keen on the patch staying in. There are considerable efforts being made by several of us on the QA team trying to make the language more orthogonal, and this kind of ad hoc

Re: [PHP-DEV] feature request

2001-03-19 Thread Andi Gutmans
At 07:58 PM 3/19/2001 +, Phil Driscoll wrote: My earlier post to the list doesn't seem to have arrived yet, so here it is again. You'll note from the posting that I'm not keen on the patch staying in. There are considerable efforts being made by several of us on the QA team trying to make the

Re: [PHP-DEV] feature request

2001-03-19 Thread Jason Greene
t;Chris Newbill" [EMAIL PROTECTED]; "Zeev Suraski" [EMAIL PROTECTED]; "Andi Gutmans" [EMAIL PROTECTED] Cc: "PHP DEV" [EMAIL PROTECTED] Sent: Monday, March 19, 2001 1:58 PM Subject: Re: [PHP-DEV] feature request My earlier post to the list doesn't seem to have a

Re: [PHP-DEV] feature request

2001-03-19 Thread Andi Gutmans
TECTED]; "Andi Gutmans" [EMAIL PROTECTED] Cc: "PHP DEV" [EMAIL PROTECTED] Sent: Monday, March 19, 2001 1:58 PM Subject: Re: [PHP-DEV] feature request My earlier post to the list doesn't seem to have arrived yet, so here it is again. You'll note from

Re: [PHP-DEV] feature request

2001-03-19 Thread Jason Greene
raski" [EMAIL PROTECTED] Cc: "PHP DEV" [EMAIL PROTECTED] Sent: Monday, March 19, 2001 2:11 PM Subject: Re: [PHP-DEV] feature request Ugh, that's exactly what I didn't want to get into. If you want an array of results you're better of doing a few if() statements. It's faster and

Re: [PHP-DEV] feature request

2001-03-19 Thread Zeev Suraski
; [EMAIL PROTECTED] Cc: "PHP DEV" [EMAIL PROTECTED] Sent: Monday, March 19, 2001 1:58 PM Subject: Re: [PHP-DEV] feature request My earlier post to the list doesn't seem to have arrived yet, so here it is again. You'll note from the posting that I'm not keen on the patch stayi

Re: [PHP-DEV] feature request

2001-03-19 Thread Zeev Suraski
At 22:41 19/3/2001, Jason Greene wrote: I don't, but I could see that viewpoint where Phil is coming from when he talks about the fact that functions can end up with 2 different goals, and then when we want to enhance them we end up with multiple behaviors in a single function and way too many

RE: [PHP-DEV] feature request

2001-03-19 Thread Chris Newbill
Gutmans [mailto:[EMAIL PROTECTED]] Sent: Monday, 19 March, 2001 1-12 pM To: Jason Greene; Phil Driscoll; Chris Newbill; Zeev Suraski Cc: PHP DEV Subject: Re: [PHP-DEV] feature request Ugh, that's exactly what I didn't want to get into. If you want an array of results you're better of doing a few

Re: [PHP-DEV] feature request

2001-03-19 Thread Phil Driscoll
Zeev said: Define 'change their behavior' though? 'change their behavior' === 'change their behavior' in a subtle way :) Almost all SQL functions take an optional argument which is the link id. That is by design, and doesn't really mean anything here, I'm not saying it does mean anything

Re: [PHP-DEV] feature request

2001-03-19 Thread Jon Parise
On Mon, Mar 19, 2001 at 11:27:09PM +0200, Zeev Suraski wrote: What is iseverythingelse()? I don't think we have any other iseverythingelse() function. I'd assume Lars is referring to the is_{type} functions: http://www.php.net/manual/en/ref.var.php -- Jon Parise ([EMAIL PROTECTED])

  1   2   >