PHP 6 Bug Summary Report
PHP 6 Bug Database summary - http://bugs.php.net/
Num Status Summary (107 total -- which includes 46 feature requests)
===============================================[*General Issues]==============
50189 Open [PATCH] - unicode byte order difference between SPARC and x86
===============================================[Apache related]===============
47061 Open User not logged under Apache
===============================================[Apache2 related]==============
44083 Open virtual() not outputting results if zlib.output_compression = On
=====================
|
1/4/2010 10:00:00 AM
|
0
|
intern...@lists.php.net
|
PHP 5 Bug Summary Report
PHP 5 Bug Database summary - http://bugs.php.net/
Num Status Summary (1571 total -- which includes 1021 feature requests)
===============================================[*Directory/Filesystem functions]
49620 Suspended is_writeable does not work using netshare and normal user rights
50542 Assigned scandir() cannot open UNC paths since PHP 5.3.1
===============================================[*General Issues]==============
48597 Open Unclosed array keys break space escaping in $_GET/POST/REQUEST
50314 Verified File upload problem with typo in form
50512 Open Yum
|
1/4/2010 9:30:06 AM
|
0
|
intern...@lists.php.net
|
hope add func_alias() function
php v5.3 added class_alias() function.
same, i hope add func_alias() function is used to solve the problem
without throwing an exception.
Example:
// Now
class str
{
public static function len($str)
{
return strlen($str); // Warning is here, none throwing an exception
// if u need exception, pls youself write ?
// However, if this type of operation a lot?
}
}
str::len(array()); // Warning in the above
// Expected
class str{}
func_alias('strlen', array('str', 'len'));
str::len(array()); // strlen same warning.
// This a f
|
1/4/2010 6:01:54 AM
|
0
|
da...@rune.ws (dark9)
|
hope add func_alias() function
php v5.3 added class_alias() function.
same, i hope add func_alias() function is used to solve the problem
without throwing an exception.
Example:
// Now
class str
{
public static function len($str)
{
return strlen($str); // Warning is here, none throwing an exception
// if u need exception, pls youself write ?
// However, if this type of operation a lot?
}
}
str::len(array()); // Warning in the above
// Expected
class str{}
func_alias('strlen', array('str', 'len'));
str::len(array()); // strlen same warning.
// This a f
|
1/4/2010 5:45:39 AM
|
0
|
da...@rune.ws (dark9)
|
array position isfirst / islast / valid ?
Hello
Would it be possible to add functions to know the relative internal array position?
I found "[PHP-DEV] RFC array functions" from 2006, but nothing really changed.
The need to use next, prev in combination is ridiculous compared to a clean array_hasmore or array_pos_islast, as the internals already know this.
To get an array_valid_position or array_pos_isvalid wouldn't be bad either.
So would it possible to introduce:
array_pos_isfirst(& $array)
array_pos_islast(& $array)
array_pos_isvalid(& $array)
Best regards
Oskar Eisemuth
|
1/2/2010 4:47:10 PM
|
3
|
patch...@gmail.com (Oskar Eisemuth)
|
invalid params return value
Hi!
One of the many things that is chaotic in PHP is what internal function
returns when invalid parameters are given (i.e. params parsing fails).
Most of those functions do one of:
1a. just return - this happens with most standard ext code, which was
converted from old params parsing to a new one.
1b. RETURN_NULL() - this is effectively the same as 1a, but the code is
different.
2. RETURN_FALSE - some random set of functions does that, e.g. some of
PDO functions (PDO::prepare, PDO::setAttribute, etc.). NB: I'm not
singling out PDO here, it happens all over the code, it's
|
12/31/2009 6:10:09 AM
|
9
|
s...@zend.com (Stanislav Malyshev)
|
Errors, Exceptions et al
Hi!
Although I'm new here and I know I'm about to stir up a hornets' nest,
please allow me to introduce another error/exception proposal.
The problem for me as a php end-user currently is, that no coherent
error behaviour in php exists. Core functions only issue errors, intl
eg. suppresses all errors (if not enabled), pdo allows suppressing
errors, exceptions and errors - but only of level E_WARNING.
Whether I prefer suppressing errors, errors or exceptions, I always
run into problems:
- If I prefer suppressing errors, I cannot do so with any granularity;
always setting an re
|
12/29/2009 10:25:47 AM
|
6
|
...@oeri.ch (Hans-Peter Oeri)
|
is_array on objects with ArrayAccess or Iterator implementations
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?
|
12/28/2009 4:30:21 PM
|
8
|
cpri...@warpmail.net (Clint Priest)
|
Bug #48843
Hello,
sorry, but i can not leave comments to Bugs with status Bogus:
http://bugs.php.net/bug.php?id=48843
Is this Bug really fixed/complete discovered ? In 5.3.1 my logfile is still
flooded with "deprecated" Messages.
PHP-Settings are
log_errors = OFF
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
timezone is also set which was in relation to duplicate reports:
date.timezone = "Europe/Berlin"
how to solve this if it is really not a bug?
Thanks,
Andre
|
12/28/2009 10:23:01 AM
|
3
|
andre.hueb...@gmx.de (=?iso-8859-1?Q?Andre_H=FCbner?=)
|
PHP 6 Bug Summary Report
PHP 6 Bug Database summary - http://bugs.php.net/
Num Status Summary (106 total -- which includes 46 feature requests)
===============================================[*General Issues]==============
50189 Open [PATCH] - unicode byte order difference between SPARC and x86
===============================================[Apache related]===============
47061 Open User not logged under Apache
===============================================[Apache2 related]==============
44083 Open virtual() not outputting results if zlib.output_compression = On
=====================
|
12/28/2009 10:00:02 AM
|
0
|
intern...@lists.php.net
|
PHP 5 Bug Summary Report
PHP 5 Bug Database summary - http://bugs.php.net/
Num Status Summary (1560 total -- which includes 1016 feature requests)
===============================================[*Directory/Filesystem functions]
49620 Suspended is_writeable does not work using netshare and normal user rights
50542 Assigned scandir() cannot open UNC paths since PHP 5.3.1
===============================================[*General Issues]==============
48597 Open Unclosed array keys break space escaping in $_GET/POST/REQUEST
50314 Verified File upload problem with typo in form
50512 Open Yum
|
12/28/2009 9:30:05 AM
|
0
|
intern...@lists.php.net
|
Test OpenGrok installation (LXR replacement?)
Hi,
Since LXR hasn't been updating since the shift to SVN, I've been
investigating bringing it back. Today, though, I came across OpenGrok
which appears to be a far more modern implementation of the same thing,
using Lucene as the back end. I've set up a test installation of it at
http://php-og.mgdm.net if anyone is interested in playing with it.
Advantages seem to be:
* It's really quite fast
* It has a nicer UI, in my opinion
* It's not too hard to set up
* It handles multiple branches *relatively* well
* It does incremental indexing, which I don't think LXR does
It has t
|
12/27/2009 9:17:58 PM
|
5
|
mich...@no-surprises.co.uk (Michael Maclean)
|
Are there zend classes "hidden" from php?
Hi!
As some already know, I'm using the holidays to prepare a proposal for
error handling in extensions
(https://saintcyr.oeri.ch/trac/php-intl/wiki/ErrorHandling).
Digging through many zend internals, I wonder if there is a possibility
to use a common ancestor class without cluttering namespaces in php.
Something like
class CommonErrorThings;
class ResourceBundle extends CommonErrorThings;
class Collator extends CommonErrorThings;
in which CommonErrorThings is invisible to PHP and
ResourceBundle/Collator offered to the user.
Any doc and/or example link would be greatly a
|
12/27/2009 4:01:53 PM
|
0
|
...@oeri.ch (Hans-Peter Oeri)
|
Unsetting loop variables at the end of the loop
PHP's documentation for foreach states that if you iterate by reference
[foreach ($ii as &$i) ...], you should unset $i after the loop. $i
still points to the last element of the array - updating $i or reusing
it will update the last element of the array.
In short, why doesn't PHP automatically unset $i after the loop? I
can't think of too many cases where you would want to hold on to that
reference after you exit the loop, but I can think of a lot of scenarios
where a user could accidentally tamper the array by using $i in a
different context later on (especially since loop
|
12/27/2009 12:56:22 PM
|
19
|
mwac...@cornellsun.com (Mike Wacker)
|
Proposal: allow for includes in php.ini
NOTE: I just remembered there -is- a config-file-scan-dir option at
compile time. However, what about doing away with this and making it
inline in php.ini, the syntax can match mysql, as it uses ini files as
well.
This mainly will help with programatically creating PHP-FPM pool
config files, but could open up to other distro-specific or helpful
things.
This could allow for say, Ubuntu's php5-apc package to not modify
php.ini, but include an apc.ini in /etc/php5/conf.d/ for example
(which it might actually do already. I can't install it without
messing up my box as I compile my ow
|
12/23/2009 12:40:17 PM
|
15
|
mike...@gmail.com (Michael Shadle)
|
[PATCH] zend_parse_method_parameters_ex: don't ignore flags
--------------070606050500070906060800
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hi!
As of now, zend_parse_method_parameters_ex does ignore the ex-flags if
called in a procedural context.
NB: Calling it in a procedural context is explicitely handled in the
code! It's not a false use of the function.
I suppose, the body was copied from zend_parse_method_parameters and the
"flags" correction got lost in one case.
HP
--------------070606050500070906060800
Content-Type: text/x-patch;
name="zend_parse_method_parameters_ex.diff"
Content-T
|
12/23/2009 12:05:49 PM
|
1
|
...@oeri.ch (Hans-Peter Oeri)
|
ignore_user_abort=true for sapi/cli
Can anyone think of a situation where you actually want our current
ignore_user_abort=false setting for the cli sapi?
-Rasmus
|
12/23/2009 8:27:14 AM
|
5
|
ras...@lerdorf.com (Rasmus Lerdorf)
|
PHP 5.3.2RC1 Testing
The first release candidate of 5.3.2 was just released for testing
and can be downloaded here:
http://downloads.php.net/johannes/php-5.3.2RC1.tar.bz2
MD5 (php-5.3.2RC1.tar.bz2) = b8dcc0e281c73f2f8d7f2df5eaba60d4
http://downloads.php.net/johannes/php-5.3.2RC1.tar.gz
MD5 (php-5.3.2RC1.tar.gz) = 0ef10ff576b1eae5380e339df470d6c0
The windows binaries are available at: http://windows.php.net/qa/
This is a maintenance release fixing quite many issues. The next RC will
be out after the holiday season. To make this possible, please test this
RC against your code base and report any pro
|
12/22/2009 11:48:06 PM
|
0
|
johan...@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=)
|
[PATCH] Fix for 32 bits limit on file size (see bug 48886)
--000e0ce0b72670afa6047b529aeb
Content-Type: multipart/alternative; boundary=000e0ce0b72670af98047b529ae9
--000e0ce0b72670af98047b529ae9
Content-Type: text/plain; charset=ISO-8859-1
Hi,
I'm not a C developer, so I can't really help with the attached patch.
However, I've tried it with PHP 5.3.0 version I have and it does what it
claims, that is, it gives correct behaviour for the following functions:
filesize, fstat, stat when used on file > 4GB on a 32 bits machine.
Currently, php 5.x doesn't give the correct output for this code (on my
32bits server):
echo filesize("path/to/
|
12/22/2009 3:10:15 PM
|
2
|
boite.pour.s...@gmail.com (X Ryl)
|
How does the interpreter work
Hi all,
I would like to learn more about how the interpreter works, but I was
unable to find good documents on the web. Basically I am thinking on
something about allocation of variables, how does object creation work
and such stuff. Maybe something on the overall architecture of PHP
would be of interest too.
In java world there is the JVM specification, I hoped there is
something for PHP too.
Best regards and thanks for all help,
Christian
|
12/21/2009 1:56:08 PM
|
6
|
grobme...@gmail.com (Christian Grobmeier)
|
PHP 6 Bug Summary Report
PHP 6 Bug Database summary - http://bugs.php.net/
Num Status Summary (107 total -- which includes 46 feature requests)
===============================================[*General Issues]==============
50189 Open [PATCH] - unicode byte order difference between SPARC and x86
===============================================[Apache related]===============
47061 Open User not logged under Apache
===============================================[Apache2 related]==============
44083 Open virtual() not outputting results if zlib.output_compression = On
50130 Feedback Segf
|
12/21/2009 10:00:02 AM
|
0
|
intern...@lists.php.net
|
PHP 5 Bug Summary Report
PHP 5 Bug Database summary - http://bugs.php.net/
Num Status Summary (1584 total -- which includes 1014 feature requests)
===============================================[*Directory/Filesystem functions]
49620 Suspended is_writeable does not work using netshare and normal user rights
===============================================[*General Issues]==============
48597 Open Unclosed array keys break space escaping in $_GET/POST/REQUEST
50314 Verified File upload problem with typo in form
50512 Open Yuml is missing in HTML translation table
==========================
|
12/21/2009 9:30:06 AM
|
0
|
intern...@lists.php.net
|
is_a() versus instanceof
Hi,
is it intended to have different behaviours of is_a() and instanceof?
Let's assume you have the following code snippets:
class foo{}
class baz{} //<-you have a typo here, want to write bar
if($foo instanceof bar){
...
}
// runs without any notification
and
if(is_a($foo, bar)){
...
}
// runs with an undefined constant bar notification
I think the instanceof solution can cause problems, because you can not
trigger the problem. What do you think?
Johannes
|
12/19/2009 12:42:00 AM
|
5
|
johanne...@gmx.net ("Johannes Mueller")
|
SVN Account Request: wayne
I am part of the team developing a PHP runtime for IBM's ProjectZero (www.projectzero.org). As part of this work we are developing a large number of new PHPT tests, as well as some backports/fixes to other tests. So I'd like access to the PHPT repository
|
12/18/2009 12:13:23 PM
|
0
|
andr...@uk.ibm.com ("Wayne Andrews")
|
Possible support to DirectoryIterator to be include_path aware via flag
Hi guys,
With new namespace inclusions, standards group releasing a common
autoloader, etc, I'm felling the necessity of something.
Basically, I'm suggesting to follow the same way SplFileInfo does,
with a few difference.
Currently, SplFileInfo is include_path aware with anything defined.
DirectoryIterator is not include_path aware, and trying something like:
$dirIterator =3D new DirectoryIterator('Zend/Form/Element');
Will raise an UnexpectedValueException. Looking at constructor
prototype, we have this:
DirectoryIterator::__construct(string $path);
My suggesting is t
|
12/17/2009 4:19:04 PM
|
3
|
guilhermebla...@gmail.com (Guilherme Blanco)
|
PHP 5.2.12 Released!
The PHP development team would like to announce the immediate
availability of PHP 5.2.12. This release focuses on improving the
stability of the PHP 5.2.x branch with over 60 bug fixes, some of which
are security related. All users of PHP 5.2 are encouraged to upgrade to
this release.
Security Enhancements and Fixes in PHP 5.2.12:
- Fixed a safe_mode bypass in tempnam() identified by Grzegorz
Stachowiak. (CVE-2009-3557, Rasmus)
- Fixed a open_basedir bypass in posix_mkfifo() identified by Grzegorz
Stachowiak. (CVE-2009-3558, Rasmus)
- Added "max_file_uploads" INI directive, whic
|
12/17/2009 3:15:50 PM
|
0
|
i...@ilia.ws (Ilia Alshanetsky)
|
SVN Account Request: fat
Contribute in sapi/fpm in order not to bother tony2001
|
12/17/2009 10:18:14 AM
|
0
|
jer...@loyet.net ("Jérôme Loyet")
|
[PATCH] bug when requesting a non existing file
--001517741218f32596047adb9e9a
Content-Type: text/plain; charset=ISO-8859-1
There is a bug in fpm_main.c. After accepting a request, it's
initialized and SG(request_info).path_translated must be set. If it's
not set (NULL) nothing is done and the php_execute_script is called
without having php_fopen_primary_script() called. It causes segfault:
1- call several time a non existant page (/noexistent.php)
2- call several time an existant page (/test.php)
3- call a non existant page (/noexistent.php) --> the child handling
this request segfaults
The solution is to return a 404 when
|
12/16/2009 5:13:09 PM
|
1
|
jer...@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=)
|
[PATCH] bug: some event from parent might be triggered by children
--0015177404c6020ca6047ada3ce9
Content-Type: text/plain; charset=ISO-8859-1
hi tony,
this patch correct a behaviour that could happened randomly, depending
on the event lib used (epoll, poll, kqueue, ...). There is some case
in which an event created by the parent process can be triggered in a
child.
This patch corrects this by checking if fpm_globals.is_child is set
and return directly in this case.
++ Jerome
--0015177404c6020ca6047ada3ce9
Content-Type: text/plain; name="php-fpm.no_event_if_child.patch.txt"
Content-Disposition: attachment;
filename="php-fpm.no_event_i
|
12/16/2009 3:33:55 PM
|
2
|
jer...@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=)
|
[PATCH] typo: make arguments list clearer
--0016e646926a48e198047ada0b25
Content-Type: text/plain; charset=ISO-8859-1
Hi tony,
here is a patch which makes php-fpm consistent about command line arguments.
As php-fpm won't handle file execution from command line, it's not
necessary to let extra or wrong arguments to be used. With this patch,
it returns usage() if it's not a valid arg.
++ Jerome
--0016e646926a48e198047ada0b25
Content-Type: text/plain; name="php-fpm.optarg_clean.patch.txt"
Content-Disposition: attachment; filename="php-fpm.optarg_clean.patch.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g
|
12/16/2009 3:20:17 PM
|
1
|
jer...@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=)
|
[BUG] fpm : bugs with epoll
Hi
I just figured out a bug with epoll on the last php-fpm version from svn.
It seems that with epoll only (no problem with poll or select -- don't
have a freebsd ready to check kqueue), the catch_worker_output is
buggy.
With catch_workers_output set to "no", all output to stdout or stderr
from children are sent to /dev/null.
With catch_workers_output set to "yes", output to stdout or stderr
from children are sent through 2 pipes to the parent process. The
parent process has an event on reading on those pipes. When a child
write to one of the pipes, the parent write to the lo
|
12/15/2009 4:08:40 PM
|
2
|
jer...@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=)
|
SVN Account Request: stewartlord
Contributing to a proof-of-concept branch for the PHP website.
|
12/15/2009 9:27:00 AM
|
0
|
ste...@ambitious.ca ("Stewart Lord")
|
safe_address optimization for 64 bit size_t for platforms other than x86_64.
--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
On non x86_64 platforms current implementation of safe_address uses doubles
for 64 bit php which is very expensive on some architectures e.g sparc.
safe_address function calculates nmemb * size + offset and it want to make
sure that it output doesn't overflow. My colleague Richard Smith suggested a
platform independent mechanism to avoid double logic for most common cases
(>99%). In this proposed optimization we can check if the inputs are
sufficiently large enough so that overflow
|
12/15/2009 2:22:03 AM
|
0
|
basant.kukr...@gmail.com (Basant Kukreja)
|
[PATCH] fpm/typo: change some log about dynamic + homogenize log message about pool
--0016e644cd9656775b047ab5f4fd
Content-Type: text/plain; charset=ISO-8859-1
Hi tony,
There is several things in this patch:
1- makes log message about pool concistent. I set it to "[pool %s]
message". Before there where different variants:
pool %s,
foo (pool %s) bar
[pool %s]
[%s]
2- corrects some log messages which were not very meaningful for end users
3- Some log level have been switched from NOTICE to DEBUG, so that the
log_file in normal operation would not be a nightmare to read (with a
lot of anoying and useless messages for end users)
Hope it helps
++ Jerome
|
12/14/2009 8:16:53 PM
|
10
|
jer...@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=)
|
PHP 6 Bug Summary Report
PHP 6 Bug Database summary - http://bugs.php.net/
Num Status Summary (108 total -- which includes 46 feature requests)
===============================================[*General Issues]==============
50189 Open [PATCH] - unicode byte order difference between SPARC and x86
===============================================[Apache related]===============
47061 Open User not logged under Apache
===============================================[Apache2 related]==============
44083 Open virtual() not outputting results if zlib.output_compression = On
50130 Open Segf
|
12/14/2009 10:00:00 AM
|
0
|
intern...@lists.php.net
|
PHP 5 Bug Summary Report
PHP 5 Bug Database summary - http://bugs.php.net/
Num Status Summary (1572 total -- which includes 1011 feature requests)
===============================================[*Directory/Filesystem functions]
49620 Suspended is_writeable does not work using netshare and normal user rights
===============================================[*General Issues]==============
48597 Open Unclosed array keys break space escaping in $_GET/POST/REQUEST
50314 Verified File upload problem with typo in form
===============================================[*Mail Related]================
50404
|
12/14/2009 9:30:07 AM
|
0
|
intern...@lists.php.net
|
[PATCH] fpm/bug: posix call is not POSIX compliant
--0016e64c06167f3e63047aa35fdd
Content-Type: text/plain; charset=ISO-8859-1
Hi tony,
in the FPM config.m4 the command "find" is used to find source file:
PHP_FPM_FILES=`cd $abs_srcdir/sapi/fpm && find fpm/ \( -name *.c -not
-name fpm_trace*.c \) -exec printf "{} " \;`
But the -not argument is not POSIX compliant and is not recognized on
several unix as OpenBSD. This should be replaced by \! which is, of
course, recognized by linux also.
The attached patch corrects this.
++ Jerome
--0016e64c06167f3e63047aa35fdd
Content-Type: text/plain; charset=US-ASCII; name="php-fpm.
|
12/13/2009 10:06:47 PM
|
0
|
jer...@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=)
|
[PATCH] fpm/feature: apache_like or dynamic spawning (for testing)
--0050450181023f13ae047aa0d995
Content-Type: text/plain; charset=ISO-8859-1
Hi all,
I spent some time working on the missing apache_like feature in FPM.
The attached patch is the first version and is for testing.
Changes:
1- rename apache_like to dynamic (in conf file and in source file)
2- add the dynamic spawning algorithm
The algorithm is based on the mod_worker from apache httpd
Algorihtm:
check start_servers, min_spare_servers, max_spare_servers
if start_server is not set, set it to (min_spare + (max_spare - min_spare) / 2)
for each pool, set a variable spawn_rat
|
12/13/2009 7:06:04 PM
|
2
|
jer...@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=)
|
[PATCH] fpm/typo: replace spaces with tabs
--0015177404c61cab99047a9f92a3
Content-Type: text/plain; charset=ISO-8859-1
Hi Tony
The attached patch correct some typo in fpm: replacing spaces by tabs
as in all files in fpm.
++ Jerome
--0015177404c61cab99047a9f92a3
Content-Type: text/plain; name="php-fpm.typo_space.patch.txt"
Content-Disposition: attachment; filename="php-fpm.typo_space.patch.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g363hf3z0
SW5kZXg6IHNhcGkvZnBtL2ZwbS9mcG1fYXRvbWljLmgKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc2FwaS9mcG0v
ZnBtL2
|
12/13/2009 5:34:36 PM
|
0
|
jer...@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=)
|
[PATCH] fpm/feature: show function and line in error_log only on debug
--0050450169e3de0ead047a9ecbfc
Content-Type: text/plain; charset=ISO-8859-1
Hi tony,
in the FPM error_log, the function and the line, from which the log
function is called, are written to the error_log as show above:
Dec 13 17:30:18.81042 [NOTICE] fpm_event_init_main(), line 87:
libevent: using epoll
It's debug information and it's not relevant but for developers. The
attached patch change this behaviour showing function and line only
when the log_level is set to debug.
Moreover, it adds the PID of the process which call the log function
but only in with a debug loglevel.
|
12/13/2009 4:39:10 PM
|
1
|
jer...@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=)
|
[PATCH] fpm/bug: handle custom log_level when not daemonized
--001636d34a9bdb6a17047a9e84a4
Content-Type: text/plain; charset=ISO-8859-1
Hi tony,
There is a small bug when fpm is not daemonized. In this case, the
log_level is not set and the default (notice) is used. When the
damonize option is used, it works well.
The patch attached corrects it.
Hope it helps
++ Jerome
--001636d34a9bdb6a17047a9e84a4--
|
12/13/2009 4:19:19 PM
|
1
|
jer...@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=)
|
PHP 5.2.12RC4 Testing
The fourth release candidate of 5.2.12 was just released for testing and =
can be downloaded here:
http://downloads.php.net/ilia/php-5.2.12RC4.tar.bz2 (md5sum: =
b7950cb299adaf5afd9debf280cd1f6c)
The windows binaries are available at: http://windows.php.net/qa/
If no problems creep up we should still be on track with the final =
release next week.
Ilia Alshanetsky
PHP 5.2 Release Master
|
12/10/2009 9:15:16 PM
|
0
|
i...@prohost.org (Ilia Alshanetsky)
|
Opcode EXT_FCALL_BEGIN and EXT_FCALL_END?
Hi,
I am wondering what the opcode EXT_FCALL_BEGIN and EXT_FCALL_END is used
for?
Thanks
-- Mathieu Suen
|
12/7/2009 2:13:25 PM
|
3
|
mathieu.s...@easyflirt.com (Mathieu Suen)
|
Towards 5.3.2
Hi,
so, 5.3.1 out just a few weeks but due to the merge-based process and
some delays in there the changelog for 5.3 is already quite long and so
I'd like to restart the release process there soon.
My current plan has one RC this week, one more before Christmas, maybe
Tue 22nd, then a Christmas break, a RC early/mid January and release
late January. I don't think we could be faster but having some RC before
Christmas might get some people to test it on their new PCs they get,
people who won't test otherwise, while on the other side I don't expect
too much actual work being done d
|
12/7/2009 1:37:49 PM
|
9
|
johan...@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=)
|
PHP 6 Bug Summary Report
PHP 6 Bug Database summary - http://bugs.php.net/
Num Status Summary (107 total -- which includes 46 feature requests)
===============================================[*General Issues]==============
50189 Open [PATCH] - unicode byte order difference between SPARC and x86
===============================================[Apache related]===============
47061 Open User not logged under Apache
===============================================[Apache2 related]==============
44083 Open virtual() not outputting results if zlib.output_compression = On
50130 Open Segf
|
12/7/2009 10:00:00 AM
|
0
|
intern...@lists.php.net
|
PHP 5 Bug Summary Report
PHP 5 Bug Database summary - http://bugs.php.net/
Num Status Summary (1561 total -- which includes 1006 feature requests)
===============================================[*Directory/Filesystem functions]
49620 Suspended is_writeable does not work using netshare and normal user rights
===============================================[*Encryption and hash functions]
50334 Assigned crypt ignores sha512 prefix
===============================================[*General Issues]==============
48597 Open Unclosed array keys break space escaping in $_GET/POST/REQUEST
50314 Verified
|
12/7/2009 9:30:09 AM
|
0
|
intern...@lists.php.net
|
PHP_5_3 GC segfaults
I'm seeing some GC-related segfaults in current PHP_5_3. I haven't had
time to dive into it very far. All I have is a couple of bts and the
request that triggers it, but it is a gallery2 request and there is a
lot of code there. I'll see if I can get it down to something
manageable. The first bt is:
Program received signal SIGSEGV, Segmentation fault.
0x00007f4d6b3df8f1 in gc_zval_possible_root (zv=0x232e098) at
/home/rasmus/src/php/php-src/branches/PHP_5_3/Zend/zend_gc.c:143
143 GC_ZOBJ_CHECK_POSSIBLE_ROOT(zv);
(gdb) bt
#0 0x00007f4d6b3df8f1 in gc_zval_possible_root (zv=0x2
|
12/6/2009 6:14:33 AM
|
0
|
ras...@lerdorf.com (Rasmus Lerdorf)
|
Persistent cURL handles.
Hi everyone.
I have some changes for persistent curl handles. I think this should
improve performance. If you agree, please review the code for
correctness and perhaps consider adding it to the cURL extension.
Some changes are obviously needed. The references to "fap" and/or "FAP"
refer to our company's modifications and should probably be removed or
changed.
Happy hacking!
Get it here:
http://www.manvscode.com/download/curl_fap.tar.gz
|
12/5/2009 6:21:30 PM
|
0
|
...@manvscode.com (Joseph Marrero)
|
Stream: Cast and Seek
Hello,
I'm working on the use of a PHP SSH2 Stream returned by ssh2_shell
function with stream_select() function. Within the PHP code, before
being used into the select() C function, a stream have to be "casted"...
The problem is that I don't really know what is it and how it generally
works.
So, can someone explain to me what means "cast" and "seek" streams ?
(In fact, I have to cast a php_ssh2_channel_stream)
Thanks a lot.
Regards,
Samuel ROZE.
|
12/4/2009 11:01:13 PM
|
0
|
samuel.r...@gmail.com (Samuel ROZE)
|
FPM is available in a separate SVN branch
Hello all.
I'm glad to announce that we now have FPM SAPI available for testing in a separate SVN branch.
You can check out its sources using the following command:
svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM php_5_3_fpm
Building FPM is as easy as `./configure --enable-fpm && make install`.
After that you need to adjust the default config file (installed into $prefix/etc)
and run `php-fpm`.
For those who don't know what FPM is: FPM (FastCGI Process Manager) is an alternative
PHP FastCGI implementation with some additional features useful for heavy-
|
12/4/2009 12:53:52 PM
|
13
|
t...@daylessday.org (Antony Dovgal)
|
Inspecting opcode
Hi,
Does anyone know how to inspect the opcode of a php file?
Thanks
-- Mathieu Suen
|
12/3/2009 3:51:27 PM
|
0
|
mathieu.s...@easyflirt.com (Mathieu Suen)
|
accessing PHPs AST
Hello,
I'm trying to alter existing PHP code by transforming its AST. From what
I've read, the Zend Engine does a one-pass compile and thus offers no way to
access the AST. (Whether this is a good or a bad idea doesn't really matter
at this point, so let us stay away from that discussion for now.)
Other possible solutions I've come across are phc [1], rphp [2] and PHP
Depend [3]. Unfortunately, the first does not support PHP 5.3, the second is
still in a *very* early stage of development and the third does not allow
'unparsing' and is not particularly fast either (which is only a mi
|
12/2/2009 5:35:05 PM
|
1
|
pigu...@boerse-go.de ("Raphael Pigulla")
|
An SSH shell like a stream
Hi,
In the description of ssh2_shell, there's:
"Open a shell at the remote end and allocate a stream for it."
So the result of this command must be a stream. Well, it's good, I'll
use fgets, fwrite and stream_* functions ! BUT, the problem is that I
can't use a SSH2 Stream with the stream_select function...
Warning: stream_select() [function.stream-select]: cannot represent a
stream of type SSH2 Channel as a select()able descriptor in XX on line
XX
Why I cannot ? Is there a workaround ?
Regards,
Samuel ROZE.
|
12/1/2009 9:19:39 PM
|
2
|
samuel.r...@gmail.com (Samuel ROZE)
|
SVN Account Request: spacemonkey
Working on the MongoDB extension for PHP, by request of Kristina Chodorow (kristina@10gen.com). As well, working on related documentation updates.
|
12/1/2009 4:15:25 AM
|
0
|
mi...@spacemonkeylabs.com ("Mitch Pirtle")
|
[PATCH] - Improving multi-threaded performance by propagating TSRMLS_C
When running a benchmarking workload on PHP that was configured with
multi-threading support (--enable-maintainer-zts) I noticed that
pthread_get_specific is invoked many times during the processing of a
request. PHP code invokes TSRMLS_FETCH() (which ends up invoking
ts_resource_ex) in a number of places.
Caller/callee data from Sun Studio's collector/analyzer showed the following:
Attr. Excl. Incl. Name
User CPU User CPU User CPU
sec. sec. sec.
178.105 185.460 363.564 _emalloc
96.568 114.320 210.888 _efree
27.960 89.232 343.90
|
11/30/2009 1:32:27 PM
|
8
|
yoa...@gmail.com (Arvind Srinivasan)
|
PHP 6 Bug Summary Report
PHP 6 Bug Database summary - http://bugs.php.net/
Num Status Summary (106 total -- which includes 45 feature requests)
===============================================[*General Issues]==============
50189 Open [PATCH] - unicode byte order difference between SPARC and x86
===============================================[Apache related]===============
47061 Open User not logged under Apache
===============================================[Apache2 related]==============
44083 Open virtual() not outputting results if zlib.output_compression = On
50130 Open Segf
|
11/30/2009 10:00:02 AM
|
0
|
intern...@lists.php.net
|
PHP 5 Bug Summary Report
PHP 5 Bug Database summary - http://bugs.php.net/
Num Status Summary (1551 total -- which includes 1000 feature requests)
===============================================[*Directory/Filesystem functions]
49620 Suspended is_writeable does not work using netshare and normal user rights
===============================================[*General Issues]==============
48597 Open Unclosed array keys break space escaping in $_GET/POST/REQUEST
===============================================[*Unicode Issues]==============
49687 Assigned utf8_decode xml_utf8_decode vuln
===========
|
11/30/2009 9:30:07 AM
|
0
|
intern...@lists.php.net
|
SVN Account Request: volker
- development of php core
- translations
( already had an account few years ago but stopped due to time issues )
|
11/29/2009 6:33:52 PM
|
2
|
...@vrmx.eu ("Volker Richter")
|
php id string
Hi all,
Starting with version 5.3 php checks id string when it loads the extensions
to match its own one and it also shows this string in PHP Extension Build
line of phpinfo(). That's great. This line contains api#, threadsafe, and
compiler. So it's almost all important thigs to check and make sure that a
particular module is binary-compatible with php core. All things, except
just one, the CPU. It's known that Windows runs on many CPUs, Solaris runs
fine under sparc, sparc64, x86, and x86_64. Needless to mention linux and
*bsd systems (I guess they are running on everything).
|
11/29/2009 10:29:42 AM
|
13
|
d...@yandex.ru ("jvlad")
|
Backporting bypass_shell and posix_pipe() from trunk to 5.3
Some while ago, I committed a patch to trunk which adds the shell_bypass =
option to proc_open() on UNIX. I'd like to backport that patch to 5.3.2, =
along with posix_pipe(), which helps quite a bit in using it. The patch =
can be found at <http://pastebin.ca/raw/1691644>. It's been tested and =
run through valgrind and the Clang analyzer. Any reason I shouldn't =
commit it? I tried to get it into 5.3.0 but the consensus at the time =
was "let's get this out the door already" :).
-- Gwynne
|
11/28/2009 10:21:23 PM
|
2
|
gwy...@darkrainfall.org (Gwynne Raskind)
|
Using a stream function into another module
Hello,
I want to use two stream functions (stream_array_to_fd_set and
stream_array_from_fd_set) in a module (/etc/modulename/modulename.c). To
use them, i included the streamsfuncs.h file, with:
#include "ext/standard/streamsfuncs.h"
The problem is that when I want to compile, i've these errors:
/home/samuel/Développement/workspaces/C-Cpp/PHP_5_3/ext/sockets/sockets.c:877: undefined reference to `stream_array_to_fd_set'
/home/samuel/Développement/workspaces/C-Cpp/PHP_5_3/ext/sockets/sockets.c:884: undefined reference to `stream_array_to_fd_set'
/home/samuel/Développement/worksp
|
11/27/2009 5:53:52 PM
|
4
|
samuel.r...@gmail.com (Samuel ROZE)
|
PHP 5.2.12RC3 Testing
On behalf of Ilia (so the subject typo won't hide the RC3 from testers):
The second release candidate of 5.2.12 was just released for testing
and can be downloaded here:
http://downloads.php.net/ilia/php-5.2.12RC3.tar.bz2 (md5sum:
92ebb6af46e3c0f4d4708199575cba57)
The windows binaries are available at: http://windows.php.net/qa/
This is a quick correction release, that addresses a build problem
introduced by autoconf updates performed in RC2. If you've had issues
building RC2, the RC3 should address the problem. If no other
problems creep up we should still be on track with t
|
11/27/2009 3:40:56 PM
|
0
|
pierre....@gmail.com (Pierre Joye)
|
PHP 5.2.12RC2 Testing
The second release candidate of 5.2.12 was just released for testing and =
can be downloaded here:
http://downloads.php.net/ilia/php-5.2.12RC3.tar.bz2 (md5sum: =
92ebb6af46e3c0f4d4708199575cba57)
The windows binaries are available at: http://windows.php.net/qa/
This is a quick correction release, that addresses a build problem =
introduced by autoconf updates performed in RC2. If you've had issues =
building RC2, the RC3 should address the problem. If no other problems =
creep up we should still be on track with the final release next week.
Ilia Alshanetsky
PHP 5.2 Release M
|
11/27/2009 3:35:29 PM
|
0
|
i...@prohost.org (Ilia Alshanetsky)
|
Re: PHP 5.2.12RC2 Testing
Ilia Alshanetsky wrote:
> The second release candidate of 5.2.12 was just released for testing
FWIW, I'm getting a
../configure: 91396: Syntax error: "fi" unexpected
when trying to run the configure script (on Ubuntu 8.04) like so:
../configure --enable-mbstring --with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/apache/bin/apxs --with-xmlrpc --with-zlib
--with-openssl --with-mhash --with-ldap --with-gd
bye, Dirk
|
11/27/2009 10:23:42 AM
|
1
|
d...@haun-online.de (Dirk Haun)
|
autoconf version check on trunk?
There was some discussion on the version (2.13 vs newer) of autoconf
to use for trunk but I'm not sure whether there was any consensus.
It looks like autoconf2.13 can't be used with trunk and therefore the
autoconf version check inside build/buildcheck.sh needs to be updated.
I get the following error when I try to configure trunk with autoconf
2.13 (this is on Ubuntu [Hardy]). autoconf2.61 works fine.
Checked out revision 291346.
% ./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
rebuilding aclocal.m4
rebuilding configure
rebuilding acc
|
11/27/2009 8:56:25 AM
|
5
|
yoa...@gmail.com (Arvind Srinivasan)
|
PHP 5.2.12RC2 Testing
The second release candidate of 5.2.12 was just released for testing and =
can be downloaded here:
http://downloads.php.net/ilia/php-5.2.12RC2.tar.bz2 (md5sum: =
3952089018d531b161cef35f0f6182ec)
The windows binaries will be available shortly at: =
http://windows.php.net/qa/
We've had a fairly small number of changes since RC1, so I think we are =
in good shape for a final release. If nothing major comes up, I =
anticipate the final being released next week. To ensure that the =
release is solid, please test this RC against your code base and report =
any problems that you enco
|
11/27/2009 3:33:26 AM
|
0
|
i...@prohost.org (Ilia Alshanetsky)
|
Re: [PHP-DEV] Re: svn: / pecl/pdo_4d/trunk/config.m4 pecl/pdo_ibm/trunk/config.m4 pecl/pdo_informix/trunk/config.m4 pecl/pdo_user/trunk/config.m4 php/php-src/branches/PHP_5_2/acinclude.m4 php/php-s
hi Sebastian,
open a bug please :)
On Wed, Nov 25, 2009 at 7:54 AM, Sebastian Bergmann
<sb@sebastian-bergmann.de> wrote:
> Rasmus Lerdorf wrote:
>> rasmus =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 Wed, 25 Nov 2009 01:30:06 +0000
>>
>> Revision: http://svn.php.net/viewvc?view=3Drevision&revision=3D291283
>>
>> Log:
>> Someone strap down Jani and give him a sedative please.
>> This makes our toolchain work with the latest versions
>> of autoconf and avoids a lot of end-user grief.
>
> =A0Without autoconf2.13 installed, I get the following on my Ubun
|
11/25/2009 6:57:07 AM
|
6
|
pierre....@gmail.com (Pierre Joye)
|
openssl supported algorithms
--------------090302030801020501040901
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
The openssl extension is way to restrictive in the algorithms it
supports, i.e. no support for SHA265 which is starting to become the
standard algo to use, etc.. Rather than having to always add more
constants and additional logic for any new algorithms, I'd like to
change the sign and verify functions to not only accept the current
integers, but also a string so the EVP_get_digestbyname function can be
used.
So while still supporting something
|
11/24/2009 5:27:22 PM
|
3
|
rricha...@cdatazone.org (Rob Richards)
|
bug-id ID: 50275
Hi,
i'd like to discuss the implications of this issue further, do i need to apply for listmempership shomewhere or do i just start here... not sure how it works, so please tell me
kind regards,
Michael
|
11/24/2009 4:55:30 PM
|
1
|
...@xtivate.de ("Michael Saenger")
|
[PATCH] potential null dereference in ext/ftp/ftp.c
--------------090009050208080107030100
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Hi,
Gwynne pointed me at the clang static analyser earlier on today, and so
I've run it against current PHP_5_3. In the course of messing with it,
it noticed a potential null dereference in ext/ftp - I've attached a
one-liner to fix it.
Michael
--------------090009050208080107030100
Content-Type: text/plain;
name="ftp-patch.txt"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="ftp-patch.txt"
SW5kZXg6IGV4dC9mdHAvZnRwLmMKPT09PT09PT09PT09P
|
11/24/2009 1:46:29 PM
|
7
|
mich...@no-surprises.co.uk (Michael Maclean)
|
PHP 6 Bug Summary Report
PHP 6 Bug Database summary - http://bugs.php.net/
Num Status Summary (108 total -- which includes 45 feature requests)
===============================================[*General Issues]==============
50189 Open [PATCH] - unicode byte order difference between SPARC and x86
===============================================[*Unicode Issues]==============
50226 Open [PATCH] - Insufficient memory allocation for unicode string
===============================================[Apache related]===============
47061 Open User not logged under Apache
==========================
|
11/23/2009 10:00:02 AM
|
0
|
intern...@lists.php.net
|
PHP 5 Bug Summary Report
PHP 5 Bug Database summary - http://bugs.php.net/
Num Status Summary (1558 total -- which includes 996 feature requests)
===============================================[*Directory/Filesystem functions]
49620 Suspended is_writeable does not work using netshare and normal user rights
===============================================[*General Issues]==============
48597 Open Unclosed array keys break space escaping in $_GET/POST/REQUEST
===============================================[*Network Functions]===========
48167 To be documented undefined function checkdnsrr()
======
|
11/23/2009 9:30:24 AM
|
0
|
intern...@lists.php.net
|
[PATCH] default session serialization
--000e0ce03ba21c4b870478eed0bf
Content-Type: multipart/alternative; boundary=000e0ce03ba21c4b7b0478eed0bd
--000e0ce03ba21c4b7b0478eed0bd
Content-Type: text/plain; charset=ISO-8859-1
Hi,
Attached is a patch (against HEAD) which adapts the default ("php") session
serializer to serialize the whole array using php_var_serialize instead of
calling it once per element.
This simplifies the serialization code, and allows unicode session keys, or
even ascii keys containing the pipe character.
However it would be a significant BC break, as old serialized session
records would be unr
|
11/22/2009 5:16:35 AM
|
3
|
array...@googlemail.com (Arpad Ray)
|
[PATCH] session_set_save_handler(class)
--000e0cdf97b4d149b60478eec018
Content-Type: multipart/alternative; boundary=000e0cdf97b4d149a70478eec016
--000e0cdf97b4d149a70478eec016
Content-Type: text/plain; charset=ISO-8859-1
Attached is a patch (against HEAD, includes tests) which allows users to
extend any session handler in an object oriented fashion.
By extending the new internal class SessionHandler, users can wrap or
override methods of whatever session handler is in use, or implement a
complete custom handler.
Usage notes:
- Calling session_set_save_handler(class) after session_set_save_handler(a,
b, c, d, e, f
|
11/22/2009 5:12:19 AM
|
4
|
array...@googlemail.com (Arpad Ray)
|
NEWS out of sync..
Hi Johannes,
You did forget something: merging back the NEWS stuff to PHP_5_3/NEWS which has
this note:
?? ??? 2009, PHP 5.3.1
# Will be merged in from branches/PHP_5_3_1 once released
# Pleas add stuff under 5.3.2
The next release, can we do it like Ilia does them? The way this process was
done was utter chaos.
--Jani
|
11/21/2009 8:46:39 PM
|
0
|
jani.taski...@sci.fi (Jani Taskinen)
|
Updated RFC: Zend Signal Handling
Lucas and I have re-visited the Zend Signal Handling RFC and have updated the patches for both the 5.3 branch and Trunk:
http://wiki.php.net/rfc/zendsignals
We updated the patches to deal with a bug fix that allows timeouts within the user space shutdown functions, previously multiple timeouts would not occur. To deal with this we reset the signal handlers on a timeout so that the user shutdown function can once again get a signal and behave accordingly.
Per the Chicago developer meeting, it was determined that the windows timeouts are not asynchronous and thus there isn't currentl
|
11/21/2009 5:59:43 AM
|
0
|
sh...@tekrat.com (shire)
|
suggestion about ternary operator
hi all,
Since the new conditionnal operator ternary was introduced in php 5.3,
I'm little confuse about it.
The documentations says :
Since PHP 5.3, it is possible to leave out the middle part of the ternary
operator. Expression expr1 ?: expr3 returns expr1 if expr1 evaluates to
TRUE, and expr3 otherwise.
I think it is not very usefull because most of the time, in PHP, we need
to check the existance only of a var or return a default value.
$foo = isset($myArray['foo']) ? $myArray['foo'] : 'default';
I can't use the new syntax for that :
// raise a warning if $myArr
|
11/21/2009 5:12:29 AM
|
10
|
s...@paradoxal.org (Alban)
|
Intervals representation with brackets
Hello,
I'm working on two classes, Interval and IntervalList which describe
an interval and a list of intervals. These intervals are defined using
the Interval class:
<?php
$interval = new Interval((int) $from, (int) $to);
?>
These intervals can be stored in a list of intervals, using IntervalList:
<?php
$list = new IntervalList();
$list->add($interval_1);
$list->add($interval_2);
?>
IntervalList's functions are:
- inverse(); which returns an IntervalList object
- intersection(); which returns an IntervalList object of intervals
which are contained by every interval o
|
11/20/2009 9:56:54 PM
|
0
|
samuel.r...@gmail.com (Samuel ROZE)
|
SVN Account Request: ondercsn
I have many projects about php ( not coding for an application or website; directly about php functions etc.) and would like to help to improve php. For example asterisk server functions. That's why i need an svn account to help developing of php
|
11/20/2009 5:25:06 PM
|
0
|
coskunon...@hotmail.com ("önder coskun")
|
Bug tracker cannot connect to database
I don't know if this is the right list to report to, but
bugs.php.net is currently non-functional.
Cheers,
Edward
|
11/20/2009 7:38:07 AM
|
0
|
ezy...@MIT.EDU ("Edward Z. Yang")
|
Proposed 5.3.1 Release announcement
The PHP development team would like to announce the immediate
availability of PHP 5.3.1. This release focuses on improving the
stability of the PHP 5.3.x branch with over 100 bug fixes, some of
which are security related. All users are encouraged to upgrade to
this release.
Security Enhancements and Fixes in PHP 5.3.1:
- Added "max_file_uploads" INI directive, which can be set to limit the
number of file uploads per-request to 20 by default, to prevent
possible DOS via temporary file exhaustion. (Ilia)
- Added missing sanity checks around exif processing. (CVE-2009-32
|
11/19/2009 11:24:43 PM
|
0
|
johan...@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=)
|
clarification on maximum string sizes in PHP on 64 bit linux
Folks, I'm hoping someone can clarify for me the limitations that PHP
5.2/5.3/6.0 is expected to put on the size of strings on 64 bit linux.
The php manual documentation for the string type makes the following
note about string size:
"Note: It is no problem for a string to become very large. PHP imposes
no boundary on the size of a string; the only limit is the available
memory of the computer on which PHP is running."
However, it is clear based on the behavior of PHP 5.2 and 5.3 on 64
bit systems with > 2GB of RAM, that PHP string functions do not behave
properly with strings t
|
11/19/2009 8:18:54 PM
|
0
|
m...@bitwarehouse.com (Matt Wirges)
|
Question about buffer size calculation in _php_stream_copy_to_mem_ex
I see the following in _php_stream_copy_to_mem_ex in main/streams/streams.c
int step = CHUNK_SIZE;
int min_room = CHUNK_SIZE / 4;
(..stuff deleted..)
/* avoid many reallocs by allocating a good sized chunk to begin with, if
* we can. Note that the stream may be filtered, in which case the stat
* result may be inaccurate, as the filter may inflate or deflate the
* number of bytes that we can read. In order to avoid an upsize followed
* by a downsize of the buffer, overestimate by the step size (which is
* 2K). */
if (php_stream_stat(src, &ssbuf) == 0 &&
|
11/19/2009 12:42:35 PM
|
0
|
yoa...@gmail.com (Arvind Srinivasan)
|
RFC: Custom Factories (SPL)
--00151744790e3561660478b7f9e3
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hello here!
I'm a big fan of IoC too, and I think that PHP devs really need to have a
look into Inversion of control. Adding this feature to PHP can be useful fo=
r
providing a simple way to detect and manage the object creation process.
The "spl_factory_register" function allows to specify a manner to catch whe=
n
a "new" occurs, and to add an alternative way to manage the creation of
objects, by calling custom factories instead of using the built in "new"
proce
|
11/19/2009 11:50:42 AM
|
0
|
ale...@spiral-project.org (=?UTF-8?Q?Alexis_M=C3=A9taireau?=)
|
RFC: Custom Factories (SPL)
Hi folks,
after discussing the idea with various PHP developers I now felt safe =
enough that it's not a completely stupid idea to post an RFC for it. The =
idea is to add support the registration of custom factories which are =
responsible for instantiating certain classes.
Here is the first draft of my RFC:
http://wiki.php.net/rfc/customfactories
I suggest that we first discuss the implications and usefulness of this =
feature. In a second step I'd need to find some skilled internals wizard =
who can implement it, because not being a C developer myself, all I can =
offer is m
|
11/18/2009 4:06:53 PM
|
0
|
rob...@typo3.org (Robert Lemke)
|
The inconsistencies/flaws of PHP5's object model
--001636e1fb61cd79050478a0f589
Content-Type: text/plain; charset=ISO-8859-1
Hello internals,
I've just occured a syntax problem in the following script:
<?php
class C {
public $n = 1;
}
$o = new C();
$o->f = function () use ($o) {
echo $o->n;
};
$o->f();
?>
The result of this script is "Fatal Error: Call to undefined method C::f()".
I don't know this is the expected result. After trying more tests of
adding/removing properties on the fly, I concluded these
inconsistencies/flaws:
1. There is no way to add/remove instance-level members (both properties and
me
|
11/18/2009 8:23:40 AM
|
0
|
dio...@gmail.com (Jingcheng Zhang)
|
Ability to intercept errors even if set_error_handler has been called
Hello,
In monitoring type extensions such as Xdebug, APM etc it is common to
override zend_error_cb with a custom callback to intercept errors.
This however has a drawback: if user calls set_error_handler the
zend_error_cb does not get called at all for errors that can be
handled in userspace. There are a few approaches to solving this
(namely disabling set_error_handler or overriding set_error_handler)
but neither of them really seems like a good solution.
I made a simple patch that adds always_invoke_error_cb which allows
invoking the zend_error_cb in these cases (it needs to be
|
11/17/2009 6:34:06 PM
|
0
|
mkoppa...@php.net (Mikko Koppanen)
|
[PATCH] - Improving multi-threaded scalability by using emalloc/efree/estrdup instead of malloc/free/strdup in virtual_cwd APIs
Using malloc/free in a multi-threaded process limits its scalability
because of the process-wide lock inside malloc/free. The scalability
of the PHP engine in a multi-threaded process can be improved by
reducing the use of malloc/free/strdup and instead using
emalloc/efree/estrdup wherever possible (at least in the main request
processing code paths).
The code paths in TSRM/tsrm_virtual_cwd.c are invoked quite frequently
and they use malloc/free/strdup. I'd like to submit the following
patches (based on the PHP6 source tree) for review that incorporate
the use of emalloc/efree/estr
|
11/17/2009 1:34:54 PM
|
0
|
yoa...@gmail.com (Arvind Srinivasan)
|
PHP6's future
Greetings Internals
I've been thinking for a while what we should do about PHP6 and its
future, because right now it seems like there isn't much future in it.
PHP6 is already much different in terms of the current coverage, many
merges to HEAD seems like non unicode compliant versions. Meaning even
more work needs to be done to get it on a somewhat stable level than
it already is. I think we should if possible focus abit more on it,
and if it needs it then consider stopping the 5.2 branch so only 5.3 +
HEAD is under active development. I can see that Andrei is listed as
RM on the wi
|
11/17/2009 1:13:36 AM
|
4
|
ka...@php.net (Kalle Sommer Nielsen)
|
Closures and $this
Hi,
since a few months have passed since the last discussion on this topic
and perhaps people had time to gather some experience with the current
closure implementation in PHP 5.3 I'd like to restart the debate on
$this in closures and object extension.
Foreword: The discussion should center on the future behaviour of PHP 6
ONLY. Whether or not a backport is even possible (binary compability
etc.) or should even be done should be topic of a separate discussion
and should *NOT* influence the decision. The ONLY goal of this
discussion should be to agree on a SANE way of implementing
|
11/16/2009 7:15:14 PM
|
17
|
chris...@gmx.net (Christian Seiler)
|
Re: [PHP-DEV] bug when using foreach with references?
>> It would be arbitrarily breaking an explicit reference. I know I have
>> code lying around that relies on multiple loops cleaning up a big
>> complicated multi-level array. I do ugly things with references into
>> that array and it would completely break if PHP magically deleted my
>> references whether they are in the iterator or elsewhere.
>>
>> This has been this way for 6+ years and it is well documented on the
>> http://php.net/foreach page. (see the big red warning box)
Even though, that's a language issue.
Why the hell in php the foreach do not capture the variable p
|
11/16/2009 11:07:02 AM
|
0
|
mathieu.s...@easyflirt.com (Mathieu Suen)
|