<commit_before>--TEST--
XHProf: Curl Summary
--SKIPIF--
<?php
if (!extension_loaded('curl') || PHP_VERSION_ID <= 50399) {
    print "skip: Requires curl extension";
}
?>
--FILE--
<?php

include_once dirname(__FILE__).'/common.php';

$options = array('argument_functions' => array('curl_exec'));

tideways_enable(0, $options);

$ch = curl_init('http://localhost');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

print_canonical(tideways_disable());
--EXPECTF--
main()                                  : ct=       1; wt=*;
main()==>curl_exec#http://localhost#%d   : ct=       1; wt=*;
main()==>curl_init                      : ct=       1; wt=*;
main()==>curl_setopt                    : ct=       1; wt=*;
main()==>tideways_disable               : ct=       1; wt=*;<commit_msg>Fix test<commit_after>--TEST--
XHProf: Curl Summary
--SKIPIF--
<?php
if (!extension_loaded('curl') || PHP_VERSION_ID <= 50399) {
    print "skip: Requires curl extension";
}
?>
--FILE--
<?php

include_once dirname(__FILE__).'/common.php';

$options = array('argument_functions' => array('curl_exec'));

tideways_enable(0, $options);

$ch = curl_init('http://localhost');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

print_canonical(tideways_disable());
--EXPECTF--
main()                                  : ct=       1; wt=*;
main()==>curl_exec#http://localhost     : ct=       1; wt=*;
main()==>curl_init                      : ct=       1; wt=*;
main()==>curl_setopt                    : ct=       1; wt=*;
main()==>tideways_disable               : ct=       1; wt=*;
{'fraction_non_alphanumeric': 0.19029850746268656, 'fraction_numerical': 0.013681592039800995, 'mean_word_length': 2.67351598173516, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6924966', 'n_tokens_mistral': 595, 'n_tokens_neox': 542, 'n_words': 106}