I suspect you could address security concerns by limiting the input to
valid characters in your arithmetic needs:
if (preg_match('|^[0-9.+/*-]+$|', $expression)){
eval($foo = $expression);
return $foo;
}
On Fri, December 7, 2007 8:51 am, Nathan Rixham wrote:
In-Built PHP Functions for
On Tue, January 1, 2008 11:02 am, Johannes Schlüter wrote:
On Mon, 2007-12-31 at 22:45 +0100, Marcus Boerger wrote:
Hello Johannes,
I agree with Pierre here. How about finally making SPL built in
always
like ext/standard?
-1
I still don't want SPL cluttering things up for me,
I don't believe the PHP Dev Team has ever claimed that votes counted
for anything at all.
IIRC, the last known Dev Team structure was defined as benevolent junta
I do not think anybody who can count past 10 with their shoes on can
mistake benevolent junta for a vote-based democracy. :-)
Larry
On Fri, January 11, 2008 4:13 pm, Sam Barrow wrote:
On Sat, 2008-01-12 at 00:52 +0300, Antony Dovgal wrote:
On 11.01.2008 22:13, Sam Barrow wrote:
input from many people is great, moreover - it is necessary.
However, it
is not the same as deciding by arithmetical majority of votes of
-1
Another way of doing something already simple does not improve the
language, imho, only degrades maintenance and documentation.
If you have a time machine and can go back and make Rasmus do it this
way from the beginning, fine, but not now.
--
Some people have a gift link here.
Know what I
On Sat, January 5, 2008 2:48 pm, Stefan Esser wrote:
Hello,
typing into PHP, even if it is optional. Passing $_REQUEST['age']
to a
that $_REQUEST['age'] has been checked for numeric before the
functio
would you please not use $_REQUEST in any of your examples? $_REQUEST
is
one of the
On Wed, January 16, 2008 12:54 am, Stefan Priebsch wrote:
Richard Lynch schrieb:
If a web service really doesn't care whether it is responding to GET
or POST or even forged COOKIES to product its output, why would it
not
just use REQUEST?
It's not as if it's any harder to forge GET vs. POST
On Wed, January 16, 2008 1:45 am, Stefan Esser wrote:
Stefan Priebsch schrieb:
Richard Lynch schrieb:
If a web service really doesn't care whether it is responding to
GET
or POST or even forged COOKIES to product its output, why would it
not
just use REQUEST?
It's not as if it's any
On Wed, January 16, 2008 2:17 pm, Stefan Esser wrote:
It would have been a good idea to have such a configuration option
that
allows to specify what is in _REQUEST and what not...
Perhaps it would be wise to add yet another php.ini setting?
[Yeah, I know the usual response to that. Just think
On Mon, January 21, 2008 8:38 am, Antony Dovgal wrote:
6 reasons why we must to get rid of The Switch ASAP
I was +1...
Until folks started posting that old PHP scripts won't run as-is in
PHP 6?...
That's just daft...
When my webhost
On Fri, January 18, 2008 1:08 am, Antony Dovgal wrote:
On 18.01.2008 04:39, Michael B Allen wrote:
You have to copy the string if you want to store it.
Ok. Doesn't look like I have much choice. I just wanted to
understand
the problem better. I'll just copy the strings.
But it does seem odd
On Wed, January 23, 2008 1:28 pm, Rasmus Lerdorf wrote:
I don't disagree with this, and that is actually why I insisted on
having the unicode-semantics switch from the early days of the Unicode
discussions, so you can blame me, again, if you consider it a bad
design
decision.
Would the world
On Wed, January 23, 2008 2:21 pm, Rasmus Lerdorf wrote:
Richard Lynch wrote:
On Wed, January 23, 2008 1:28 pm, Rasmus Lerdorf wrote:
I don't disagree with this, and that is actually why I insisted on
having the unicode-semantics switch from the early days of the
Unicode
discussions, so you
philosophy? Keep it easy for the new user, keep it
successful, and make me work a little more when I want to
implement my
high class development methodologies. I don't mind, I do it
already.
I write this as a high class developer.
-1
-Chris
On Jan 22, 2008 7:32 PM, Richard Lynch [EMAIL
On Wed, January 23, 2008 6:58 pm, Andrei Zmievski wrote:
It seems we're only talking about literals here. What about the rest
of
the places where unicode.semantics switch matters right now, like
streams (works in binary or unicode mode), incoming request decoding,
etc? It would be a shame to
On Sat, February 2, 2008 2:14 pm, Steph Fox wrote:
2) Maintenance status needs to be part of the equation.
3) Stability needs to be part of the equation.
4) Appropriateness to a given PHP branch needs to be part of the
equation.
5) CS and documentation need to be part of the equation.
On Mon, February 4, 2008 3:42 am, Ben Trafford wrote:
Just poking up my head to concur with Derick. What one
person thinks of as 'fashionistas', another person will think of as
absolutely core and necessary
+1
I don't think this list will ever reach concensus on what should be
in
On Fri, February 1, 2008 7:33 pm, Pierre Joye wrote:
On Feb 2, 2008 1:52 AM, Gregory Beaver [EMAIL PROTECTED] wrote:
Rasmus Lerdorf wrote:
Cristian Rodriguez wrote:
2008/2/1, Marcus Boerger [EMAIL PROTECTED]:
- Fix callable/static mess, the following will now all result
in a E_STRICT
On Sun, February 3, 2008 7:51 pm, Stanislav Malyshev wrote:
Like I mentioned before (I think), it should not return an empty
string
of course because programmatically it's not possible to check for
this.
As most of our functions return false in those cases, so should this
function.
AFAIR
On Tue, February 5, 2008 2:38 pm, Jeremy Privett wrote:
-1: Restore them and always return FALSE (not 0)
I freely admit to not remembering a 2-year-old discussion, but it
seems to me for BC reasons you'd want to do this...
I know they've been marked deprecated and all, but, really, what's
the
On Wed, February 13, 2008 9:47 am, Lars Strojny wrote:
Hi everyone,
the following patch[1] adds the functions append_include_path() and
prepend_include_path(). These function are there to make include path
adjustments easier than it is. Especially append_include_path() is
what
is done
On Wed, February 6, 2008 6:39 pm, Stanislav Malyshev wrote:
This topic was already discussed here but never arrived to a
conclusion,
so I will raise it again.
The Problem:
We have $_REQUEST superglobal, which is often used to abstract
GET/POST
requests. However, in most cases we do not want
On Mon, February 18, 2008 1:27 pm, [EMAIL PROTECTED] wrote:
?php
trait ezcReflectionReturnInfo {
function getReturnType() { /*1*/ }
function getReturnDescription() { /*2*/ }
}
class ezcReflectionMethod extends ReflectionMethod {
use ezcReflectionReturnInfo;
So it's just like
On Wed, February 6, 2008 7:20 am, Derick Rethans wrote:
On Wed, 6 Feb 2008, Sam Barrow wrote:
On Wed, 2008-02-06 at 09:31 +0100, Derick Rethans wrote:
I still we should add simple static typehints (ie. just the types
that
we use in the manual) - and they should behave in the same way
On Mon, February 18, 2008 5:08 pm, David Coallier wrote:
On Feb 18, 2008 5:37 PM, Richard Lynch [EMAIL PROTECTED] wrote:
On Mon, February 18, 2008 1:27 pm, [EMAIL PROTECTED] wrote:
?php
trait ezcReflectionReturnInfo {
function getReturnType() { /*1*/ }
function
On Mon, February 18, 2008 7:45 pm, Rasmus Lerdorf wrote:
The idea here is that we want to be able to cache opcodes, classes and
functions and optimize them out of the runtime context so the executor
can skip creating classes and functions on every single request. A
lot
of the traffic on this
On Tue, February 19, 2008 8:29 am, Marcus Boerger wrote:
For that reason allowing traits in favor of include inside a class
body is
much better.
Once upon a time, there was a real difference between require and
include -- where require was compile-time and include was run-time.
PERHAPS it
On Wed, March 26, 2008 12:13 pm, Stanislav Malyshev wrote:
I'd wait for 6 with this. May break some scripts.
I dont think it will break more a piece of code that doesnt really
work. ;)
Af far as I know, breaks with arguments do work in PHP.
And I even used it once...
I could re-factor to
On Mon, March 24, 2008 8:16 pm, Felipe Pena wrote:
Do we keep the support added in http://bugs.php.net/bug.php?id=37632
(that isn't supported in C++, for instance) or fix the
zend_is_callable_check_func() ?
Personally, it makes sense to me for a PROTECTED function (et al) with
a common
On Thu, March 20, 2008 12:40 pm, sean finney wrote:
sorry for digging up this dead horse...
On Thursday 10 January 2008 01:05:35 pm Joe Orton wrote:
On Wed, Jan 09, 2008 at 09:03:02PM +0100, Derick Rethans wrote:
On Wed, 9 Jan 2008, Joe Orton wrote:
It's a bit of a maintenance headache
On Tue, July 7, 2009 12:54 pm, Philip Olson wrote:
- Reclassification : Discuss how we handle this, like should old/new
lists both receive emails?
Both lists should receive reclassifaction notification, and nothing
more, imho.
- Consider different captcha (like reCaptcha) for anonymous users
On Tue, July 7, 2009 4:48 am, Hannes Magnusson wrote:
On Thu, Jul 2, 2009 at 01:01, Brian A.
Sekleckisekle...@noc.cfi.pgh.pa.us wrote:
All:
Perhaps we should clarify the socket tuneables such as:
; Default timeout for socket based streams (seconds)
default_socket_timeout = 60
These are
On Mon, July 6, 2009 7:52 pm, Ilia Alshanetsky wrote:
Last week or so there was a fairly detailed discussion on the
internals list regarding type hinting based on my original patch.
Since then the patch has been revised to address the major concerns
that were identified (breakage of binary
On Wed, July 8, 2009 7:34 am, endrazine wrote:
-BEGIN PGP SIGNED MESSAGE-
The first possibility is to directly patch SoapClient() to force it
use
libcurl (wich has ssl verification features). While doable
tehcnically,
I wonder if my patch for it would be merged into the framework, or
On Fri, July 10, 2009 10:50 am, Alban wrote:
Le Fri, 10 Jul 2009 16:16:51 +0100, Alain Williams a écrit :
On Fri, Jul 10, 2009 at 10:57:22AM -0400, Alban wrote:
Le Fri, 10 Jul 2009 14:23:24 +0100, Alain Williams a écrit :
On Fri, Jul 10, 2009 at 08:45:55AM -0400, Alban wrote:
And
On Tue, July 21, 2009 11:22 am, Christian Schneider wrote:
Richard Lynch wrote:
I think anybody who is coding with strict/weak/contract
type-enforcement/casting is going to understand
try/catch/Exceptions...
I'm not going to start an pro/contra Exceptions rant but *please* keep
Exceptions
On Fri, July 24, 2009 8:43 am, Ben Scholzen 'DASPRiD' wrote:
To you both, this is especially, for library code like Zend Framework.
The library cannot expect the user to have the error handle set, so it
would have to replace the error handler before every line which it
wants
to try {} and
On Fri, July 24, 2009 11:00 am, Matt Wilson wrote:
I agree, however there are certain aspects of PHP's errors that leave
a lot to be desired. For instance, a failed fopen or a failed socket
will often result in an uncatchable warning from php. Sure, you can
add a @ to the line but that's slow
On Fri, July 24, 2009 9:35 am, Alexey Zakhlestin wrote:
On Fri, Jul 24, 2009 at 6:29 PM, Hannes
Magnussonhannes.magnus...@gmail.com wrote:
On Fri, Jul 24, 2009 at 15:43, Ben Scholzen
'DASPRiD'm...@dasprids.de wrote:
To you both, this is especially, for library code like Zend
Framework.
The
On Sun, August 16, 2009 11:24 am, Paul Biggar wrote:
Hi Stefan,
On Sat, Aug 15, 2009 at 8:52 PM, Stefan Marrp...@stefan-marr.de
wrote:
Sometimes, it would be really interesting to know
where some of the used ideas are coming from
and what the reasoning was. I tend to think that its rather
On Thu, August 6, 2009 10:59 am, Lester Caine wrote:
I suspect in 2007/8 Larry thought that PHP6 was actually going to be
released
some time soon, rather than inventing a new roadblock with PHP5.3 -
which is
what the book now needs re-writing to support?
At least one of these PHP 6 books has
Personally, I generally prefer log_errors and E_ALL in production.
That said, there have been cases where it really wouldn't make much
sense to log the errors on a web tier with many nodes.
Or, at least, it didn't make sense to *just* log the errors.
But I digress.
I believe Stas has made a
On Fri, August 21, 2009 2:11 pm, Joey Smith wrote:
2) Perhaps this has changed, but last time I looked, the built-in
SMTP client is the ONLY method available for mail() on Win32.
I believe some people have had success in installing sendmail-like
software on Windows and using the 'linux'
On Tue, August 18, 2009 4:46 am, Ville Jungman wrote:
... but you would like to use the inner loop also elsewhere. Just
define it as a function ...
while($numbers as $value){
while(...){
while(...){
do_something_with($value);
do_something_with($value + 1);
On Fri, August 28, 2009 4:09 pm, Stanislav Malyshev wrote:
Hi!
I foresee a fair number of people who turn on error_mask, and then
are
defuddled by the 3rd party apps they never reviewed in the first
place
not behaving.
/.../
All that said:
I am in favor of this patch, provided
On Fri, September 4, 2009 10:51 pm, Andi Gutmans wrote:
Shebang is for command line scripts (php-cli). It does not make sense
to
support it for Web server scripts. It just adds unnecessary
code/complexity to that code base. Removing the support from php-cgi
was
really a remnant of the old
On Fri, August 28, 2009 4:23 pm, Chris Smith wrote:
Richard Lynch wrote:
Then Chris Smith wrote:
It is simple to detect the method used, SMTP is used if
sendmail_path
is empty and the system is Windows, otherwise sendmail is used.
I think you should revise this to be if sendmail_path
On Mon, December 21, 2009 11:41 am, Christian Grobmeier wrote:
But: What exactly do you want to learn? Do you want to learn how to
use
it better or academic reasons or something else? - Depending on
all
that the focus of the learning might be quite different.
I don't want to start with PHP
On Wed, December 23, 2009 11:21 am, Rasmus Lerdorf wrote:
Richard Quadling wrote:
2009/12/23 Rasmus Lerdorf ras...@lerdorf.com:
Can anyone think of a situation where you actually want our current
ignore_user_abort=false setting for the cli sapi?
I would say that the default setting is pretty
On Mon, December 28, 2009 10:30 am, Clint Priest wrote:
Has there been any discussion or decision about whether is_array()
should return true for objects which implement ArrayAccess or is there
another function already available which checks for either being the
case?
I really would prefer
On Mon, December 28, 2009 6:27 pm, Clint Priest wrote:
Etienne Kneuss wrote:
On Tue, Dec 29, 2009 at 12:04 AM, Clint Priest
cpri...@warpmail.net wrote:
Unfortunately $x instanceOf ArrayAccess doesn't return true when $x
is
indeed an array.
Making is_array return true for objects
On Wed, December 30, 2009 8:30 am, Hans-Peter Oeri wrote:
Hi!
Christian Schneider wrote:
leads to another inconsistency: Depending on the hosting provider
and/or
frameworks/modules used you'd have to write different error
handlers.
I understand there are widely differing applications for
On Wed, December 30, 2009 12:25 pm, Hans-Peter Oeri wrote:
Hi!
Rasmus Lerdorf wrote:
Yeah, good luck with that. We have been imploring people for 10
years
to not have display_errors on in production with very little
success.
I agree but am convinced at least part of that problem lies in
Never use empty()
I've been burned by this too many times.
It's behaviour around '0' and friends changed over the years.
Some colleagues at a former job looked at me funny when they first
heard my rant about this. Then they tracked down 3 separate bugs and
fixed them, all deriving from the use
On Mon, January 18, 2010 6:27 pm, Stanislav Malyshev wrote:
I wrote a small patch that enables this kind of syntax in PHP:
foo()();
What it means is that if foo() returns callable value (which probably
should be function name or closure) then it would be called.
Parameters
and more than
On Tue, January 19, 2010 1:29 am, Eddie Drapkin wrote:
On Tue, Jan 19, 2010 at 2:14 AM, Alexey Zakhlestin
indey...@gmail.com wrote:
Would be nice if something like this worked too:
  (new Class())-method();
I was just looking at some Java code and thinking, man I wish PHP did
this.
On Tue, January 19, 2010 5:19 am, Alain Williams wrote:
I have seen the argument that things like this will confuse novice
programmers,
maybe: but would they ever try to type something like that ?
Yes, because they see the experts typing something like that.
What's more, they have to READ
On Tue, January 19, 2010 10:05 am, Stanislav Malyshev wrote:
Hi!
I'd rather see two other things that are missing, support for
dynamic object and array de-referencing like
(new class)-method() and get_array()[index].
The second was next on my list, while the first seems to me kind of
On Tue, January 19, 2010 10:20 am, Eddie Drapkin wrote:
On Tue, Jan 19, 2010 at 11:05 AM, Stanislav Malyshev s...@zend.com
wrote:
The second was next on my list, while the first seems to me kind of
exotic -
why create object only to call one method and immediately drop it?
Why this
method
Once upon a time, a long time ago, PHP imported all GET/POST/COOKIE
data as variables, for the convenience of the developer.
This was called register_globals
$a.b is not a valid variable name, so it was changed to $a_b to be a
valid variable name.
Nowadays, I see no real reason to keep doing
On Sat, January 27, 2007 5:16 am, Pierre wrote:
On 1/27/07, Andrei Zmievski [EMAIL PROTECTED] wrote:
Good luck trying to retrain millions of programmers to use a CGI
object or a function to retrieve GPC values.
You will be surprised, really :)
I doubt it.
We haven't even gotten everybody to
On Sun, February 4, 2007 1:25 am, Andi Gutmans wrote:
I thought I may have brought this up a long time ago but couldn't find
anything in the archives.
For a long time already I've been thinking about possibly adding a new
syntax for array(...) which would be shorter. I'd suggest
[...]. While
On Sun, February 4, 2007 10:59 am, Zeev Suraski wrote:
My 2c - unless we also make it behave like a list() when in
assignment context - I think it will confusing.
So I'm +1 if we make it work as both list() and array(), and -1
otherwise.
Can you show by example what this means?
I'm seeing
On Sun, February 4, 2007 2:46 pm, Stefan Walk wrote:
Steph wrote:
Hi Stas,
By pure coincidence, I was doing a bunch of javascript work lately
too, and I find [] syntax OK. From readability POV it's not much
difference, but much less clutter if you have really massive data
array - no array()
On Sun, February 4, 2007 8:58 am, Christian Schneider wrote:
Plus you could
still
use array() if you really wanted to.
Yes, but sooner or later I am stuck with somebody else's code who
decided to write the non-array version, and I'm sitting there
wondering what [bleep] this code is doing.
On Sun, February 4, 2007 8:23 am, Christian Schneider wrote:
Andi Gutmans wrote:
So what I'm thinking of is:
array(1, 2, 3) == [1, 2, 3]
I like this syntax, more conscise but still clear (and well
established
in other languages by now).
Two more thoughts (but please don't kill Andi's
On Sun, February 4, 2007 7:53 am, Hannes Magnusson wrote:
On 2/4/07, Nico Haase [EMAIL PROTECTED] wrote:
Hallöchen,
*Johannes Schlüter* schrub:
- Without keyword it's hard to find the documentation if you
don't know
that syntax
Well, this is the same with HEREDOC since you can use
On Mon, February 5, 2007 12:01 pm, Stanislav Malyshev wrote:
you, they don't have a clue what they are doing. $a = [1,2,3];
would
not mean jack sqat to those folks. And as stated, finding docs on
that
How hard can that be? If one is smart enough to do computer
programming,
how hard can
On Mon, February 5, 2007 12:24 pm, Stanislav Malyshev wrote:
When a new PHP user asks you What is an array? you will
understand.
If someone is not familiar with the concept of the array at all, it
doesn't matter if it's written as array(1,2,3) or [1,2,3]. That's not
what we are
On Mon, February 5, 2007 1:18 pm, Andrei Zmievski wrote:
I don't buy the searching docs is easier argument. There are plenty
of operators and such that are hard to search for.
Yes, and it makes life miserable for some of us...
Is that a good reason to extend that misery to yet another
On Mon, February 5, 2007 12:06 pm, Andrei Zmievski wrote:
On Feb 4, 2007, at 8:52 PM, Richard Lynch wrote:
E!
So now we have an invisible operator with a magical symbol '[' which
*sometimes* means create an array, but *sometimes* means to
de-construct an array into individual
On Mon, February 5, 2007 12:05 pm, Stanislav Malyshev wrote:
So now we have an invisible operator with a magical symbol '[' which
*sometimes* means create an array, but *sometimes* means to
de-construct an array into individual variables?
Yep. We also have an invisible magical operator
More edge cases:
$foo = array(1, 2, 3];
$bar = [1, 2, 3);
Syntax error because it's unbalancedO
Or kosher, because the choice of start/end delimiters should be up to
the user?
Should it match whatever rule is in place for:
if (...){
endif;
--
Some people have a gift link here.
Know what I
On Tue, February 6, 2007 11:26 am, Andrei Zmievski wrote:
On Feb 5, 2007, at 3:37 PM, Richard Lynch wrote:
Yes, and it makes life miserable for some of us...
Is that a good reason to extend that misery to yet another operator?
Richard, please. This is not advanced OO stuff or anything close
when defining new syntax,
personally.
On Tue, February 6, 2007 11:28 am, Andrei Zmievski wrote:
Now you're just grandstanding.
-Andrei
On Feb 5, 2007, at 3:55 PM, Richard Lynch wrote:
More edge cases:
$foo = array(1, 2, 3];
$bar = [1, 2, 3);
Syntax error because it's unbalancedO
On Tue, February 6, 2007 8:17 am, LAUPRETRE François (P) wrote:
From: Richard Lynch
How many newbies will be trying:
array[1, 2, 3];
and left scratching their heads when it doesn't work?
Yes, even if I am in favor of the [] syntax, it is a good argument:
'array[ 1, 2, 3]' can
become
On Thu, February 8, 2007 7:43 pm, Christian Schneider wrote:
Guilherme Blanco wrote:
Brian,I am sorry about the message indentation... Seems
PHP-Internals
list does not like M$ Live(r) Mail!
Please use plain text mail as your messages are a PITA to read,
thanks.
Or very easy to read, as
On Thu, February 8, 2007 5:15 pm, Brian Moon wrote:
Darrel O'Pry wrote:
I was wondering if anyone could point me to a resource explaining
why
the _FILES array is structured as it is with html arrays.
What is an html array?
I believe he means HTTP array such as $_GET $_POST $_REQUEST
I'm +1 on the separate block.
SUGGESTIONS:
Put the STABLE RELEASE link *before* any RC release.
Rationale: Users in a hurry will more likely click the first one.
Add an EXTRA page in between the homepage and download of RC saying
something not unlike:
You are downloading a RELEASE
[Taking this back on-list, as it's my final answer.]
On Wed, February 14, 2007 5:30 pm, Christian Schneider wrote:
Richard Lynch wrote:
But the code that checks for E_NOTICE also has to be altered to check
for E_STRICT...
How many applications use error handlers. And how many of them rely
On Thu, March 1, 2007 7:29 am, Michael Vergoz wrote:
I don't claim to understand this issue fully/deeply, but I'm
definitely +1 on resurrecting 'dl' if this change fixes everything to
everyone's satisfaction.
Not that my vote actually counts, as I've never had the skills/time to
actually
Given the discussion this has provoked, it seems to this naive reader
like it might be a good candidate for SoC.
Just an idea...
--
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
On Thu, March 15, 2007 10:08 am, Lukas Kahwe Smith wrote:
Derick Rethans wrote:
On Thu, 15 Mar 2007, Antony Dovgal wrote:
Hannes also has some ideas on improving our bug tracker as a GSoC
project.
And I am thinking about this:
http://derickrethans.nl/wanted_dbgp_xdebug_client.php
Do you
On Thu, March 15, 2007 4:15 am, Richard Quadling wrote:
1 - It doesn't matter what the server side handler is
(files/user/sqlite/mm/etc), session data is not stored until you do a
session_write_close(). So for a separate process to have access to the
data, the session must be closed.
You
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
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
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
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
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
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
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
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
-
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
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
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
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
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
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
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
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
1 - 100 of 446 matches
Mail list logo