[PHP-BUG] Bug #51672 [NEW]: Parse error when a subscript operator is used after a function call operator

2010-04-27 Thread miklcct at gmail dot com
From: 
Operating system: Ubuntu 9.04
PHP version:  5.3.2
Package:  Compile Failure
Bug Type: Bug
Bug description:Parse error when a subscript operator is used after a function 
call operator

Description:

syntax error when a subscript operator is used with a function call
operator

Test script:
---
#!/usr/bin/php



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



#50706 [NEW]: phpinfo() generates invalid XHTML code

2010-01-09 Thread miklcct at gmail dot com
From: miklcct at gmail dot com
Operating system: Ubuntu 9.10
PHP version:  5.3.1
PHP Bug Type: Unknown/Other Function
Bug description:  phpinfo() generates invalid XHTML code

Description:

Simply running phpinfo() and put the output into W3C validator and it
says:

Validation Output:  1 Error

   1. Error Line 2, Column 1: Missing xmlns attribute for element html.
The value should be: http://www.w3.org/1999/xhtml

  

  ✉

  Many Document Types based on XML need a mandatory xmlns="" on the
root element. For example, the root element for XHTML will look like:
  http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">



Reproduce code:
---



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



#50710 [NEW]: stripos returns FALSE for empty string used as needle

2010-01-10 Thread miklcct at gmail dot com
From: miklcct at gmail dot com
Operating system: Ubuntu 9.10
PHP version:  5.3.1
PHP Bug Type: Strings related
Bug description:  stripos returns FALSE for empty string used as needle

Description:

The function stripos() returns FALSE when a empty string is used.
Consider the example below, an empty string is used and it is found at
position 0. It is misleading (at least theoretically) that an empty string
is not found inside another string.

Reproduce code:
---



Expected result:

int(0)
int(0)
int(0)
int(1)
int(1)
int(1)
int(2)
int(0)

Actual result:
--
int(0)
int(0)
bool(false)
int(1)
int(1)
bool(false)
bool(false)
bool(false)

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



#50710 [Bgs]: stripos returns FALSE for empty string used as needle

2010-01-11 Thread miklcct at gmail dot com
 ID:   50710
 User updated by:  miklcct at gmail dot com
 Reported By:  miklcct at gmail dot com
 Status:   Bogus
 Bug Type: Strings related
 Operating System: Ubuntu 9.10
 PHP Version:  5.3.1
 New Comment:

This is not only for stripos, it is for the whole str*pos family and
the documentation specifies that "If needle is not found, str*pos() will
return boolean FALSE" but the fact is the empty string can be found in
any string


Previous Comments:


[2010-01-10 22:37:04] j...@php.net

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

,



[2010-01-10 09:34:37] ras...@php.net

By that logic shouldn't it always return true then?  There is an empty

string everywhere in a string.  Before the first char, between each 
char, etc.  Not sure that is a useful result though.



[2010-01-10 09:28:38] miklcct at gmail dot com

Description:

The function stripos() returns FALSE when a empty string is used.
Consider the example below, an empty string is used and it is found at
position 0. It is misleading (at least theoretically) that an empty
string is not found inside another string.

Reproduce code:
---



Expected result:

int(0)
int(0)
int(0)
int(1)
int(1)
int(1)
int(2)
int(0)

Actual result:
--
int(0)
int(0)
bool(false)
int(1)
int(1)
bool(false)
bool(false)
bool(false)





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