Bug #63846 [Nab]: preg_match cause segmentation fault

2012-12-24 Thread saprykin dot dmitry at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=63846&edit=1

 ID: 63846
 User updated by:saprykin dot dmitry at gmail dot com
 Reported by:saprykin dot dmitry at gmail dot com
 Summary:preg_match cause segmentation fault
 Status: Not a bug
 Type:   Bug
 Package:PCRE related
 PHP Version:5.4.10
 Block user comment: N
 Private report: N

 New Comment:

Thanks for reply!
Found compile option to solve this


Previous Comments:

[2012-12-24 11:21:44] fel...@php.net

Related to bug #63829


[2012-12-24 10:40:07] saprykin dot dmitry at gmail dot com

Description:

simple regular expression causes segmentation fault. Details are below.

Test script:
---
$text = str_repeat('text ', 870);
echo 'Text size: '.strlen($text).PHP_EOL;
preg_match('/([a-z]\s*)+/', $text);
echo 'Working!';

Expected result:

Text size: 4350
Working!

Actual result:
--
Text size: 4350
Segmentation fault (core dumped)






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


[PHP-BUG] Bug #63846 [NEW]: preg_match cause segmentation fault

2012-12-24 Thread saprykin dot dmitry at gmail dot com
From: saprykin dot dmitry at gmail dot com
Operating system: 
PHP version:  5.4.10
Package:  PCRE related
Bug Type: Bug
Bug description:preg_match cause segmentation fault

Description:

simple regular expression causes segmentation fault. Details are below.

Test script:
---
$text = str_repeat('text ', 870);
echo 'Text size: '.strlen($text).PHP_EOL;
preg_match('/([a-z]\s*)+/', $text);
echo 'Working!';

Expected result:

Text size: 4350
Working!

Actual result:
--
Text size: 4350
Segmentation fault (core dumped)

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



[PHP-BUG] Bug #52272 [NEW]: header() replace param works strange

2010-07-07 Thread saprykin dot dmitry at gmail dot com
From: 
Operating system: Linux
PHP version:  Irrelevant
Package:  Output Control
Bug Type: Bug
Bug description:header() replace param works strange

Description:

1) Output m headers with the same name using header($header, false) 

2) Output n (n > m) headers with the same name using header($header, true)



Result) headers will not be replaced totally. 



Script will send to output m last headers sent by header($header, true).

Test script:
---


Expected result:

Array

(

[0] => Set-Cookie: name5=; path=/; domain=.simple.ru

)

Actual result:
--
Array

(

[0] => Set-Cookie: name4=; path=/; domain=.simple.ru

[1] => Set-Cookie: name5=; path=/; domain=.simple.ru

)

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