Bug #54013 [Com]: ReflectionParam for duplicate parameter contains garbage

2011-02-14 Thread arjen at react dot nl
Edit report at http://bugs.php.net/bug.php?id=54013&edit=1

 ID: 54013
 Comment by: arjen at react dot nl
 Reported by:arjen at react dot nl
 Summary:ReflectionParam for duplicate parameter contains
 garbage
 Status: Open
 Type:   Bug
 Package:Reflection related
 PHP Version:5.3.5
 Block user comment: N
 Private report: N

 New Comment:

Related to http://bugs.php.net/bug.php?id=43512


Previous Comments:

[2011-02-14 14:52:23] arjen at react dot nl

Description:

ReflectionParam object for 2nd parameter contains random value for name
property.

Test script:
---
b('waa?', 'meukee!');



$reflectionClass = new ReflectionClass($c);

$params = $reflectionClass->getMethod('b')->getParameters();



var_dump($params);

Expected result:

array

  0 => string 'waa?' (length=4)

  1 => string 'meukee!' (length=7)



string 'meukee!' (length=7)



array

  0 => &

object(ReflectionParameter)[4]

  public 'name' => string 'a' (length=1)

  1 => &

object(ReflectionParameter)[5]

  public 'name' => string 'a' (length=1)





or exception/error..

Actual result:
--
array

  0 => string 'waa?' (length=4)

  1 => string 'meukee!' (length=7)



string 'meukee!' (length=7)



array

  0 => &

object(ReflectionParameter)[4]

  public 'name' => string 'a' (length=1)

  1 => &

object(ReflectionParameter)[5]

  public 'name' => string '<>' (length=1)






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


[PHP-BUG] Bug #54013 [NEW]: ReflectionParam for duplicate parameter contains garbage

2011-02-14 Thread arjen at react dot nl
From: 
Operating system: 
PHP version:  5.3.5
Package:  Reflection related
Bug Type: Bug
Bug description:ReflectionParam for duplicate parameter contains garbage

Description:

ReflectionParam object for 2nd parameter contains random value for name
property.

Test script:
---
b('waa?', 'meukee!');



$reflectionClass = new ReflectionClass($c);

$params = $reflectionClass->getMethod('b')->getParameters();



var_dump($params);

Expected result:

array

  0 => string 'waa?' (length=4)

  1 => string 'meukee!' (length=7)



string 'meukee!' (length=7)



array

  0 => &

object(ReflectionParameter)[4]

  public 'name' => string 'a' (length=1)

  1 => &

object(ReflectionParameter)[5]

  public 'name' => string 'a' (length=1)





or exception/error..

Actual result:
--
array

  0 => string 'waa?' (length=4)

  1 => string 'meukee!' (length=7)



string 'meukee!' (length=7)



array

  0 => &

object(ReflectionParameter)[4]

  public 'name' => string 'a' (length=1)

  1 => &

object(ReflectionParameter)[5]

  public 'name' => string '<>' (length=1)

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



#42085 [NEW]: Negative offset for mb_strrpos not working

2007-07-24 Thread arjen at react dot nl
From: arjen at react dot nl
Operating system: Linux
PHP version:  5.2.3
PHP Bug Type: mbstring related
Bug description:  Negative offset for mb_strrpos not working

Description:

>From the manual: 
Note: As of PHP 5.2.0 offset may be specified to begin searching an
arbitrary number of characters into the string. Negative values will stop
searching at an arbitrary point prior to the end of the string. 

Negative offsets are not working.

Reproduce code:
---
var_dump(mb_strrpos('abcd', 'd', -2));
var_dump(mb_strrpos('abcdd', 'd', -2));

Expected result:

boolean false
int 3

Actual result:
--
int 3
int 4

-- 
Edit bug report at http://bugs.php.net/?id=42085&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42085&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42085&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42085&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42085&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42085&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42085&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42085&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42085&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42085&r=support
Expected behavior:http://bugs.php.net/fix.php?id=42085&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42085&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42085&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42085&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42085&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42085&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42085&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42085&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42085&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42085&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42085&r=mysqlcfg