[PHP-BUG] Bug #60919 [NEW]: __wakeup is not called

2012-01-28 Thread the...@php.net
From: 
Operating system: (Any)
PHP version:  5.4.0RC6
Package:  Scripting Engine problem
Bug Type: Bug
Bug description:__wakeup is not called

Description:

In 5.4.0RC6, a __wakeup() method is no longer called during
unserialization.

Test script:
---
$ php -r 'class A { function __sleep() { echo "SLEEP\n"; return array(); }
function __wakeup() { echo "WAKEUP"; }} $a= unserialize(serialize(new
A()));'


Expected result:

SLEEP
WAKEUP
object(A)#1 (0) {
}


Actual result:
--
SLEEP
object(A)#1 (0) {
}


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



[PHP-BUG] Bug #60920 [NEW]: CLI: php -v on STDERR

2012-01-28 Thread the...@php.net
From: 
Operating system: 
PHP version:  5.4SVN-2012-01-28 (SVN)
Package:  PHP options/info functions
Bug Type: Bug
Bug description:CLI: php -v on STDERR

Description:

The PHP version info lands on STDERR now, not on STDOUT. Caused by
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/output.c?r1=322743&r2=322742&pathrev=322743

Test script:
---
$ php -v 2>/dev/null

Expected result:

Something like:

PHP 5.4.0RC7-dev (cli) (built: Jan 28 2012 22:23:46)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies


Actual result:
--
(nothing)

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



Bug #60920 [Opn]: CLI: php -v on STDERR

2012-01-28 Thread the...@php.net
Edit report at https://bugs.php.net/bug.php?id=60920&edit=1

 ID: 60920
 User updated by:    the...@php.net
 Reported by:    the...@php.net
 Summary:CLI: php -v on STDERR
 Status: Open
 Type:   Bug
 Package:PHP options/info functions
 PHP Version:5.4SVN-2012-01-28 (SVN)
 Block user comment: N
 Private report: N

 New Comment:

Same goes for startup errors, e.g.

$ F:/Programme/php-5.4.0RC6-nts-Win32-VC9-x86/php.exe -dmagic_quotes_gpc=on 
2>/dev/null

Fatal error: Directive 'magic_quotes_gpc' is no longer available in PHP in 
Unknown on line 0

vs.

$ ~/devel/php/php/branches/PHP_5_4/Release/php.exe -dmagic_quotes_gpc=on 
2>/dev/null


Previous Comments:

[2012-01-28 22:22:49] the...@php.net

Description:

The PHP version info lands on STDERR now, not on STDOUT. Caused by 
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/output.c?r1=322743&r2=322742&pathrev=322743

Test script:
---
$ php -v 2>/dev/null

Expected result:

Something like:

PHP 5.4.0RC7-dev (cli) (built: Jan 28 2012 22:23:46)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies


Actual result:
--
(nothing)






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


[PHP-BUG] Bug #60978 [NEW]: exit code incorrect

2012-02-04 Thread the...@php.net
From: thekid
Operating system: Windows
PHP version:  5.4.0RC7
Package:  Scripting Engine problem
Bug Type: Bug
Bug description:exit code incorrect

Description:

Calling exit with an int arg will not lead to PHP exiting with this
exitcode.

Test script:
---
$ php -r 'exit(2);' ; echo $?

Expected result:

2

Actual result:
--
254

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



Bug #60919 [PATCH]: __wakeup is not called

2012-02-05 Thread the...@php.net
Edit report at https://bugs.php.net/bug.php?id=60919&edit=1

 ID: 60919
 Patch added by:     the...@php.net
 Reported by:    the...@php.net
 Summary:__wakeup is not called
 Status: Feedback
 Type:   Bug
 Package:Scripting Engine problem
 Operating System:   (Any)
 PHP Version:5.4.0RC6+
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: init-serialize-levels.diff
Revision:   1328450632
URL:
https://bugs.php.net/patch-display.php?bug=60919&patch=init-serialize-levels.diff&revision=1328450632


Previous Comments:

[2012-02-05 14:00:32] the...@php.net

I can also not reproduce the issue if I compile PHP myself, neither on Linux 
nor on Windows.

