Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
8758cc16
Commit
8758cc16
authored
Jul 13, 2018
by
Bo Yang
Committed by
Feng Xiao
Jul 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix php tests
parent
bd1224e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
message.c
php/ext/google/protobuf/message.c
+1
-0
compatibility_test.sh
php/tests/compatibility_test.sh
+2
-0
test_util.php
php/tests/test_util.php
+1
-0
No files found.
php/ext/google/protobuf/message.c
View file @
8758cc16
...
...
@@ -283,6 +283,7 @@ void build_class_from_descriptor(
// -----------------------------------------------------------------------------
void
Message_construct
(
zval
*
msg
,
zval
*
array_wrapper
)
{
TSRMLS_FETCH
();
zend_class_entry
*
ce
=
Z_OBJCE_P
(
msg
);
MessageHeader
*
intern
=
NULL
;
if
(
EXPECTED
(
class_added
(
ce
)))
{
...
...
php/tests/compatibility_test.sh
View file @
8758cc16
...
...
@@ -122,6 +122,8 @@ composer install
tests
=(
array_test.php encode_decode_test.php generated_class_test.php map_field_test.php well_known_test.php
)
sed
-i
.bak
'/php_implementation_test.php/d'
phpunit.xml
sed
-i
.bak
'/generated_phpdoc_test.php/d'
phpunit.xml
sed
-i
.bak
's/generated_phpdoc_test.php//g'
tests/test.sh
sed
-i
.bak
'/memory_leak_test.php/d'
tests/test.sh
for
t
in
"
${
tests
[@]
}
"
do
remove_error_test tests/
$t
...
...
php/tests/test_util.php
View file @
8758cc16
...
...
@@ -241,6 +241,7 @@ class TestUtil
if
(
PHP_INT_SIZE
==
4
)
{
assert
(
'-43'
===
$m
->
getRepeatedInt64
()[
0
]);
assert
(
'43'
===
$m
->
getRepeatedUint64
()[
0
]);
var_dump
(
$m
->
getRepeatedSint64
()[
0
]);
assert
(
'-45'
===
$m
->
getRepeatedSint64
()[
0
]);
assert
(
'47'
===
$m
->
getRepeatedFixed64
()[
0
]);
assert
(
'-47'
===
$m
->
getRepeatedSfixed64
()[
0
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment