For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > August 2006 > cvs: ZendEngine2(PHP_5_2) /tests bug38461.phpt









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: ZendEngine2(PHP_5_2) /tests bug38461.phpt
Antony Dovgal

2006-08-15, 3:56 am

tony2001 Tue Aug 15 08:58:40 2006 UTC

Added files: (Branch: PHP_5_2)
/ZendEngine2/tests bug38461.phpt
Log:
add test



http://cvs.php.net/viewvc.cgi/ZendE...=markup&rev=1.1
Index: ZendEngine2/tests/bug38461.phpt
+++ ZendEngine2/tests/bug38461.phpt
--TEST--
Bug #38461 (setting private attribute with __set() produces segfault)
--FILE--
<?php

class Operation
{
function __set( $var, $value )
{
$this->$var = $value;
}
}

class ExtOperation extends Operation
{
private $x;
}

$op = new ExtOperation;
$op->x = 'test';

echo "Done\n";
?>
--EXPECT--
Done
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com