#37687 [NEW]: file_exists strange behavior on windows platform only

2006-06-03 Thread pear at laurent-laville dot org
From: pear at laurent-laville dot org
Operating system: Windows XP
PHP version:  4.4.2
PHP Bug Type: Filesystem function related
Bug description:  file_exists strange behavior on windows platform only

Description:

Concat directory name without trailing dir separator, and a file name.

While i was ready to prepare a new release of PEAR_PackageFileManager
(PFM), and generate the new package.xml, i found a bug. I thought first it
was from PFM, but then i investigate a bit more, and i found :

It will occurs only under Windows platform, because it works fine under
Unix. 

I have :
- this "E:\pearix-dev\pfm15x" directory exists
- this "E:\pearix-dev\pfm15xpackage.xml" (file | dir) does not exists
- my test script into "E:\pearix-dev\pfm15x" directory

Tested under PHP 5.1.4 and PHP 4.4.2 under windows, with Apache 2.0.55
gave WRONG results

Tested under PHP 5.1.4 and PHP 4.4.0 under Unix with Apache 2.2.2 gave
GOOD (expected) results.


Feedback are welcome !

Laurent Laville

Reproduce code:
---


Expected result:

None of "condition x passed" message displayed, but only 

string(20) "E:\pearix-dev\pfm15x" 
string(31) "E:\pearix-dev\pfm15xpackage.xml" 


Actual result:
--
The 3 conditons are TRUE

string(20) "E:\pearix-dev\pfm15x" 
string(31) "E:\pearix-dev\pfm15xpackage.xml" 
string(18) "condition 1 passed" 
string(18) "condition 2 passed" 
string(18) "condition 3 passed"


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


#37687 [Fbk->Csd]: file_exists strange behavior on windows platform only

2006-08-15 Thread pear at laurent-laville dot org
 ID:   37687
 User updated by:  pear at laurent-laville dot org
 Reported By:  pear at laurent-laville dot org
-Status:   Feedback
+Status:   Closed
 Bug Type: Filesystem function related
 Operating System: win32 only
 PHP Version:  5.1.4, 4.4.2
 New Comment:

Now my configuration is Apache 2.0.58 + PHP 5.1.4 / PHP 4.4.2

I'm sorry but i can't reproduce it myself.
With your PHP 5.2.0RC2 snapshot (of course), but even after
re-installed a platform with Apache 2.0.55 (difference from my previous
config).

Perharps the problem came to another source but i don't know  now what
it could be ?!

Sorry again 
I'll close this bug 

regards
Laurent Laville


Previous Comments:


[2006-08-14 21:58:41] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

I can't reproduce it.

----

[2006-06-03 13:52:47] pear at laurent-laville dot org

Description:

Concat directory name without trailing dir separator, and a file name.

While i was ready to prepare a new release of PEAR_PackageFileManager
(PFM), and generate the new package.xml, i found a bug. I thought first
it was from PFM, but then i investigate a bit more, and i found :

It will occurs only under Windows platform, because it works fine under
Unix. 

I have :
- this "E:\pearix-dev\pfm15x" directory exists
- this "E:\pearix-dev\pfm15xpackage.xml" (file | dir) does not exists
- my test script into "E:\pearix-dev\pfm15x" directory

Tested under PHP 5.1.4 and PHP 4.4.2 under windows, with Apache 2.0.55
gave WRONG results

Tested under PHP 5.1.4 and PHP 4.4.0 under Unix with Apache 2.2.2 gave
GOOD (expected) results.


Feedback are welcome !

Laurent Laville

Reproduce code:
---


Expected result:

None of "condition x passed" message displayed, but only 

string(20) "E:\pearix-dev\pfm15x" 
string(31) "E:\pearix-dev\pfm15xpackage.xml" 


Actual result:
--
The 3 conditons are TRUE

string(20) "E:\pearix-dev\pfm15x" 
string(31) "E:\pearix-dev\pfm15xpackage.xml" 
string(18) "condition 1 passed" 
string(18) "condition 2 passed" 
string(18) "condition 3 passed"






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


[PHP-BUG] Bug #53701 [NEW]: T_USE should not be available on PHP 5.2

2011-01-09 Thread pear at laurent-laville dot org
From: 
Operating system: Windows
PHP version:  5.2.17
Package:  Scripting Engine problem
Bug Type: Bug
Bug description:T_USE should not be available on PHP 5.2

Description:

While I worked on a new version of PHP_CompatInfo, I've found that the
token T_USE is available on at least PHP 5.2.13 version.



If keyword "use" is only related to namespace, as this last one is only
available since PHP 5.3, it should not be present.



http://www.php.net/manual/en/tokens.php



Regards

Laurent Laville



http://pear.php.net/user/farell

Test script:
---


Expected result:

T_USE token not available

