#43397 [Com]: crashes in _zend_mm_free_int

2009-10-08 Thread igor at webta dot net
 ID:   43397
 Comment by:   igor at webta dot net
 Reported By:  phajdan dot jr at gmail dot com
 Status:   No Feedback
 Bug Type: Scripting Engine problem
 Operating System: Linux (Gentoo 2007.0)
 PHP Version:  5.3CVS-2007-11-25
 Assigned To:  dmitry
 New Comment:

I have the same problem. Problem exists only on FreeBSD (6.x, 7.0) and
only in CLI php. Here is a backtrace:

(gdb) bt
#0  0x0812cefa in _zend_mm_free_int ()
#1  0x28a021a0 in zm_deactivate_pcntl () from
/usr/local/lib/php/20060613/pcntl.so
#2  0x08147f20 in module_registry_cleanup ()
#3  0x081503f4 in zend_hash_reverse_apply ()
#4  0x08146880 in zend_deactivate_modules ()
#5  0x08106d45 in php_request_shutdown ()
#6  0x081c2581 in main ()


Previous Comments:


[2009-02-19 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2009-02-11 21:38:07] fel...@php.net

Please try using this CVS snapshot:

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

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





[2008-07-14 18:32:40] nic dot rodgers at enableinteractive dot co dot
uk

I get the same error on PHP 5.2.5, 5.2.6, and the latest CVS snapshot.



[2008-03-21 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2008-03-13 13:31:55] j...@php.net

Another thing: Do you load any shared extensions in your php.ini?



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
http://bugs.php.net/43397

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



#44771 [NEW]: Calling nonstatic methods in context of another objects

2008-04-17 Thread igor at webta dot net
From: igor at webta dot net
Operating system: 
PHP version:  5.3CVS-2008-04-18 (snap)
PHP Bug Type: Scripting Engine problem
Bug description:  Calling nonstatic methods in context of another objects

Description:

Calling nonstatic methods in context of another objects

Reproduce code:
---
class A
 {
 public function bar ()
 {
 sort($this->arr);
 }
 }
 
 class B
 {
 public $arr = array('a', 'c', 'b');
 
 function run ()
 {
 A::bar();
 var_dump($this->arr);
 }
 }
 
 $b = new B();
 $b->run();

Expected result:

Exception

Actual result:
--
Sorted array:

array
  0 => string 'a' (length=1)
  1 => string 'b' (length=1)
  2 => string 'c' (length=1)

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



#40794 [Fbk->Opn]: ReflectionObject::getValue()

2007-03-14 Thread igor at webta dot net
 ID:   40794
 User updated by:  igor at webta dot net
 Reported By:  igor at webta dot net
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: FreeBSD 6.0-RELEASE
 PHP Version:  5.2.1
 New Comment:

Sorry, I cannot test latest snapshot on FreeBSD system, I try it on
WinXP with following results:

Test 1:

prop1 = '1';
$obj->prop2 = '2';


$reflect = new ReflectionObject($obj);
$array = array();
foreach($reflect->getProperties() as $prop)
{
$array[$prop->getName()] = $prop->getValue($obj);
}

print_r($array);
?>

Expected result:

Array
(
[prop1] => 1
[prop2] => 2
)

Actual result: 

Array
(
[prop1] => 2
[prop2] => 
)

Test 2:

prop1 = '1';
$obj->prop2 = '2';
$obj->prop3 = '3';



$reflect = new ReflectionObject($obj);
$array = array();
foreach($reflect->getProperties() as $prop)
{
$array[$prop->getName()] = $prop->getValue($obj);
}

print_r($array);
?>

Expected result:

Array
(
[prop1] => 1
[prop2] => 2
[prop3] => 3
)

Actual result: 

Fatal error: Cannot access property started with '\0' in
C:\php\test.php on line 12

Still does not work property.


Previous Comments:


[2007-03-13 19:11:24] [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



----

[2007-03-13 16:59:48] igor at webta dot net

Description:

The following example results in a segfault in PHP 5:

Reproduce code:
---
prop1 = '1';
$obj->prop2 = '2';
 
$reflect = new ReflectionObject($obj);

$array = array();
foreach($reflect->getProperties() as $prop)
{
$array[$prop->getName()] = $prop->getValue($obj);
}

print_r($array);
?>

Expected result:

Array
(
[prop1] => 1
[prop2] => 2
)

Actual result:
--
Segmentation fault (core dumped)

(gdb) backtrace
#0  0x0808a5fa in zim_reflection_property_getValue ()
#1  0x081501b6 in zend_do_fcall_common_helper_SPEC ()
#2  0x0814f915 in execute ()
#3  0x08137fcf in zend_execute_scripts ()
#4  0x08101f41 in php_execute_script ()
#5  0x081b0934 in main ()






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


#40794 [NEW]: ReflectionObject::getValue()

2007-03-13 Thread igor at webta dot net
From: igor at webta dot net
Operating system: FreeBSD 6.0-RELEASE
PHP version:  5.2.1
PHP Bug Type: Reproducible crash
Bug description:  ReflectionObject::getValue()

Description:

The following example results in a segfault in PHP 5:

Reproduce code:
---
prop1 = '1';
$obj->prop2 = '2';
 
$reflect = new ReflectionObject($obj);

$array = array();
foreach($reflect->getProperties() as $prop)
{
$array[$prop->getName()] = $prop->getValue($obj);
}

print_r($array);
?>

Expected result:

Array
(
[prop1] => 1
[prop2] => 2
)

Actual result:
--
Segmentation fault (core dumped)

(gdb) backtrace
#0  0x0808a5fa in zim_reflection_property_getValue ()
#1  0x081501b6 in zend_do_fcall_common_helper_SPEC ()
#2  0x0814f915 in execute ()
#3  0x08137fcf in zend_execute_scripts ()
#4  0x08101f41 in php_execute_script ()
#5  0x081b0934 in main ()


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