Re: [PHP-DEV] Dismantling the lies...

2007-05-22 Thread Mathias Bank
Rasmus Lerdorf schrieb: > Adding a check on every refcount increase is a bit > scary for the performance folks. It may be that in most realworld cases > this is an acceptable performance tradeoff. We have to balance the > seriousness of the vulnerability against the performance cost of the > fix.

Re: [PHP-DEV] serialize and cache handling

2007-05-09 Thread Mathias Bank
> If his cache had no locking before, what changed? Well, I have been using several cache classes. A good cache class is the pear cache light. This cache is serializing your data and write this data to a file - of course with file locking. I could imagine, that a improved serialize-function coul

[PHP-DEV] serialize and cache handling

2007-04-21 Thread Mathias Bank
Hallo, I use pear cache (light) to save calculated values. The package uses serialize to transform the content of a variable into a writable form. This transformed value will be saved to disk. This could be improved! Would it be possible to rewrite the serialize function to make it possible

[PHP-DEV] inconsistency in using utf-8

2007-02-11 Thread Mathias Bank
Hi, there is a inconsistency in using utf-8. If you use tiny_html (http://de2.php.net/manual/en/function.tidy-repair-string.php), you have to use "utf8" to encode your data in utf-8. If you use html_entity_decode() (http://de2.php.net/manual/en/function.html-entity-decode.php), you have to

[PHP-DEV] Change log suggestion

2007-02-10 Thread Mathias Bank
Hallo a little suggestion to the PHP change log. I think, that it should be mentioned, who has found a bug. This could improve the security of php because someone who has found a bug will report it to php first, because he/she will be mentioned in the php change log. If not, the only reason

[PHP-DEV] Memory usage of Scripts

2007-02-10 Thread Mathias Bank
Good morning, I have a little problem with a php script which uses really lots of memory. Until now, I have thought that PHP will free variable memory after the end of a function. But it seems, that this is not true. simple variables: function readData() { $data = file_get_contents("C:/phpPr

[PHP-DEV] Re: Syntactic improvement to array

2007-02-08 Thread Mathias Bank
Andi Gutmans schrieb: Hi, 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 I am usually not in favor of

Re: [PHP-DEV] Feature request

2006-11-23 Thread Mathias Bank
Richard Lynch schrieb: On Thu, November 9, 2006 9:13 pm, Andi Gutmans wrote: It looks a bit perl-ish indeed but I don't see much trouble in having that it people really need it... -0.3 :-) The thing is, I see this ending up with people starting to write unintelligible code: echo {$$(foo()[4

Re: [PHP-DEV] Feature-Request - Macros

2006-11-15 Thread Mathias Bank
Richard Lynch schrieb: On Mon, November 13, 2006 4:42 am, Mathias Bank wrote: As you see, with this macro functions, it could be achieved any individual syntax. It would be a pleasure, if php could support it. It could shorten a lot of code. It sounds like you could submit a patch and get it

[PHP-DEV] Re: Feature-Request - Macros

2006-11-15 Thread Mathias Bank
Mathias Bank schrieb: Hallo, you know, that there was often a discussion about a "ifsetor" function. I want to generalize this discussion. If you know LISP, there is a fantastic macro function which allows you to generate own syntax (not a c macro function, which is really bad). I

[PHP-DEV] Feature-Request - Macros

2006-11-13 Thread Mathias Bank
Hallo, you know, that there was often a discussion about a "ifsetor" function. I want to generalize this discussion. If you know LISP, there is a fantastic macro function which allows you to generate own syntax (not a c macro function, which is really bad). It would be fantastic, if php could