[PHP-BUG] Req #52432 [NEW]: {} with Return Value

2010-07-24 Thread halloanjedendenichkenne at gmail dot com
From: 
Operating system: Irrelevant
PHP version:  Irrelevant
Package:  Scripting Engine problem
Bug Type: Feature/Change Request
Bug description:{} with Return Value

Description:

It would be pretty cool if you were able to use { CodeHere; } as
Statement.

The Basic Idea behind this is like if the Code was a Function that had a
Return 

Statement. Its only a little inefficient because the Function might only be
used 

one Time, which means it would be useful to have such a Feature.



Examples are given in the TestScript

Test script:
---


Expected result:

1. Depending on the Time echoing 'It equals to True';

2. When mysql_connect returns false that it evaluates the {}-Code

3. $a = 16;

Actual result:
--
Parse Error of course

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



[PHP-BUG] Req #52268 [NEW]: explode with an Array as Delimiter

2010-07-06 Thread halloanjedendenichkenne at gmail dot com
From: 
Operating system: Irrelevant
PHP version:  Irrelevant
Package:  Unknown/Other Function
Bug Type: Feature/Change Request
Bug description:explode with an Array as Delimiter

Description:

It would be useful if you were able to pass an Array as Delimiter to
explode.

The "Test Script" contains an Example.

Test script:
---


string(5) "Hello"

[1]=>

string(0) ""

[2]=>

string(5) "World"

[3]=>

string(0) ""

[4]=>

string(4) "This"

[5]=>

string(2) "is"

[6]=>

string(1) "a"

[7]=>

string(4) "Test"

  }



  */



?>

Expected result:

Included in the Test Script

Actual result:
--
Warning: explode() expects parameter 1 to be string, array given in php
shell code 

on line 1

NULL

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



[PHP-BUG] Req #52236 [NEW]: Function Call Request

2010-07-02 Thread halloanjedendenichkenne at gmail dot com
From: 
Operating system: Mac OS X 10.6.4
PHP version:  5.3.2
Package:  Scripting Engine problem
Bug Type: Feature/Change Request
Bug description:Function Call Request

Description:

It would be useful if you could leave out optional Parameters when calling


Functions, but specify others that come after that certain Parameter. I
suppose 

the Script will explain it a little better.

Test script:
---


Expected result:

.

Actual result:
--
.

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