Hi
After server upgrade I was found this possible bug in
sqlite_esacpe_string function:
?php
echo sqlite_escape_string('test');
?
Output is:
PHP Fatal error: Allowed memory size of 209715200 bytes exhausted
(tried to allocate -1962934272 bytes) in /home/ondrej/test.php on line 3
Sara Golemon wrote:
Is anyone working on something like this already?
I don't known what you exactly meaning, but I'm playing with 'The Spread
Toolkit' [1] a their PECL interface [2]. I was started research phase of
project only. The goal of my work is to create sessions handling across
David Olsson wrote:
malloc to allocate memory. This means that my memory allocations using
c++ new should allocate persistent memory chunks. So the
persistent/non-persistent memory issue doesn't explain why my std::map
simply is empty. The fact that it contain zval pointers pointing to
Nuno Lopes wrote:
?
function a($b) {}
a(1,2,3);
?
PHP accepts this and generates no errors. My purpose is to start
generating an E_NOTICE, just like we do for not yet initialized variables.
No, stupid output!
Generating E_NOTICE is not a good idea. You don't need to create
functions with
Hi
I was lost in this thread. Could someone post resume from this
discussion? How can I deal with this in 4.3, 4.4, 5+?
Thanks
--
Ondrej Ivanič
([EMAIL PROTECTED])
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, this is a right task for a namespaces.
What is current status of a patch? It will be included?
--
Ondrej Ivanič
([EMAIL PROTECTED]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Pierre Joye wrote:
is not something I like to see. For language constructs, I would
really like to have only ASCII support...
This suff works in php4,5:
?php
function zmaž($čozmazať) {
echo mažem $čozmazať\n;
}
zmaž(3);
?
IMHO, if someone need ...
--
Ondrej Ivanič
([EMAIL
Pierre Joye wrote:
On 9/13/05, Ondrej Ivanič [EMAIL PROTECTED] wrote:
IMHO, if someone need ...
I know, that's why I say: PHP6.
Another constraint? why?
1) It's a BC break (... which impact 1 or 2 users? :) )
2) PHP can be scripting engine in learning programs for children ( like
Jani Taskinen wrote:
On Tue, 30 Aug 2005, Andrei Zmievski wrote:
On Aug 30, 2005, at 10:30 AM, Rasmus Lerdorf wrote:
Also, I see the following 6 failed test cases on my Linux box:
-Bug #16069 [ext/iconv/tests/bug16069.phpt]
According to the last two comments in that bug report, glibc
Andrei Zmievski wrote:
+ Determining length of Unicode strings via strlen() function, some
simple string functions ported (substr).
It's not a problem to determine kind of char in single byte character
sets, but in the unicode with various encoding schemas I don't see easy
way how
Al Baker wrote:
An embedded opcode cache I think is also essential and the surrounding
$_MEMORY sounds perfect to me. All Java guys (yeah I know PHP != Java)
say PHP isn't ready for the enterprise because it can't share
information between processes other than arcane sessions. Having PHP
pecl/apc has apc_store/apc_fetch:
http://livedocs.phpdoc.info/index.php?l=enq=function.apc-store
I know about APC, but IMHO I can't use it. On webservers are Zend
Optimizer or mmcache (eAccelerator now) used.
--
Ondrej Ivanic
([EMAIL PROTECTED])
--
PHP Internals - PHP Runtime Development
Jani Taskinen wrote:
If apc comes bundled then it includes apc_store() and apc_fetch() this
is pretty much $_MEMORY with a few tweaks.
Yes, but that is restricted to one server installations.
I need such a 'global session' that is available with multiple
front-end servers..ie.
Hi
1. Remove register_globals completely
2. Remove magic_quotes_*
3. Add input filter extension which will include a mechanism for
application developers to very easily turn it off which would swap
the raw GPC arrays back in case the site had it turned on by default.
4. Include an
Derick Rethans wrote:
Does that mean you want more opinions? :)
Throw an InvalidArgumentException from SPL...
--
Ondrej Ivanic
([EMAIL PROTECTED])
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Jani Taskinen wrote:
without SPL. At the end of the day i'd even like to drop reflection
support
from the engine and move it to a specialized extensions - again - for
speed/memory reasons.
YES PLEASE! I've absolutely no use for it, and I really really need
every bit of
Derick Rethans wrote:
Hello!
we're finding some problems with property overloading (__get() and
__set()). Here is an RFC describing what we'd like to see changed.
Please comment on this.
Introduction:
PHP currently supports property overloading with the magic functions __get()
and __set().
Weyert de Boer wrote:
My first question to start my fame on this list is, does anyone on this
list happen to have the grammar of PHP language?
I think, you can start with zend_language_parser.y in Zend
subdirectory in tar ball.
Rules in section 'Rules' :) can be easy rewritten into BNF or
Jochen Hansper wrote:
The indexed array 'parameters' is expected to be:
array( {int|string} expires [, string path [, domain [, bool secure [,bool
httponly )
Why not like this?
array(
'expires' = ...,
'path' = ...,
'domain = ...,
'secure' = ...,
Jason Garber wrote:
ifsetor is NOT input filtering, it is not a complex, general purpose
stuff like 'ifsetof()' is good when is use as:
$x = ifsetor($ANY_var, 'Default Value');
but too many times I need additional checks like this:
$x = isset($_REQUEST['x']) is_number($x) ?
Magnus Mtt wrote:
I don't see how putting a name on the number makes it any better and I
still would have to emulate it with loops and breaks and continues,
unless it's actually a code word for goto ;)
your code with named breaks/continues:
continue_label:
for (...; ...; ...) {
Zeev Suraski wrote:
damage than good. And the fact we may have made mistakes in the past
and have unnecessary constructs already, doesn't mean we should do it
again.
Yes, PHP is on the right way.
PHP is on the begin of moving from functional to full 00 code. IMHO in
00 code there isn't place
Andrey Hristov wrote:
WTF?!?
If you need Java, then go use Java. If you want String object, do it
yourself.
Some people need goto, some people need phpjava, it's life. It's was my
wishlist and I like php as is. I can't implement this features by
myself. It's to hard for me create php
Jani Taskinen wrote:
And the much needed goto for the next one (5.2/5.5/6.0 or whatever it
will be) ?
I've found a lot of cases where this would have been nice to have
and simplified the code too..
So +1 from me. (wasn't there a patch for this already somewhere?)
When I move
Derick Rethans wrote:
I think, better (cleaner) way is extend 'break' and 'continue' to accept
string as label name in local scope. (like java :)).
Implement 'goto' with possibility to jump anywhere is a step backwards...
It's exactly the same as break label... goto can only jump in the
Ilia Alshanetsky wrote:
Any feature can and as experience proves it to be the case, will be
abused. Plenty of people make horrid abuse of exceptions, but we still
went ahead an added them anyway since they have many practical and
useful applications. Same is true for goto, some people will
26 matches
Mail list logo