>From looking at the diffs between 5.4.0RC5 and current SVN, BG(serialize_lock) 
>in conjunction with BG(unserialize).level and BG(serialize).level) sticks out. 
>The thing I think is suspicous here is that BG(unserialize).level gets 
>assigned to 1 inside a block guarded by if (... || !BG(unserialize).level) {, 
>but is never assigned to 0. 

Are we running into this problem because BG(unserialize).level doesn't properly 
get initialized? I'm not an expert here but is it safe to rely on the compiler 
doing thos?

Same goes for BG(serialize).level, by the way.

--------
[2012-02-04 17:47:12] the...@php.net

But still occurs in php-5.4.0RC7-nts-Win32-VC9-x86 (2012-Feb-02 23:15:00)


[2012-01-28 21:23:59] ras...@php.net

I can't actually reproduce this in the current 5.4 code:

% php --version
PHP 5.4.0RC7-dev (cli) (built: Jan 28 2012 13:21:30) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

% php -r 'class A { function __sleep() { echo "SLEEP\n"; return array(); } 
function __wakeup() { echo "WAKEUP"; }} $a= unserialize(serialize(new A()));'
SLEEP
WAKEUP

------------
[2012-01-28 20:58:08] the...@php.net

Description:

In 5.4.0RC6, a __wakeup() method is no longer called during unserialization.

Test script:
---
$ php -r 'class A { function __sleep() { echo "SLEEP\n"; return array(); } 
function __wakeup() { echo "WAKEUP"; }} $a= unserialize(serialize(new A()));'


Expected result:

SLEEP
WAKEUP
object(A)#1 (0) {
}


Actual result:
--
SLEEP
object(A)#1 (0) {
}







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


[PHP-BUG] Bug #65060 [NEW]: imagecreatefrom... crashes with user streams

2013-06-19 Thread the...@php.net
From: the...@php.net
Operating system: Linux
PHP version:  5.5.0RC3
Package:  GD related
Bug Type: Bug
Bug description:imagecreatefrom... crashes with user streams

Description:

When loading images via any of the imagecreatefrom...() functions and the
argument given to them resolves to a userstream, a segmentation fault
occurs on Linux systems (Travis CI's Linux image, 3.2.9-gentoo). With PHP
5.4, the same code works as expected. On Windows, the same code works as
expected.

See https://github.com/xp-framework/xp-framework/issues/310

Test script:
---
buffer= self::$bytes[$file];
$this->avail= strlen($this->buffer);
$this->length= strlen($this->buffer);
return true;
  }

  public function stream_read($count) {
$chunk= substr($this->buffer, 0, min($this->avail, $count));
$this->buffer= substr($this->buffer, strlen($chunk));
$this->avail-= strlen($chunk);
return $chunk;
  }

  public function stream_stat() {
return array('size' => $this->length);
  }

  public function stream_eof() {
return $this->avail <= 0;
  }

  public function stream_close() {
$this->avail= -1;
  }
}

userstream::$bytes['test.gif']=
base64_decode('R0lGODdhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=');
stream_wrapper_register('iostrr', 'userstream');

var_dump(imagecreatefromgif('iostrr://test.gif'));


Expected result:

resource(6) of type (gd)

Actual result:
--
Segmentation fault

Program received signal SIGSEGV, Segmentation fault.
0x558b2d77 in _php_stream_seek (stream=0x7fffefc6d6b0, offset=-1,
whence=1)
at /home/friebe/php/php-src/main/streams/streams.c:1273
1273fflush(stream->stdiocast);
(gdb) bt
#0  0x558b2d77 in _php_stream_seek (stream=0x7fffefc6d6b0,
offset=-1, whence=1)
at /home/friebe/php/php-src/main/streams/streams.c:1273
#1  0x558b4fa0 in stream_cookie_seeker (cookie=,
position=0x7f7ff458,
whence=) at
/home/friebe/php/php-src/main/streams/cast.c:117
#2  0x76571fb6 in ?? () from /lib64/libc.so.6
#3  0x7657d1e5 in _IO_file_sync () from /lib64/libc.so.6
#4  0x765718e1 in fflush () from /lib64/libc.so.6


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



#47284 [NEW]: Args disappear from stack trace

2009-02-02 Thread the...@php.net
From: the...@php.net
Operating system: Windows
PHP version:  5.2.8
PHP Bug Type: Scripting Engine problem
Bug description:  Args disappear from stack trace

Description:

