[PHP-BUG] Bug #53629 [NEW]: highlight_string() has leaks

2010-12-29 Thread bj...@php.net
From: bjori
Operating system: Linux
PHP version:  5.3SVN-2010-12-29 (SVN)
Package:  Scripting Engine problem
Bug Type: Bug
Bug description:highlight_string() has leaks

Description:

memleak

Test script:
---


';

$str2 = '



';



highlight_string($str, true);

highlight_string($str2, true);



Actual result:
--
==26002== HEAP SUMMARY:

==26002== in use at exit: 2,228 bytes in 2 blocks

==26002==   total heap usage: 11,067 allocs, 11,065 frees, 2,819,307 bytes


allocated

==26002== 

==26002== 4 bytes in 1 blocks are definitely lost in loss record 1 of 2

==26002==at 0x4C2815C: malloc (vg_replace_malloc.c:236)

==26002==by 0x6D0B67: _emalloc (zend_alloc.c:2401)

==26002==by 0x6D1023: _estrndup (zend_alloc.c:2556)

==26002==by 0x6B8C07: lex_scan (zend_language_scanner.l:2093)

==26002==by 0x6F3146: zend_highlight (zend_highlight.c:96)

==26002==by 0x6B1C87: highlight_string (zend_language_scanner.l:774)

==26002==by 0x5E1C4C: zif_highlight_string (basic_functions.c:5163)

==26002==by 0x7405DF: zend_do_fcall_common_helper_SPEC 

(zend_vm_execute.h:638)

==26002==by 0x746729: ZEND_DO_FCALL_SPEC_CONST_HANDLER 

(zend_vm_execute.h:1935)

==26002==by 0x73F0BF: execute (zend_vm_execute.h:410)

==26002==by 0x7039C5: zend_execute_scripts (zend.c:1212)

==26002==by 0x67B45F: php_execute_script (main.c:2337)

==26002==by 0x83E3E9: main (php_cli.c:1254)

==26002== 

==26002== 2,224 bytes in 1 blocks are still reachable in loss record 2 of
2

==26002==at 0x4C2815C: malloc (vg_replace_malloc.c:236)

==26002==by 0x6D11CD: alloc_globals_ctor (zend_alloc.c:2623)

==26002==by 0x6D1248: start_memory_manager (zend_alloc.c:2646)

==26002==by 0x7025CA: zend_startup (zend.c:642)

==26002==by 0x67A75A: php_module_startup (main.c:1889)

==26002==by 0x83CD04: php_cli_startup (php_cli.c:425)

==26002==by 0x83DB13: main (php_cli.c:802)

==26002== 

==26002== LEAK SUMMARY:

==26002==definitely lost: 4 bytes in 1 blocks

==26002==indirectly lost: 0 bytes in 0 blocks

==26002==  possibly lost: 0 bytes in 0 blocks

==26002==still reachable: 2,224 bytes in 1 blocks

==26002== suppressed: 0 bytes in 0 blocks

==26002== 



-- 
Edit bug report at http://bugs.php.net/bug.php?id=53629&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53629&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53629&r=trysnapshot53
Try a snapshot (trunk):  
http://bugs.php.net/fix.php?id=53629&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53629&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53629&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53629&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=53629&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=53629&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=53629&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=53629&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=53629&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=53629&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=53629&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53629&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=53629&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=53629&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=53629&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=53629&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=53629&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=53629&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=53629&r=mysqlcfg



Bug #53629 [PATCH]: highlight_string() has leaks

2010-12-29 Thread bj...@php.net
Edit report at http://bugs.php.net/bug.php?id=53629&edit=1

 ID: 53629
 Patch added by:     [email protected]
 Reported by:    [email protected]
 Summary:highlight_string() has leaks
 Status: Open
 Type:   Bug
 Package:Scripting Engine problem
 Operating System:   Linux
 PHP Version:5.3SVN-2010-12-29 (SVN)
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: heredoc
Revision:   1293642611
URL:   
http://bugs.php.net/patch-display.php?bug=53629&patch=heredoc&revision=1293642611


