Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Zend/zend_lazy_objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static zend_lazy_object_info* zend_lazy_object_get_info(const zend_object *obj)

static bool zend_lazy_object_has_stale_info(const zend_object *obj)
{
return zend_hash_index_find_ptr(&EG(lazy_objects_store).infos, obj->handle);
return zend_hash_index_find_ptr(&EG(lazy_objects_store).infos, obj->handle) != NULL;
}

ZEND_API void zend_lazy_object_get_initializer_callback(zend_object *obj, zval *callback)
Expand Down
2 changes: 1 addition & 1 deletion main/streams/userspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ static int php_userstreamop_cast(php_stream *stream, int castas, void **retptr)
php_stream * intstream = NULL;
int ret = FAILURE;
/* If we are checking if the stream can cast, no return pointer is provided, so do not emit errors */
bool report_errors = retptr;
bool report_errors = retptr != NULL;

switch(castas) {
case PHP_STREAM_AS_FD_FOR_SELECT:
Expand Down
2 changes: 1 addition & 1 deletion sapi/cli/php_cli_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -2959,7 +2959,7 @@ int do_cli_server(int argc, char **argv) /* {{{ */

{
r = 0;
bool ipv6 = strchr(server.host, ':');
bool ipv6 = strchr(server.host, ':') != NULL;
php_cli_server_logf(
PHP_CLI_SERVER_LOG_PROCESS,
"PHP %s Development Server (http://%s%s%s:%d) started",
Expand Down
Loading