Exception's stacktraces miss the "args" key in certain situations (whereas
debug_backtrace() will report them).

Reproduce code:
---
php -r 'class Chained extends Exception { function __construct($message,
$cause) { parent::__construct($message); $this->cause= $cause; }} function
raise($message, $cause) { throw new Chained($message, new
Exception($cause)); } try { raise("Arg", "Cause"); } catch (Exception $e) {
var_dump($e->getTrace(), $e->cause->getTrace()); }'

Expected result:

Twice this:

array(1) {
  [0]=>
  array(4) {
["file"]=>
string(17) "Command line code"
["line"]=>
int(1)
["function"]=>
string(5) "raise"
["args"]=>
array(2) {
  [0]=>
  &string(3) "Arg"
  [1]=>
  &string(5) "Cause"
}
  }
}


Actual result:
--
array(1) {
  [0]=>
  array(4) {
["file"]=>
string(17) "Command line code"
["line"]=>
int(1)
["function"]=>
string(5) "raise"
["args"]=>
array(2) {
  [0]=>
  string(3) "Arg"
  [1]=>
  string(5) "Cause"
}
  }
}
array(1) {
  [0]=>
  array(3) {
["file"]=>
string(17) "Command line code"
["line"]=>
int(1)
["function"]=>
string(5) "raise"
  }
}

The second array is missing the "args" key. In PHP 5.3, it's present.

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



#47284 [Fbk->Opn]: Args disappear from exception stack trace (works in 5.3)

2009-02-09 Thread the...@php.net
 ID:   47284
 User updated by:  the...@php.net
 Reported By:  the...@php.net
-Status:   Feedback
+Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: *
-PHP Version:  5.2.8
+PHP Version:  5.2.8, 5.2.9-dev
 New Comment:

Doesn't help, I tried PHP 5.2 from CVS, which yields the same result:

== php -v ==
PHP 5.2.9RC2-dev (cli) (built: Feb  9 2009 08:46:53) (DEBUG)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

== Results ==
array(1) {
  [0]=>
  array(4) {
["file"]=>
string(17) "Command line code"
["line"]=>
int(1)
["function"]=>
string(5) "raise"
["args"]=>
array(2) {
  [0]=>
  string(3) "Arg"
  [1]=>
  string(5) "Cause"
}
  }
}
array(1) {
  [0]=>
  array(3) {
["file"]=>
string(17) "Command line code"
["line"]=>
int(1)
["function"]=>
string(5) "raise"
  }
}


Previous Comments:


[2009-02-02 23:13:01] j...@php.net

Please try using this CVS snapshot:

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

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





[2009-02-02 22:38:33] the...@php.net

Description:

Exception's stacktraces miss the "args" key in certain situations
(whereas debug_backtrace() will report them).

Reproduce code:
---
php -r 'class Chained extends Exception { function
__construct($message, $cause) { parent::__construct($message);
$this->cause= $cause; }} function raise($message, $cause) { throw new
Chained($message, new Exception($cause)); } try { raise("Arg", "Cause");
} catch (Exception $e) { var_dump($e->getTrace(),
$e->cause->getTrace()); }'

Expected result:

Twice this:

array(1) {
  [0]=>
  array(4) {
["file"]=>
string(17) "Command line code"
["line"]=>
int(1)
["function"]=>
string(5) "raise"
["args"]=>
array(2) {
  [0]=>
  &string(3) "Arg"
  [1]=>
  &string(5) "Cause"
}
  }
}


Actual result:
--
array(1) {
  [0]=>
  array(4) {
["file"]=>
string(17) "Command line code"
["line"]=>
int(1)
["function"]=>
string(5) "raise"
["args"]=>
array(2) {
  [0]=>
  string(3) "Arg"
  [1]=>
  string(5) "Cause"
}
  }
}
array(1) {
  [0]=>
  array(3) {
["file"]=>
string(17) "Command line code"
["line"]=>
int(1)
["function"]=>
string(5) "raise"
  }
}

The second array is missing the "args" key. In PHP 5.3, it's present.





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



[PHP-BUG] Bug #60167 [NEW]: Crash / memory corruption

2011-10-29 Thread the...@php.net
From: 
Operating system: Windows Vista
PHP version:  5.4.0beta2
Package:  COM related
Bug Type: Bug
Bug description:Crash / memory corruption

Description:

