Skip to content

Instantly share code, notes, and snippets.

View JoelMarcey's full-sized avatar

Joel Marcey JoelMarcey

View GitHub Profile
@JoelMarcey
JoelMarcey / gist:8032369
Created December 19, 2013 00:37
Latest HHVM optimized build phpbb3 parser_test.php phpunit test run.
~/local/fbcode-opt/hphp/test/frameworks/frameworks/phpbb3] hhvm ../../vendor/bin/phpunit tests/bbcode/parser_test.php
PHPUnit 3.7.24 by Sebastian Bergmann.
Configuration read from /data/users/joelm/fbcode-opt/hphp/test/frameworks/frameworks/phpbb3/phpunit.xml.dist
.........F...............................I
Time: 4.86 seconds, Memory: 17.66Mb
There was 1 failure:
{
"minimum-stability": "dev",
"require-dev": {
"phpunit/phpunit": "3.9.x-dev#50b1b1203104553bf98fbfd80fc1cf6bf9bdbab4",
"phpunit/php-invoker": "1.1.3",
"phpunit/dbunit": "1.2.3",
"phpunit/phpunit-selenium": "1.3.2",
"phpunit/phpunit-story": "1.0.2"
}
}
HHVM
----
hhvm ../../../../../vendor/bin/phpunit
HipHop Fatal error: $this is null in /data/users/joelm/fbcode-opt/hphp/test/frameworks/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php on line 223
Zend
----
HHVM
----
hhvm ../../vendor/bin/phpunit
HipHop Fatal error: Class SS_TestListener contains abstract method (addRiskyTest) and must therefore be declared abstract or implement the remaining methods in /data/users/joelm/fbcode-opt/hphp/test/frameworks/framework_downloads/silverstripe/framework/dev/TestListener.php on line 12
Zend
----
@JoelMarcey
JoelMarcey / gist:11185876
Created April 22, 2014 16:35
fromArray doesn't exist; use constructor instead.
<?hh
function main(): void {
$x = array(1, 2, 3);
$y = new ImmMap($x);
var_dump($y);
}
main();
@JoelMarcey
JoelMarcey / gist:a66c6af973d88a503381
Created May 23, 2014 05:06
EZC Cleanup build errors
hphp/runtime/ext_zend_compat/php-src/Zend/zend_list.cpp:59:9: error: 'list' in 'class HPHP::ZendRequestLocalVector<HPHP::ZendResourceData*>' does not name a type
hphp/runtime/ext_zend_compat/php-src/Zend/zend_list.cpp:62:3: error: 'zend_rsrc_list' does not name a type
hphp/runtime/ext_zend_compat/php-src/Zend/zend_list.cpp: In function 'zend_rsrc_list_entry* zend_list_id_to_entry(int, void***)':
hphp/runtime/ext_zend_compat/php-src/Zend/zend_list.cpp:68:15: error: 'RL' was not declared in this scope
hphp/runtime/ext_zend_compat/php-src/Zend/zend_list.cpp: In function 'int zend_list_insert(void*, int, void***)':
hphp/runtime/ext_zend_compat/php-src/Zend/zend_list.cpp:80:6: error: 'RL' was not declared in this scope
hphp/runtime/ext_zend_compat/php-src/Zend/zend_list.cpp: In function 'int _zend_list_delete(int, void***)':
hphp/runtime/ext_zend_compat/php-src/Zend/zend_list.cpp:92:10: error: 'RL' was not declared in this scope
hphp/runtime/ext_zend_compat/php-src/Zend/zend_list.cpp: In function 'int zval_get_res
<?php
// Set the limit to 5 MB.
$fiveMBs = 5 * 1024 * 1024;
$fp = fopen("php://temp/maxmemory:$fiveMBs", 'r+');
fputs($fp, "hello\n");
// Read what we have written.
rewind($fp);
echo stream_get_contents($fp);
hhvm tools/check_native_signatures.php runtime/ext/xmlwriter/ext_xmlwriter.cpp runtime/ext/xmlwriter/ext_xmlwriter.php
Mismatched argument type for function 'xmlwriter::startdocument' at index '0'. PHP: ?string C++:
const String&
Mismatched argument type for function 'xmlwriter::startdocument' at index '1'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::startdocument' at index '2'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::startdtd' at index '1'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::startdtd' at index '2'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::writedtd' at index '1'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::writedtd' at index '2'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::writedtd' at index '3'. PHP: ?string C++: const String&
rename hphp/test/zend/{good => bad}/Zend/tests/array_type_hint_001.php (100%)
rename hphp/test/zend/{good => bad}/Zend/tests/bug39003.php (100%)
rename hphp/test/zend/{good => bad}/Zend/tests/bug41117_1.php (100%)
rename hphp/test/zend/{good => bad}/Zend/tests/bug42802.php (100%)
rename hphp/test/zend/{good => bad}/Zend/tests/bug43332_1.php (100%)
rename hphp/test/zend/{good => bad}/Zend/tests/bug50146.php (100%)
rename hphp/test/zend/{good => bad}/Zend/tests/closure_022.php (100%)
rename hphp/test/zend/{good => bad}/Zend/tests/closure_027.php (100%)
rename hphp/test/zend/{good => bad}/Zend/tests/closure_040.php (100%)
rename hphp/test/zend/{good => bad}/Zend/tests/closure_042.php (100%)
rename hphp/test/zend/{bad => good}/Zend/tests/class_properties_dynamic.php (100%)
rename hphp/test/zend/{bad => good}/Zend/tests/traits/bug55214.php (100%)
rename hphp/test/zend/{bad => good}/Zend/tests/try_catch_finally_007.php (100%)
rename hphp/test/zend/{bad => good}/ext/date/tests/idate_variation1.php (100%)
rename hphp/test/zend/{bad => good}/ext/date/tests/strftime_variation1.php (100%)
rename hphp/test/zend/{bad => good}/ext/mbstring/tests/mb_decode_mimeheader_variation1.php (100%)
rename hphp/test/zend/{bad => good}/ext/mbstring/tests/mb_encode_mimeheader_variation1.php (100%)
rename hphp/test/zend/{bad => good}/ext/mbstring/tests/mb_encode_mimeheader_variation4.php (100%)
rename hphp/test/zend/{bad => good}/ext/mbstring/tests/mb_encode_mimeheader_variation5.php (100%)
rename hphp/test/zend/{bad => good}/ext/mbstring/tests/mb_ereg_error.php (100%)