This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* This class is part of the XP framework | |
| * | |
| * $Id$ | |
| */ | |
| uses('xp.compiler.ast.Node'); | |
| /** | |
| * Coalesce operator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/core/src/main/php/lang/XPClass.class.php b/core/src/main/php/lang/XPClass.class.php | |
| index c4e5ee9..33b29ed 100644 | |
| --- a/core/src/main/php/lang/XPClass.class.php | |
| +++ b/core/src/main/php/lang/XPClass.class.php | |
| @@ -583,19 +583,125 @@ | |
| * @throws lang.ClassFormatException | |
| */ | |
| public static function parseAnnotations($input, $context) { | |
| - ob_start(); | |
| - $annotations= eval('return array('.($eval= preg_replace( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/core/src/main/php/util/PropertyManager.class.php b/core/src/main/php/util/PropertyManager.class.php | |
| index 444f335..75cd0db 100644 | |
| --- a/core/src/main/php/util/PropertyManager.class.php | |
| +++ b/core/src/main/php/util/PropertyManager.class.php | |
| @@ -127,19 +127,25 @@ | |
| * | |
| * @param string name | |
| * @return util.PropertyAccess | |
| + * @throws lang.ElementNotFoundException | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* This class is part of the XP framework | |
| * | |
| * $Id$ | |
| */ | |
| uses('io.File'); | |
| /** | |
| * Local socket: If "localhost" is supplied as host name to a MySqlx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/core/ChangeLog-5.9 b/core/ChangeLog-5.9 | |
| index cda21fd..2308d9e 100644 | |
| --- a/core/ChangeLog-5.9 | |
| +++ b/core/ChangeLog-5.9 | |
| @@ -8,12 +8,16 @@ Git commit: ????? | |
| Heads up! | |
| ~~~~~~~~~ | |
| +- The SAPI feature is now deprecated and will be removed in next major series! | |
| + (friebe) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| These bugs have now been fixed! The RC provided inside PHP Bug #60879 contains | |
| fixes for both. This is kept for historic reasons. | |
| (http://windows.php.net/downloads/snaps/ostc/build/php-5.4.0-RC8-1/php-5.4.0RC8-nts-Win32-VC9-x86.zip) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/core/src/main/php/text/csv/CsvWriter.class.php b/core/src/main/php/text/csv/CsvWriter.class.php | |
| index 811b02d..70c396e 100644 | |
| --- a/core/src/main/php/text/csv/CsvWriter.class.php | |
| +++ b/core/src/main/php/text/csv/CsvWriter.class.php | |
| @@ -60,15 +60,16 @@ | |
| */ | |
| protected function writeValues($values, $raw= FALSE) { | |
| $line= ''; | |
| - foreach ($values as $v => $value) { | |
| - if (!$raw && isset($this->processors[$v])) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| uses('unittest.TestCase'); | |
| abstract class FixtureTest extends TestCase { | |
| protected $fixture= NULL; | |
| protected abstract function newFixtureInstance(); | |
| public function setUp() { | |
| $this->fixture= $this->newFixtureInstance(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| uses('peer.SSLSocket'); | |
| class Bug54511 extends Object { | |
| public static function main(array $args) { | |
| $s= new SSLSocket('smtpb.scig.gov.hk', 465); | |
| $s->connect(); | |
| Console::writeLine('OK: ', $s); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Performance { | |
| protected static int inc(int? $arg) { | |
| return $arg + 1; | |
| } | |
| public static void main(string[] $args) { | |
| $a= 0; | |
| for ($i= 0; $i < 10000000; $i++) { | |
| $a+= self::inc($a); |