Previous Comments:

[2010-12-29 18:02:41] [email protected]

Description:

memleak

Test script:
---


';

$str2 = '



';



highlight_string($str, true);

highlight_string($str2, true);



Actual result:
--
==26002== HEAP SUMMARY:

==26002== in use at exit: 2,228 bytes in 2 blocks

==26002==   total heap usage: 11,067 allocs, 11,065 frees, 2,819,307
bytes 

allocated

==26002== 

==26002== 4 bytes in 1 blocks are definitely lost in loss record 1 of 2

==26002==at 0x4C2815C: malloc (vg_replace_malloc.c:236)

==26002==by 0x6D0B67: _emalloc (zend_alloc.c:2401)

==26002==by 0x6D1023: _estrndup (zend_alloc.c:2556)

==26002==by 0x6B8C07: lex_scan (zend_language_scanner.l:2093)

==26002==by 0x6F3146: zend_highlight (zend_highlight.c:96)

==26002==by 0x6B1C87: highlight_string
(zend_language_scanner.l:774)

==26002==by 0x5E1C4C: zif_highlight_string (basic_functions.c:5163)

==26002==by 0x7405DF: zend_do_fcall_common_helper_SPEC 

(zend_vm_execute.h:638)

==26002==by 0x746729: ZEND_DO_FCALL_SPEC_CONST_HANDLER 

(zend_vm_execute.h:1935)

==26002==by 0x73F0BF: execute (zend_vm_execute.h:410)

==26002==by 0x7039C5: zend_execute_scripts (zend.c:1212)

==26002==by 0x67B45F: php_execute_script (main.c:2337)

==26002==by 0x83E3E9: main (php_cli.c:1254)

==26002== 

==26002== 2,224 bytes in 1 blocks are still reachable in loss record 2
of 2

==26002==at 0x4C2815C: malloc (vg_replace_malloc.c:236)

==26002==by 0x6D11CD: alloc_globals_ctor (zend_alloc.c:2623)

==26002==by 0x6D1248: start_memory_manager (zend_alloc.c:2646)

==26002==by 0x7025CA: zend_startup (zend.c:642)

==26002==by 0x67A75A: php_module_startup (main.c:1889)

==26002==by 0x83CD04: php_cli_startup (php_cli.c:425)

==26002==by 0x83DB13: main (php_cli.c:802)

==26002== 

==26002== LEAK SUMMARY:

==26002==definitely lost: 4 bytes in 1 blocks

==26002==indirectly lost: 0 bytes in 0 blocks

==26002==  possibly lost: 0 bytes in 0 blocks

==26002==still reachable: 2,224 bytes in 1 blocks

==26002== suppressed: 0 bytes in 0 blocks

==26002== 








-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53629&edit=1


[PHP-BUG] Bug #54016 [NEW]: finfo_file: Cannot determine filetype in archives

2011-02-14 Thread bj...@php.net
From: bjori
Operating system: Linux
PHP version:  5.3.5
Package:  Filesystem function related
Bug Type: Bug
Bug description:finfo_file: Cannot determine filetype in archives

Description:

finfo_file() does not support stream wrappers, such as zip://, even though
it has 