Multiple calls to a COM function result in crash / memory corruption /
weird behaviour.

Test script:
---
$ php -r '$com= new com("winmgmts:"); foreach (explode(",", $argv[1]) as
$pid) { $p= $com->get("//./root/cimv2:Win32_Process.Handle=$pid"); echo
$pid, ": ", $p->executablePath, ": "; var_dump($p->commandLine); }'
3132,2760,3268

Expected result:

Something like:
3132: C:\...\GoogleToolbarNotifier.exe: string(74)
""C:\...\GoogleToolbarNotifier.exe" "
2760: F:\...\ONENOTEM.EXE: string(58) ""F:\...\ONENOTEM.EXE" /tsr"
3268: F:\...\XWin.exe: string(38) "F:\...\XWin.exe :0 -multiwindow"

Actual result:
--
Something like:
3132: C:\...\GoogleToolbarNotifier.exe: string(74)
""C:\...\GoogleToolbarNotifier.exe" "
3132: C:\...\GoogleToolbarNotifier.exe: string(74)
""C:\...\GoogleToolbarNotifier.exe" "
3132: C:\...\GoogleToolbarNotifier.exe: string(74)
""C:\...\GoogleToolbarNotifier.exe" "


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



Bug #60167 [Opn]: Crash / memory corruption

2011-10-29 Thread the...@php.net
Edit report at https://bugs.php.net/bug.php?id=60167&edit=1

 ID: 60167
 User updated by:    the...@php.net
 Reported by:    the...@php.net
 Summary:Crash / memory corruption
 Status: Open
 Type:   Bug
 Package:COM related
 Operating System:   Windows Vista
 PHP Version:5.4.0beta2
 Block user comment: N
 Private report: N

 New Comment:

Might be related to #55715


Previous Comments:

[2011-10-29 12:38:13] the...@php.net

Description:

Multiple calls to a COM function result in crash / memory corruption / weird 
behaviour.

Test script:
---
$ php -r '$com= new com("winmgmts:"); foreach (explode(",", $argv[1]) as $pid) 
{ $p= $com->get("//./root/cimv2:Win32_Process.Handle=$pid"); echo $pid, ": ", 
$p->executablePath, ": "; var_dump($p->commandLine); }' 3132,2760,3268

Expected result:

Something like:
3132: C:\...\GoogleToolbarNotifier.exe: string(74) 
""C:\...\GoogleToolbarNotifier.exe" "
2760: F:\...\ONENOTEM.EXE: string(58) ""F:\...\ONENOTEM.EXE" /tsr"
3268: F:\...\XWin.exe: string(38) "F:\...\XWin.exe :0 -multiwindow"

Actual result:
--
Something like:
3132: C:\...\GoogleToolbarNotifier.exe: string(74) 
""C:\...\GoogleToolbarNotifier.exe" "
3132: C:\...\GoogleToolbarNotifier.exe: string(74) 
""C:\...\GoogleToolbarNotifier.exe" "
3132: C:\...\GoogleToolbarNotifier.exe: string(74) 
""C:\...\GoogleToolbarNotifier.exe" "







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


[PHP-BUG] Bug #60169 [NEW]: Conjunction of ternary and list crashes PHP

2011-10-29 Thread the...@php.net
From: 
Operating system: Windows Vista
PHP version:  5.4.0beta2
Package:  Scripting Engine problem
Bug Type: Bug
Bug description:Conjunction of ternary and list crashes PHP

Description:

This code makes PHP exit with exit code #127:

list($a, $b)= is_array($argv) ? $argv : explode("@", $argv[1]);

Test script:
---
$ php.exe -r 'list($a, $b)= is_array($argv) ? $argv : explode("@",
$argv[1]);' ; echo $?


Expected result:

0

Actual result:
--
127

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



Bug #60167 [Opn]: Crash / memory corruption

2011-11-23 Thread the...@php.net
Edit report at https://bugs.php.net/bug.php?id=60167&edit=1

 ID: 60167
 User updated by:    the...@php.net
 Reported by:    the...@php.net
 Summary:Crash / memory corruption
 Status: Open
 Type:   Bug
 Package:COM related
-Operating System:   Windows Vista
+Operating System:   Windows
-PHP Version:5.4.0beta2
+PHP Version:5.4.0
 Block user comment: N
 Private report: N

 New Comment:

