#51072 [NEW]: filter_var with FILTER_VALIDATE_EMAIL accepts incorrect emails

2010-02-17 Thread schicker03 at gmail dot com
From: schicker03 at gmail dot com
Operating system: Linux
PHP version:  5.2.12
PHP Bug Type: Unknown/Other Function
Bug description:  filter_var with FILTER_VALIDATE_EMAIL accepts incorrect emails

Description:

An incorrect email is returned as correct from filter_var with the
FILTER_VALIDATE_EMAIL option.

The php version is 
"PHP Version 5.2.0-8+etch10"

that has not been in the dropdown above so i added it here.





Reproduce code:
---
---
>From manual page: function.filter-var
---




Expected result:

The variable $abc should be the boolean value false.


Actual result:
--
The variable $abc contains the email from $email
"doesnotmat...@-online.de".

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



#51072 [Com]: filter_var with FILTER_VALIDATE_EMAIL accepts incorrect emails

2010-02-19 Thread schicker03 at gmail dot com
 ID:   51072
 Comment by:   schicker03 at gmail dot com
 Reported By:  schicker03 at gmail dot com
 Status:   Feedback
 Bug Type: Unknown/Other Function
 Operating System: Linux
 PHP Version:  5.2.12
 New Comment:

Ahh Ok,

we do have an etch debian with PHP 5.2.0 on our testsystem.
I checked the live system with lenny2 and PHP 5.2.6.

The result with 5.2.6 is as I expected it.
Boolean false is returned.

Thanks
schicker03


Previous Comments:


[2010-02-17 17:33:49] der...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



[2010-02-17 17:32:38] schicker03 at gmail dot com

Description:

An incorrect email is returned as correct from filter_var with the
FILTER_VALIDATE_EMAIL option.

The php version is 
"PHP Version 5.2.0-8+etch10"

that has not been in the dropdown above so i added it here.





Reproduce code:
---
---
>From manual page: function.filter-var
---




Expected result:

The variable $abc should be the boolean value false.


Actual result:
--
The variable $abc contains the email from $email
"doesnotmat...@-online.de".





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



[PHP-BUG] Bug #63253 [NEW]: class member access using __invoke() in php5.4

2012-10-10 Thread schicker03 at gmail dot com
From: schicker03 at gmail dot com
Operating system: MacOSX 10.8
PHP version:  5.4.7
Package:  Scripting Engine problem
Bug Type: Bug
Bug description:class member access using __invoke() in php5.4

Description:

As described in that link, class member access is available as of PHP 5.4
>>http://www.php.net/manual/en/migration54.new-features.php, 
>>Class member access on instantiation has been added, e.g. (new
Foo)->bar().

My PHP Version is 5.4.0 (not 5.4.7 like showing above, but there`s no
choice for 
5.4.0 so I used 5.4.7)

See the sample script, why is that sample not working ?
(new Foo('bar'))();

I don´t know if this is really a bug, but i believe it should work.

best
schicker03

Test script:
---
bar = $bar;
}

/**
 * @return null
 */
public function __invoke()
{
echo $this->bar;
}
}

//works as expected, using __invoke()
$foo = new Foo('bar');
$foo();

//works as expected, calling __invoke()
(new Foo('bar'))->__invoke();

//invalid, but why !? Should work from my point of view
(new Foo('bar'))();

Expected result:

Expected Result whould be the string bar 3 times:
barbarbar


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