Actual result:
--
)



[tokenizer] => Array

(

...

[T_USE] => 339

...

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



[PHP-BUG] Bug #60280 [NEW]: stream_resolve_include_path does not resolved path when drive letter missing

2011-11-12 Thread pear at laurent-laville dot org
From: 
Operating system: Windows XP
PHP version:  5.3.8
Package:  Filesystem function related
Bug Type: Bug
Bug description:stream_resolve_include_path does not resolved path when drive 
letter missing

Description:

I've tested it under PHP 5.3.5 (I don't have the possibilty to test it
under new PHP 5.3 version sorry).

While I run PHPUnit 3.5.15 with --bootstrap feature, I found a problem only
with PHP 5.3, because PHPUnit implement if availale the
stream_resolve_include_path function.

Here are my tests :

1. forgotten the drive letter (c:) on the path I given to PHPUnit
--bootstrap 
With a Xdebug Trace I got a stream_resolve_include_path return FALSE

1.1564 776408   ->
PHPUnit_Util_Filesystem::fileExistsInIncludePath($file =
'\\UwAmp\\www\\TODO\\PHP_Reflect_NS\\PHP\\Reflect\\Autoload.php')
C:\UwAmp\bin\php\php-5.3.5\PEAR\PHPUnit\Util\Fileloader.php:75
1.1565 776512 ->
function_exists('stream_resolve_include_path')
C:\UwAmp\bin\php\php-5.3.5\PEAR\PHPUnit\Util\Filesystem.php:135
   >=> TRUE
1.1566 776440 ->
stream_resolve_include_path('\\UwAmp\\www\\TODO\\PHP_Reflect_NS\\PHP\\Reflect\\Autoload.php')
C:\UwAmp\bin\php\php-5.3.5\PEAR\PHPUnit\Util\Filesystem.php:136
   >=> FALSE
 >=> FALSE

2. do not forgot the drive letter (c:) on the path I given to PHPUnit
--bootstrap

With a Xdebug Trace I got a stream_resolve_include_path return STRING

1.1798 776416   ->
PHPUnit_Util_Filesystem::fileExistsInIncludePath($file =
'c:\\UwAmp\\www\\TODO\\PHP_Reflect_NS\\PHP\\Reflect\\Autoload.php')
C:\UwAmp\bin\php\php-5.3.5\PEAR\PHPUnit\Util\Fileloader.php:75
1.1799 776520 ->
function_exists('stream_resolve_include_path')
C:\UwAmp\bin\php\php-5.3.5\PEAR\PHPUnit\Util\Filesystem.php:135
   >=> TRUE
1.1800 776448 ->
stream_resolve_include_path('c:\\UwAmp\\www\\TODO\\PHP_Reflect_NS\\PHP\\Reflect\\Autoload.php')
C:\UwAmp\bin\php\php-5.3.5\PEAR\PHPUnit\Util\Filesystem.php:136
   >=>
'C:\\UwAmp\\www\\TODO\\PHP_Reflect_NS\\PHP\\Reflect\\Autoload.php'
 >=>
'C:\\UwAmp\\www\\TODO\\PHP_Reflect_NS\\PHP\\Reflect\\Autoload.php'

As drive letter is not required on all file system operation, I think there
is a little problem on windows platform only !



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



[PHP-BUG] Bug #64216 [NEW]: FILTER_VALIDATE_MAC constant unavailable

2013-02-15 Thread pear at laurent-laville dot org
From: pear at laurent-laville dot org
Operating system: Windows
PHP version:  5.5.0alpha4
Package:  Filter related
Bug Type: Bug
Bug description:FILTER_VALIDATE_MAC constant unavailable

Description:

While the FILTER_VALIDATE_MAC constant was implemented by this commit [1]
since 
2012-12-24, PHP 5.5.0 alpha4 on windows platform does not provide it.
Almost one month after modification was applied.

See related request [2]


[1]
https://github.com/php/php-src/commit/2f334438836f37b82d739b20a4d0f875278e4766

[2] https://bugs.php.net/bug.php?id=49180


PHP 5.5.0alpha4 (cli) (built: Jan 22 2013 21:25:00)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0-dev, Copyright (c) 1998-2013 Zend Technologies

Test script:
---
php -r "print_r(filter_list());"

Expected result:

Missing entry 

Array
(
[ ] => validate_mac 
)



Actual result:
--
Array
(
[0] => int
[1] => boolean
[2] => float
[3] => validate_regexp
[4] => validate_url
[5] => validate_email
[6] => validate_ip
[7] => string
[8] => stripped
[9] => encoded
[10] => special_chars
[11] => full_special_chars
[12] => unsafe_raw
[13] => email
[14] => url
[15] => number_int
[16] => number_float
[17] => magic_quotes
[18] => callback
)

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