Occurs in any 5.4 version until nowm on any Windows OS.


Previous Comments:

[2011-11-12 09:39:32] bugzilla33 at gmail dot com

Expected result:

PHP 5.3.9RC1 prints: Microsoft Windows


Actual result:
--
PHP 5.4.0RC1 crash


ExecQuery('SELECT * FROM Win32_OperatingSystem') as $x){
   $s=$x->Caption;
  }

 }

 print($s);
?>


[2011-11-11 00:05:10] lunter at interia dot pl

Confirmed on PHP 5.4.0 RC1, Apache 2.2.21 VC9
Windows 7 32bit


[2011-10-29 12:39:25] the...@php.net

Might be related to #55715


[2011-10-29 12:38:13] the...@php.net

Description:

Multiple calls to a COM function result in crash / memory corruption / weird 
behaviour.

Test script:
---
$ php -r '$com= new com("winmgmts:"); foreach (explode(",", $argv[1]) as $pid) 
{ $p= $com->get("//./root/cimv2:Win32_Process.Handle=$pid"); echo $pid, ": ", 
$p->executablePath, ": "; var_dump($p->commandLine); }' 3132,2760,3268

Expected result:

Something like:
3132: C:\...\GoogleToolbarNotifier.exe: string(74) 
""C:\...\GoogleToolbarNotifier.exe" "
2760: F:\...\ONENOTEM.EXE: string(58) ""F:\...\ONENOTEM.EXE" /tsr"
3268: F:\...\XWin.exe: string(38) "F:\...\XWin.exe :0 -multiwindow"

Actual result:
--
Something like:
3132: C:\...\GoogleToolbarNotifier.exe: string(74) 
""C:\...\GoogleToolbarNotifier.exe" "
3132: C:\...\GoogleToolbarNotifier.exe: string(74) 
""C:\...\GoogleToolbarNotifier.exe" "
3132: C:\...\GoogleToolbarNotifier.exe: string(74) 
""C:\...\GoogleToolbarNotifier.exe" "







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


Bug #60167 [PATCH]: Crash / memory corruption

2011-11-23 Thread the...@php.net
Edit report at https://bugs.php.net/bug.php?id=60167&edit=1

 ID: 60167
 Patch added by:     the...@php.net
 Reported by:    the...@php.net
 Summary:Crash / memory corruption
 Status: Open
 Type:   Bug
 Package:COM related
 Operating System:   Windows
 PHP Version:5.4.0
 Block user comment: N
 Private report: N

 New Comment:

The following patch has been added/updated:

Patch Name: bugfix-and-all-warnings-removal.diff
Revision:   1322058911
URL:
https://bugs.php.net/patch-display.php?bug=60167&patch=bugfix-and-all-warnings-removal.diff&revision=1322058911


Previous Comments:

[2011-11-23 14:25:45] the...@php.net

The issue described in bug #55715 is solved by the patch, too:

Timm Friebe@carla ~/devel/php/php-src-5.4
$ cat test.xls
A1  B1  C1  D1  E1

(using tab-seperated values here)

Timm Friebe@carla ~/devel/php/php-src-5.4
$ cat excel.php
Workbooks->Open(realpath('test.xls'));
  $worksheet= $excel->ActiveSheet;
  for ($j= 1; $j <= 5; $j++) {
echo $worksheet->Cells(1, $j)->Value, "\n";
  }
  $excel->Quit();
?>

Timm Friebe@carla ~/devel/php/php-src-5.4
$ ./Release_TS/php.exe excel.php
A1
B1
C1
D1
E1

--------
[2011-11-23 09:04:00] the...@php.net

Occurs in any 5.4 version until nowm on any Windows OS.


[2011-11-12 09:39:32] bugzilla33 at gmail dot com

Expected result:

PHP 5.3.9RC1 prints: Microsoft Windows


Actual result:
--
PHP 5.4.0RC1 crash


ExecQuery('SELECT * FROM Win32_OperatingSystem') as $x){
   $s=$x->Caption;
  }

 }

 print($s);
?>


[2011-11-11 00:05:10] lunter at interia dot pl

Confirmed on PHP 5.4.0 RC1, Apache 2.2.21 VC9
Windows 7 32bit

--------
[2011-10-29 12:39:25] the...@php.net

Might be related to #55715




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

https://bugs.php.net/bug.php?id=60167


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