stream context option :(

Test script:
---
http://bugs.php.net/bug.php?id=54016&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=54016&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=54016&r=trysnapshot53
Try a snapshot (trunk):  
http://bugs.php.net/fix.php?id=54016&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=54016&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54016&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=54016&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=54016&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=54016&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=54016&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=54016&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=54016&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=54016&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=54016&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=54016&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=54016&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=54016&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=54016&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=54016&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=54016&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=54016&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=54016&r=mysqlcfg



Bug #54016 [PATCH]: finfo_file: Cannot determine filetype in archives

2011-02-14 Thread bj...@php.net
Edit report at http://bugs.php.net/bug.php?id=54016&edit=1

 ID: 54016
 Patch added by:     [email protected]
 Reported by:    [email protected]
 Summary:finfo_file: Cannot determine filetype in archives
 Status: Open
 Type:   Bug
 Package:Filesystem function related
 Operating System:   Linux
 PHP Version:5.3.5
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: finfo.patch
Revision:   1297696874
URL:   
http://bugs.php.net/patch-display.php?bug=54016&patch=finfo.patch&revision=1297696874


Previous Comments:

[2011-02-14 16:20:55] [email protected]

Description:

finfo_file() does not support stream wrappers, such as zip://, even
though it has 

stream context option :(

Test script:
---
http://bugs.php.net/bug.php?id=54016&edit=1


Bug #55101 [PATCH]: Reflection tries to find symlink() and readlink() when they don't exist

2011-08-30 Thread bj...@php.net
Edit report at https://bugs.php.net/bug.php?id=55101&edit=1

 ID: 55101
 Patch added by:     [email protected]
 Reported by:[email protected]
 Summary:Reflection tries to find symlink() and readlink()
 when they don't exist
 Status: Open
 Type:   Bug
 Package:Reflection related
 Operating System:   Windows XP
 PHP Version:5.4.0alpha1
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: disable-functions.patch
Revision:   1314710033
URL:
https://bugs.php.net/patch-display.php?bug=55101&patch=disable-functions.patch&revision=1314710033


Previous Comments:

[2011-07-01 18:43:44] [email protected]

This specific windows disabling stuff is done at 
http://lxr.php.net/xref/PHP_5_4/main/main.c#php_win32_disable_functions but I 
think it might be handled like we treat the disable_functions INI entry at 
http://lxr.php.net/xref/PHP_5_4/Zend/zend_API.c#disabled_function


[2011-07-01 09:40:48] [email protected]

I've looked in the source codes but I didn't get a clue how is it achieved that 
readlink() is disabled on Windows < Vista.

I also don't see anything related at 
http://lxr.php.net/search?project=PHP_5_4&refs=readlink


[2011-07-01 09:19:47] [email protected]

It certainly does something nasty, can you try to figure out where pls?


[2011-07-01 09:07:36] [email protected]

I know, it is even mentioned in the bug report. The problem is that Reflection 
doesn't know it and produces an Internal error.


[2011-07-01 09:06:29] [email protected]

re-open, but really not sure if it is fixable in reflexion, but there is no bug 
in 
these functions per se :)




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

https://bugs.php.net/bug.php?id=55101


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55101&edit=1


[PHP-BUG] Bug #60130 [NEW]: Endless redirect

2011-10-25 Thread bj...@php.net
From: 
Operating system: *
PHP version:  Irrelevant
Package:  Website problem
Bug Type: Bug
Bug description:Endless redirect

Description:

https://pecl.php.net/package/APC

https requests to /package/* on pecl.php.net wind up in an endless redirect
loop.
Seems like all other links work fine on https.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=60130&edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60130&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60130&r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=60130&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60130&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60130&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60130&r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=60130&r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=60130&r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=60130&r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=60130&r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=60130&r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=60130&r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=60130&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60130&r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=60130&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=60130&r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=60130&r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=60130&r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=60130&r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=60130&r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=60130&r=mysqlcfg



[PHP-BUG] Bug #60317 [NEW]: Incorrect mailinglist used

2011-11-16 Thread bj...@php.net
From: bjori
Operating system: *
PHP version:  Irrelevant
Package:  Website problem
Bug Type: Bug
Bug description:Incorrect mailinglist used

Description:

"Website problem" bugs are suddenly being sent to php-bugs@, rather then
php-
webmaster@

Test script:
---
http://news.php.net/php.bugs/165243
http://news.php.net/php.bugs/165270


-- 
Edit bug report at https://bugs.php.net/bug.php?id=60317&edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60317&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60317&r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=60317&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60317&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60317&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60317&r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=60317&r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=60317&r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=60317&r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=60317&r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=60317&r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=60317&r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=60317&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60317&r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=60317&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=60317&r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=60317&r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=60317&r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=60317&r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=60317&r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=60317&r=mysqlcfg