Skip to content

Instantly share code, notes, and snippets.

View pierrejoye's full-sized avatar

Pierre Joye pierrejoye

  • Thailand
View GitHub Profile
g:\php-sdk\php-src\branches\PHP_5_4>Debug_TS\php -n -r "var_dump(get_cfg_var( 'magic_quotes_gpc' ) );"
bool(false)
g:\php-sdk\php-src\branches\PHP_5_4>
008+ metadata: test://testdir/chmod, 6
009+ 493
008- metadata: test://testdir/chown, 2
009- test
010- metadata: test://testdir/chown, 3
011- 42
012- metadata: test://testdir/chgrp, 4
013- test
014- metadata: test://testdir/chgrp, 5
015- 42
--TEST--
Test: Xinclude and Streams
--SKIPIF--
<?php
require_once('skipif.inc');
in_array('compress.zlib', stream_get_wrappers()) or die('skip compress.zlib wrapper is not available');
?>
--FILE--
<?php
$dom = new domdocument;
003+
004+ Warning: XMLReader::read(): file:///G:/php-sdk/php-src/branches/PHP_5_4/:2: I/O warning : failed to load external entity "NULL" in G:\php-sdk\php-src\branches\PHP_5_4\ext\xmlreader\tests\012.php on line 27
005+
006+ Warning: XMLReader::read(): YPE foo SYSTEM "G:\php-sdk\php-src\branches\PHP_5_4\ext\xmlreader\tests/012.dtd" in G:\php-sdk\php-src\branches\PHP_5_4\ext\xmlreader\tests\012.php on line 27
007+
008+ Warning: XMLReader::read(): ^ in G:\php-sdk\php-src\branches\PHP_5_4\ext\xmlreader\tests\012.php on line 27
003- string(0) ""
010+ NULL
Index: Zend/zend_API.c
===================================================================
--- Zend/zend_API.c (revision 316345)
+++ Zend/zend_API.c (working copy)
@@ -442,7 +442,35 @@
if (c == 'p') {
/* do not allow trailing space (or single, */
if (Z_STRVAL_PP(arg)[0] == ' ' || Z_STRVAL_PP(arg)[Z_STRLEN_PP(arg) - 1] == ' ') {
- return "a valid path";
+ register int x = 0, y = 0, cur;
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #28220 (mb_strwidth() returns wrong width values for some Hangul characters) [G:\php-sdk\php-src\branches\PHP_5_4\ext\mbstring\tests\bug28220.phpt]
Bug #43301 (mb_ereg*_replace() crashes when replacement string is invalid PHP expression and 'e' option is used) [G:\php-sdk\php-src\branches\PHP_5_4\ext\mbstring\tests\bug43301.phpt]
Bug #49536 (mb_detect_encoding() returns incorrect results when strict_mode is turned on) [G:\php-sdk\php-src\branches\PHP_5_4\ext\mbstring\tests\bug49536.phpt]
Bug #52681 (mb_send_mail() appends an extra MIME-Version header) [G:\php-sdk\php-src\branches\PHP_5_4\ext\mbstring\tests\bug52861.phpt]
Unicode standard conformance test (ill-formed UTF sequences.) [G:\php-sdk\php-src\branches\PHP_5_4\ext\mbstring\tests\illformed_utf_sequences.phpt]
mb_ereg_search_pos() # a test for the basic function of mb_ereg_search_pos [G:\php
001+ string(1) "%"
002+ string(1) "C"
001- string(0) ""
002- string(0) ""
044+
045+ Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileInfo::openFile(G:\php-sdk\php-src\branches\PHP_5_4\ext\spl\tests): failed to open stream: Permission denied' in G:\php-sdk\php-src\branches\PHP_5_4\ext\spl\tests\fileobject_003.php:33
046+ Stack trace:
047+ #0 G:\php-sdk\php-src\branches\PHP_5_4\ext\spl\tests\fileobject_003.php(33): SplFileInfo->openFile()
048+ #1 G:\php-sdk\php-src\branches\PHP_5_4\ext\spl\tests\fileobject_003.php(38): test('G:\php-sdk\php-...', 's', 'l')
049+ #2 {main}
050+ thrown in G:\php-sdk\php-src\branches\PHP_5_4\ext\spl\tests\fileobject_003.php on line 33
044- string(%d) "%stests"
045- string(%d) "tests"
046- string(%d) "%sspl"
Index: ext/spl/tests/fileobject_003.phpt
===================================================================
--- ext/spl/tests/fileobject_003.phpt (revision 316422)
+++ ext/spl/tests/fileobject_003.phpt (working copy)
@@ -33,8 +33,12 @@
} catch (LogicException $e) {
echo "LogicException: ".$e->getMessage()."\n";
}
- $fo = $o->openFile();
- var_dump($fo->getPathName(), $fo->getFileName(), $fo->getPath());
Index: ext/spl/spl_iterators.c
===================================================================
--- ext/spl/spl_iterators.c (revision 316291)
+++ ext/spl/spl_iterators.c (working copy)
@@ -1868,7 +1868,7 @@
spl_dual_it_object *intern;
char *subject, tmp[32], *result;
int subject_len, use_copy, count = 0, result_len;
- zval subject_copy, zcount, *replacement;
+ zval subject_copy, zcount;