[PHP-DEV] PHP 6 Bug Summary Report

2009-11-02 Thread internals
 PHP 6 Bug Database summary - http://bugs.php.net/

 Num Status Summary (103 total -- which includes 45 feature requests)
===[*Compile Issues]==
49270 Open   configure fails if PHP source folder path contains spaces
===[Apache related]===
47061 Open   User not logged under Apache
===[Apache2 related]==
44083 Open   virtual() not outputting results if zlib.output_compression = 
On
===[Arrays related]===
35277 Suspended  incorrect recursion detection
41758 Assigned   SORT_LOCALE_STRING broken for sort() in PHP6
43109 Open   array_intersect() emits unexpected no of notices when 2d array 
is passed as arg
48478 Open   Super-globals cannot be accessed with literal keys
===[COM related]==
45836 Open   cannot use com 
===[Compile Failure]==
42606 Open   unicode/constants.c relies on ICU draft api
44502 Suspended  Compiling ok with MySQL 5.0
49301 Open   HAVE_GLOB is not detected correctly
49421 Open   Make failure with MySQL 6 and PHP 6.0-dev
===[Date/time related]
46948 Assigned   ext/date/lib/parse_tz.c:99: Memory leak: buffer
===[Documentation problem]
49126 Open   unicode_set_error_handler undocumented
===[DOM XML related]==
49463 Open   setAttributeNS(http://www.w3.org/2000/xmlns/,xmlns,blah;) 
produces error
===[Filesystem function related]==
42110 Open   fgetcsv doesn't handle \n correctly in multiline csv record
44034 Open   FILE_IGNORE_NEW_LINES in FILE does not work as expected when 
lines end in \r\n
46688 Open   Return values differ from 5.3 and are also inconsistent
46689 Open   Downcoded notices suggest unfinished code in file system?
46990 Assigned   Passing UTF8 strings to filesystem functions produce wrong 
filenames
49479 Open   move_uploaded_file is dead
===[GD related]===
34992 Assigned   imageconvolution does not respect alpha
43899 Assigned   Problem in displaying right to left connected languages (like 
persian, arabic)
===[HTTP related]=
49273 Open   setcookie() segfaults the php process when adding a positive 
expires value
===[I18N and L10N related]
42471 Open   locale_set_default returns true on invalid locales
===[ICONV related]
48538 Open   iconv_strlen() does not reject invalid charset on PHP6
===[mcrypt related]===
46834 Assigned   Range of mcrypt functions fail on PHP 6.0
===[MySQL related]
44076 Assigned   mysql_result returns nothing with blob
===[ODBC related]=
39756 Open   [PATCH] Crashes in fetching resultsets with LONG ASCII columns 
from MaxDB
===[OpenSSL related]==
25614 Assigned   openssl_pkey_get_public() fails when given a private key
===[PDO related]==
35368 Suspended  PDO query does not work properly with serialize
===[PostgreSQL related]===
48265 Open   Source and result of database have different encodings.
===[Program Execution]
39992 Open   proc_terminate() leaves children of child running
43784 Assigned   escapeshellarg removes % from given string
===[Reflection related]===
49734 Open   toString must return string value
===[Reproducible crash]===
45107 Open   setting ext_dir to ./ (and other ini settings) causes apache 
crash
47756 Open   Segfault on HTML Purifier test suite
===[Scripting Engine problem]=
47154 Open   Object properties unset after setting.
49945 Open   Array in multipart/form-data
===[Session related]==
44860 Open   session_encode() fails for php_binary serializer
===[SimpleXML related]
48601 Open   xpath() returns FALSE for legitimate query
===[SPL 

Re: [PHP-DEV] Seg fault when using active_symbol_table called fromuserspace function.

2009-11-02 Thread Mark Skilbeck

Mark Skilbeck wrote:

Scott MacVicar wrote:

On 1 Nov 2009, at 21:41, Mark Skilbeck wrote:


Scott MacVicar wrote:

On 1 Nov 2009, at 21:09, Mark Skilbeck markskilb...@gmail.com wrote:

[snip]
There is no symbol table as there are no variables. You should check 
if it's NULL before using zend_hash_exists.

Scott


Hi, Scott. I'm having trouble - I added the check to see if the 
symbol table i available, yet it returns false even if I have added 
variables within the function:


[code]
PHP_FUNCTION(sample_var_a_exists)
{
if (!EG(active_symbol_table) ||
!zend_hash_exists(EG(active_symbol_table), a, 
sizeof(a))) {

RETURN_BOOL(0);
}
RETURN_BOOL(1);
}
[/code]

[code]
$a = '';
var_dump(sample_var_a_exists());

function x() {
$a = ''; // Add a symbol to the hash table.
var_dump(sample_var_a_exists()); // Shows bool(false)
}

x();
[/code]

--


You probably want the following to build the symbol table.

if (!EG(active_symbol_table)) {
zend_rebuild_symbol_table(TSRMLS_C);
}

Scott



Yes, that works. Do you know why we have to rebuild it? I'd assume that 
the symbol table was built automatically?


Anyone?

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] SVN Account Request: odoucet

2009-11-02 Thread Olivier Doucet
Hello,

Just a reminder that I'm still waiting for my SVN account :)

I'm more active on the QA mailing list. I've already written many tests
about IMAP extension (code coverage increased from 45% to 68.5%) and more
recently about SNMP extension (code coverage increased from 7.1% to 80.1%
!). I'm waiting for the SVN account to commit all of them. In the meantime,
you can read and review these tests on the PHP-QA mailing list.Here are
direct links to the discussion:
http://marc.info/?l=php-qam=125570993602439w=2
http://marc.info/?l=php-qam=125590280014895w=2

My plan is to improve the PHP Code coverage by writing more tests and submit
new bug reports as well.

Thank you!

Olivier


Re: [PHP-DEV] Seg fault when using active_symbol_table called fromuserspace function.

2009-11-02 Thread Felipe Pena
2009/11/2 Mark Skilbeck markskilb...@gmail.com


 Anyone?


See:
http://markmail.org/message/33ee6aitsyqxgu6x#query:+page:1+mid:33ee6aitsyqxgu6x+state:results



-- 
Regards,
Felipe Pena


[PHP-DEV] php-thttpd sapi bug #11323 fix

2009-11-02 Thread nishant kumar
Hi list,

i want to submit a patch regarding this bug
http://bugs.php.net/bug.php?id=11323

The bug is that if the post request spans multiple packets as in case of
file upload in php-thttpd then it fails and sometime php-thttpd crashes as
php code expects that the thttpd code has read full contentlength already
into thttpd buffer ( read_buf ), which is not the case.
Currently maximum size of file that php-thttpd can upload cannot be greater
than 2600 bytes ( hc-read_size ) theoritically


I dont have an account to check in the code , so if anyone has access or
anyone can give me pointers for submitting it, i would be glad.
The patch file is attached along.

thanks
Nishant
-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php