Twas the Night Before the Lawyers 😉
Archive for December, 2004
Merry Seasonal Holliday
Posted 12/25/2004 By JasonYummy, Yummy, del.icio.us
Posted 12/22/2004 By JasonI can’t believe it has taken me this long to play with del.icio.us. My del.icio.us page is here. For anyone who is as slow and behind the times as me, del.icio.us is a public bookmark storage mechanism. As you bookmark pages, you can catagorize them into as many sections as you wish, and then can easily lookup those groups of links in your own list…or see what other people have bookmark in the same catagory on their lists.
To me, this seems to lead to a much more directed exploration than random browsing from google hits. The central idea is these are links that someone else has already felt there is enough merit to save and come back to again later.
In addition, I have re-discovered some old friends via common links. I found my friend Boots who had a facinating page on Quantum Mechanics. This is an interesting bit of seredipity, as I had recently asked one of my friends who is a Physics major for just such a summary, as I wanted to use some Quantum Chromodynamics Rules as the basis for “business logic” in a PHP article I was writing.
Chaining Object Calls in PHP4
Posted 12/17/2004 By JasonI ran across a SitePoint post where a user wanted to chain calls to returned objects in PHP4, similar to what you can now do in PHP5. Of course PHP4 does not allow this syntax, but the user came up with the idea of calling a function with the base object, and the series of calls as a string argument. The function would then parse the string and apropriatly eval() the calls. I took his idea as a springboard, and re-wrote it to use recursion for arbitrary call depth.
Here are the functions:
<?php
function &chain(&$obj, $call) {
return call_chain($obj, explode('->',$call));
}
function &call_chain(&$obj, $stack) {
if ($stack) {
eval('$new_obj =& $obj->'.array_shift($stack).';');
return call_chain($new_obj, $stack);
} else {
return $obj;
}
}
?>
And here is a cheesy example:
Read the remainder of this entry »
New PHP Releases
Posted 12/17/2004 By JasonFrom the internals list. Downloads here. But a word of caution, I have heard grumblings of problems from people migrating to 4.3.10 on some message boards I follow.
Update: If you experience any problems with upgrading to PHP 4.3.10, make sure you have the latest Zend Optimizer if you are running it. It seems there are problems with older versions of Zend Optimizer and foreach().
PHP Development Team would like to announce the immediate release of PHP
4.3.10 and 5.0.3. These are maintenance releases that in addition to
non-critical bug fixes address several very serious security issues.These include the following:
CAN-2004-1018 – shmop_write() out of bounds memory write access.
CAN-2004-1018 – integer overflow/underflow in pack() and unpack() functions.
CAN-2004-1019 – possible information disclosure, double free and
negative reference index array underflow in deserialization code.
CAN-2004-1020 – addslashes not escaping
Tan, Rested and Ready
Posted 12/7/2004 By JasonBack from a weeks vacation in Acapulco…


and there is a lot on the table to look at…
- The usual catch-up at work
- Continued writing on my in-progress book (actually managed to finish a chapter on vacation!)
- Marcus released some interesting object persistence code here to the public domain.
- WACT had release 0.2a!!!
- Marco has something new and warm in the works…
- It looks like someone hacked my WordPress instance…need to figure out what is up with that

A week without the Internet is good for the soul, but bad for keeping current 