Skip to content

Instantly share code, notes, and snippets.

View shaneharter's full-sized avatar

Shane Harter shaneharter

View GitHub Profile
@shaneharter
shaneharter / stomp_test.php
Created July 3, 2012 18:18
stomp client test script
<?php
/**
* Test Stomp Throughput
* @author Shane Harter
*/
require 'stomp/Stomp.php';
$start = microtime(true);
function bashrc() {
# If $script variable exists, use it as filename to append. If not, use $1
if [ -z "$script" ]
then fname="$1"
else fname="$script"
fi
if [ -z "$fname" ]
then return 1
fi
<?php
function shutdown_function()
{
$error = error_get_last();
if (is_array($error) && isset($error['type']) == false)
return;
switch($error['type'])
{