2008 年 08 月

浏览模式: 标准 | 列表 | 图文
小家伙游泳的视频

小家伙游泳的视频

小家伙游泳的视频哦。。。不过不在本人的服务器上,理论上是7天有效。


http://exs.mail.foxmail.com/cgi-bin/downloadfilepart/svrid6/M2U00027.MPG?svrid=6&fid=79a8fc438bec7135740e14d6697c1e66724c00f2fda93989&&txf_fid=c36bebd48096c43f473a509c4b0943e5f1daa528&&txf_sid=50ac72cfe485f717747b27f74c65843b37fcc522


提取码可以通过评论获取,同时请附上邮件地址,或者QQ号,我会尽快发给你们的。呵呵

16ef7451

关于尿布的选用

关于尿布的选用

目前为止,小家伙用了三种一次性尿布:帮宝适、妈咪宝贝、嘘嘘乐。
初步感觉:
帮宝适相对比较中性,没有特色就是他的特色
妈咪宝贝的尿布在肚脐附近有个凹槽,说是为了防止尿液太多,影响到肚脐
嘘嘘乐在外形上感觉是最差的,而且两侧的紧身胶带质量一般。不过有个特色功能,就是尿布上有检测尿液存量的功能。

如果没有什么特别的需求,那么帮宝适还是确实不错的,它的吸水量比较大,而且两边的胶带很牢固。

节目预告:学习PHP持久化

节目预告:学习PHP持久化

对象的持久化最初是从JAVA那边提出来的,只是人家是编译型的语言,而PHP是解释性语言,在PHP4的时候已经可以持久化了,只是那时候PHP的性能还只是一般(相对于5而言,主要是指对象操作方面),如今PHP5横行于世,持久化也就在各种各样的项目中被使用。

今天再整理一下,争取明天发出来,如果太多,那就只能连载了。。

本人较懒,黑黑

GOOGLE短信提醒

GOOGLE短信提醒

不得不说,有时候GOOGLE确实比较方便,在finance.google.com刚刚推出的时候,GOoGLE就推出了一个短信查询股票的功能,只是后来。。。好象改了一个很长的服务号码,就被我直接忽略掉了,实在记不住。

如今,google sms alert又推出一个比较人性化的功能,即,在aoyun期间,针对你喜欢的项目,在比赛后大约两小时内给你发送免费短信。免费的哦。你可以自由订阅,网址是:http://www.google.com/sms/alerts,可能需要你事先注册一下你的手机号,很方便。我是一下子就收到短信了。

听说这个平台是google与腾讯合作的,经常收腾讯短信的人,如果看到号码与腾讯相仿,千万不要紧张。

至于是否真的要钱,则看谷歌移动支持中心,里面有详细的解释,特别是:该服务如何收费?,当然,订阅多了的话,也需要看:我订阅了多种内容,如何管理这些短信提醒?,不过,不是每个人的手机都支持的,不过在中国应该是都可以的,比方说我的手机号码是否支持订阅?呵呵

希望aoyun期间能够收到令人振奋的消息。不过我不是很期待。。。

MYSQL小技巧

MYSQL小技巧

经常在使用MYSQL,那么总是有一些小技巧的,我在这里稍稍介绍一点,这也是日常工作中常用到的。

1、尽量在SQL中对字段使用函数(条件部分)
在WHERE条件中,对字段使用函数的时候,往往就自动放弃了该字段的索引值了。举例:

SELECT * FROM order WHERE YEAR(OrderDate)<2001;

SELECT * FROM order WHERE OrderDate<"2001-01-01";

第二句会比第一句快很多,数据少可能看不出,数据量超过50W以后将非常明显。

2、尽量在SQL的条件中先取值再比较

SELECT * FROM inventory WHERE Amount/7<24;

SELECT * FROM inventory WHERE Amount<24*7;

虽然取回来的值都一样,但是。。。第一句是拿字段中的值先进行计算,再比较大小,而第二句却仅仅比较大小,谁快谁慢,一眼便知。

3、在搜索字符型字段时,我们有时会使用 LIKE 关键字和通配符,这种做法虽然简单,但却也是以牺牲系统性能为代价的。(这个我自己没有测过,不能乱讲)。。。
例如下面的查询将会比较表中的每一条记录。

SELECT * FROM books WHERE name like "MySQL%"

但是如果换用下面的查询,返回的结果一样,但速度就要快上很多:

SELECT * FROM books WHERE name>="MySQL"and name<"MySQM"

4、应该注意避免在查询中让MySQL进行自动类型转换,因为转换过程也会使索引变得不起作用。

5、为字段选用最恰当的属性

MySQL可以很好的支持大数据量的存取,但是一般说来,数据库中的表越小,在它上面执行的 查询也就会越快。因此,在创建表的时候,为了获得更好的性能,我们可以将表中字段的宽度设得尽可能小。例如,在定义邮政编码这个字段时,如果将其设置为 CHAR(255),显然给数据库增加了不必要的空间,甚至使用VARCHAR这种类型也是多余的,因为CHAR(6)就可以很好的完成任务了。同样的, 如果可以的话,我们应该使用MEDIUMINT而不是BIGIN来定义整型字段。

另外一个提高效率的方法是在可能的情况下,应该尽量把字段设置为NOT NULL,这样在将来执行查询的时候,数据库不用去比较NULL值。

对于某些文本字段,例如“省份”或者“性别”,我们可以将它们定义为ENUM类型。因为在MySQL中,ENUM类型被当作数值型数据来处理,而数值型数据被处理起来的速度要比文本类型快得多。这样,我们又可以提高数据库的性能。

6、使用命令复制表时,请先禁止源表中的索引,因为在COPY的过程中,MYSQL会同样复制索引,而不是复制数据后重建索引,因此建议COPY前先禁用,然后COPY完后,为目标表添加相应的索引。

PHP 5.0 中多态性的实现方案浅析

PHP 5.0 中多态性的实现方案浅析

  一、 PHP 5和多态性

本文想讨论面向对象编程中最为重要的部分之一--多态 性的设计。为了说明问题,我使用了PHP 5。在你继续阅读之前,请首先明确本文并不是完全有关于PHP的。尽管这种语言在以前的两个主要版本中在快速开发方面已经取得很大的进步,但是,在其与更 为成熟的语言如C++或者Java相匹敌之前,它对于对象的支持还要经历一段历程。

如果你是一位面向对象编程的入门者,那么本文可能不适合你,因为多态性这部分知识比较特别:一旦理解了它,你将永远不会忘记。如果你想简单了解一点对象编程和设计知识,并且当某人说"某个对象是多态的"时,还不十分清楚这是什么意思的话,那么本文正适合你。
到本文最后,你应该知道什么是多态性以及如何把它应用到面向对象的设计中,并且你会了解PHP 5中对象编程的优点与不足。

二、什么是多态性?

多态性,其来自于dictionary.com的定义是"以不同形式,阶段或者类型出现在独立的组织中或者同种组织中,而不存在根本区别。"由该定义, 我们可以认为,多态性是一种通过多种状态或阶段来描述相同对象的编程方式。其实,它的真正意义在于:实际开发中,我们只需要关注一个接口或基类的编程,而 不必担心一个对象所属于的具体类(class)。

如果你熟悉设计模式,即使只是有个初步了解,那么你也会了解这个概念。事实上,多态 性可能是基于模式设计编程中的最伟大的工具。它允许我们以一种逻辑的方式来组织相类似的对象从而实现在具体编码时不必担心对象的具体类型;而且,我们只需 要对一个所期望的接口或基类编程即可。一个应用程序越抽象,则它就显得越灵活--而多态性是对行为加以抽象的最好的方式之一。

例如, 让我们考虑一个叫Person的类。我们可以用称为David,Charles和Alejandro的类来子类化Person。Person有一个抽象方 法AcceptFeedback(),所有的子类都要实现这个方法。这意味着,任何使用基类Person的子类的代码都能调用方法 AcceptFeedback()。你不必检查该对象是一个David还是一个Alejandro,仅知道它是一个Person就够了。结果是,你的代码 只需关注"最小公分母"-Person类即可。

在这个示例中的Person类也可以被创建为一个接口。当然,与上面相比存在一些区 别,主要在于:一个接口并没有给出任何行为,而仅确定了一组规则。一个Person接口要求的是"你必须支持AddFeedback()方法",而一个 Person类可以提供一些AddFeedback()方法的缺省代码-你对之的理解可以是"如果你不选择支持AddFeedback(),那么你应该提 供一种缺省实现。"至于如何选择接口或基类则并非本文的主题;但是,一般说来,你需要通过基类来实现一个缺省的方法。如果你能够简单地勾勒出你的类所要实 现的一组期望的功能,那么你也可以使用一个接口。

三、应用多态性设计

我们将继续使用Person基类的例子,现在让我们分析一个非多态性的实现。下列示例中使用了不同类型的Person对象--这是一种非常不理想的编程方式。注意,实际的Person类被省略。目前为止,我们仅关心代码调用的问题。

<?php
$name = $_SESSION['name'];
$myPerson = Person::GetPerson($name);
switch (get_class($myPerson)){
case 'David' :
$myPerson->AddFeedback('Great Article!','Some Reader', date('Y-m-d'));
break;
case 'Charles':
$myPerson->feedback[] = array('Some Reader', 'Great Editing!');
break;
case 'Alejandro' :
$myPerson->Feedback->Append('Awesome Javascript!');
break;
default :
$myPerson->AddFeedback('Yay!');
}
?>
  这个示例展示了行为不同的对象,还有一个switch语句用于区分不同的Person类对象,从而执行其各自相应的正确操作。注意,这里针对不同条件的回馈注释是不同的。在实际应用程序开发中可能不会出现这种情形;我仅为了简单地说明类实现中存在的区别。

下面的一个示例使用了多态性。
<?php
$name = $_SESSION['name'];
$myPerson = Person::GetPerson($name);
$myPerson->AddFeedback('Great Article!', 'SomeReader', date('Y-m-d'));
?>
  注意,这里没有switch语句,而最重要的是,缺乏有关Person::GetPerson()会返回什么类型的 对象。而另一个Person::AddFeedback()是一个多态方法。行为完全是由具体类进行封装的。请记住,在此无论我们使用的是 David,Charles还是Alejandro,调用代码从不必了解具体类的功能,而仅知道基类就可以了。

尽管我的示例并不完 美,但是,从调用代码的角度,它已经展示了多态性的基本用法。现在我们需要分析这些类的内部实现。从一个基类进行派生的一个最伟大的地方在于,该派生类能 够存取父类的行为,这种情况常常是缺省的实现,但是也可能出现在类继承链中用于创建更为复杂的行为。下面是这种情况的一个简单展示。
<?php
class Person{
function AddFeedback($comment, $sender, $date){
//把回馈添加到DB
}
}
class David extends Person{
function AddFeedback($comment, $sender){
parent::AddFeedback($comment, $sender,
date('Y-m-d'));
}
}
?>
  在此,David类中的AddFeedback方法实现中首先调用了Person::AddFeedback方法。你可能注意到,它模仿了C++,Java或C#中的方法重载。请记住,这仅是一个简单化的示例,并且你编写的实际代码完全依赖于你的实际工程。
四、PHP 5中的迟绑定

依我的看法,迟绑定正是使得Java和C#如此引人注目的重要原因。它们允许基类方法用"this"或$this来调用方法(即使它们不存在于基类中或调用一个基类中的方法,它有可能为继承类中的另一个版本所代替)。你可以认为如下的实现在PHP中是允许的:
<?php
class Person{
function AddFeedback($messageArray) {
$this->ParseFeedback($messageArray);
//写向数据库
}
}
class David extends Person{
function ParseFeedback($messageArray){
// 进行一些分析
}
}
?>
  记住,在Person类中并没有ParseFeedback。现在,假定你拥有这一部分实现代码(为了本例说明问题起见),那么这会导致$myPerson成为一个David对象:
<?php
$myPerson = Person::GetPerson($name);
$myPerson->AddFeedback($messageArray);
?>
  出现分析错误!大致错误信息为,方法ParseFeedback并不存在或者一些类似的信息。关于PHP 5中的迟绑定我们就讨论这些!下面我们再归纳一下迟绑定的概念。

迟绑定意味着,方法调用在最后时刻才绑定到目标对象。这意味着,当该方法被运行时刻调用时,那些对象已经有了一种具体类型。在我们上面的示例中,你调用 了David::AddFeedback(),而既然David::AddFeedback()中的$this引用一个David对象,那么你可以逻辑地 假定ParseFeedback()方法是存在的--但事实上它并不存在,因为AddFeedback()是在Person中定义的,并且从Person 类中调用ParseFeedback()。
不幸的是,没有简单的方法来消除PHP 5中的这种行为。这意味着,当你想创建一个灵活的多态类层次时你可能有点无能为力。

我必须指出,我选择PHP 5作为本文的表达语言仅仅是因为:这种语言并没有实现对象概念的完美抽象!因为PHP 5还处于其测试版本运行期,所以这是可以谅解的。另外,既然该语言中加入了抽象类和接口,迟绑定也应该被实现。

五、小结

至此,你应该基本了解什么是多态性以及为什么PHP 5在实现多态性方面并不完美。一般说来,你应该知道如何用一个多态性对象模型来封装有条件的行为。当然,这样会提高你的对象的灵活性,并且意味着更少的代 码实现。另外,通过封装满足一定条件的行为(具体要依赖于对象的状态),你还提高了代码的清晰程度。

-------------------------------------
注:现在大多数的程序都已经采用了这种特性,在框架中运用的犹为明显,虽然文章有点老了,但还是值得一看。
象最后一句说的,这提高了代码的清晰程度

一些看似简单却容易被忽视的小技巧

一些看似简单却容易被忽视的小技巧

在工作中我总是会发现有些人的程序里有些不妨碍程序正常执行的小问题,并且很多人都常常愿意这样写,下面我列举一下

1.php属于弱语言,所以在使用一个变量的时候,不需要为其指定变量类型和初始化值,但是我强烈建议在使用一个变量前,先为其初始化一个默认值,这样既安全又规范

2.
if (条件表达式1 && 条件表达式2)
//do something
else
//do something
?>

当进行与运算操作的时候,最好把最可能返回"False"的表达式放在操作的前面,这样当if条件遇到false后,就不在执行false以后的运算了,这样加快程序的执行速度,但是要注意一点的是false以后的条件表达式如果是个赋值的表达式,例如:


$a = 1;
$b = 0;
if (($a > 1) && ($b = 2))
?>

这段程序在$a > 1这个地方就执行完了,$b = 2的赋值操作将不再执行,结果$b的值还是0.


3.在使用mysql数据库的时候,执行"select count"操作的时候,尽量使用count(*)而不是count(一个字段),count(*)会直接使用索引文件进行统计(inndb类型的表除外)而不是去遍历整个数据表

4.在使用group by的时候,如果没有必要对返回结果集合进行排序,建议加上"order by null",这样会减少一步排序的操作

5.为table建立复合索引的时候,比如"name-city-age"这个索引,这个索引是由表中的字段name,city,age组成的,虽然我们 只为这张表建立了一个索引,但其实...嘿嘿嘿...这是三个索引,恩,哪三个索引呢...name,name-city,name-city-age这 三个索引,请注意,复合索引遵循的是最左原则,所以name-age,city-age将不会使用索引...

6.在建索引的时候,如果能保证这个(复合)索引的字段(组合)的值肯定是唯一值,那么就把这个(复合)索引建成唯一索引...

取自abetterday的博客:http://www.phpwap.cn/?action=articleContent&articleId=153

[备查]宝宝拉肚子原因与治疗

[备查]宝宝拉肚子原因与治疗

宝宝拉肚子腹泻的原因及治疗

来源:http://blog.ci123.com/yy-bb/entry/25278

婴儿怎样才算拉肚子

  婴儿腹泻是多由饮食不当或肠道内、外感染所引起的一种消化道功能紊乱综合症,多发生在2岁以下婴儿。 婴儿喂食母乳时,正常每天大便次数会比喂食牛奶多一至二次,为黄绿色糊便;而喂食牛奶者,则为黄色成形便。腹泻则是指粪便中水分增加,且大便成分变质而 言。一般而言,腹泻时大便的次数会增加、水分增加、大便颜色变成绿色、气酸臭。
主要症状有: 1、轻症:每天大便五至八次,可能伴随着轻微发烧或呕吐。粪便呈黄绿色,带粘液且呈蛋花汤样,并伴有轻微腹胀,肠鸣音亢进。 2、中度腹泻:每天大便十次,稀水便、气味酸且臭,可能中度发烧。 3、重症:腹泻频繁,每天大便八至十五次,呈水样、量多,有酸臭味,烦躁、嗜睡、萎靡,甚至昏迷、惊厥,血丝黏液便,前囟门凹陷,皮肤及嘴唇干燥等。 4、部分患者可出现明显脱水、酸中毒、电解质紊乱,如低钾或低镁等。

婴儿拉肚子的原因

  造成拉肚子的原因很多,可能是由于感染引起肠胃炎、吃入不洁的食物和水、奶瓶消毒不当、牛奶浓度不对、饮食过量或精神紧张等等。 一岁以内的婴儿腹泻发病率很高,这是因为婴儿消化功能不成熟,发育又快,所需热量和营养物质多,一旦喂养或护理不当,就容易发生腹泻。 常见的腹泻原因有:进食量过多,或次数过多,加重了胃肠道的负担;喂的质量不当,使食物不能完全被消化;或喂养不定时,胃肠道不能形成定时分泌消化液的条 件反射,使机体消化功能降低;还有母亲喂养期间尽量避免吃凉的食物等。总之,不合理的喂养时婴儿腹泻的主要原因。另外,当小儿着凉,患感冒、肺炎等疾病 时,也可引起消化道功能紊乱而发生腹泻。 如果腹泻严重,伴有呕吐发烧、眼窝凹陷、口渴、口唇发干、尿少,就说明已经引起脱水了,应该去医院输液治疗。为防止脱水,应在腹泻次数较多时,食量减少饮 食,甚至禁食,使胃肠道得到休息。同时口服补液盐或自配糖烟水、盐米汤,少量多次,以防止脱水发生。 患腹泻的孩子要注意腹部保暖,以减少肠蠕动,可以用毛巾裹腹部或热水袋热敷腹部,同时让婴儿多休息。排便后可用温水清洗臀部,防止臀红发生。

婴儿拉肚子怎么办

  宝宝腹泻以夏、秋季节多见,其发病原因除肠胃道受细菌感染外,主要是由于喂养不当、天气太热或突然着凉等。如果未按时添加辅食或喂养不定时,一旦食物变化 较多,小儿肠道不能适应,也会引起消化不良而使宝宝腹泻。不论哪种原因的腹泻,宝宝每日大便次数可达4、5次乃至十几次,常伴有恶心、呕吐、食欲下降或拒 食的现象。   

  宝宝腹泻时的一般饮食原则是,减少膳食量以减轻肠道负担,限制脂防及碳水化合物,给宝宝以清淡饮食,以利于其肠道修复。   

  用母乳喂养的宝宝,腹泻时不必停止喂奶,只需适当减少喂奶量,缩短喂奶时间,并延长喂奶间隔。母亲也应少食脂肪类食物,每次喂奶前,可喝一大碗开水, 稀释母乳,有利于减轻宝宝腹泻症状。人工喂养或混合喂养的宝宝,在腹泻时,不要添加新的辅助食品。病情较重时,还应暂时停止喂牛奶等主食。禁食时间一般为 6-8小时为宜,最长不能超过12小时。禁食期间,可用胡萝卜汤、苹果泥、米汤等来喂宝宝,以补充无机盐及维生素,这些食物易于消化,能减轻肠胃的负担。   

  目前世界卫生组织向各国推荐口服补液盐,可以按其说明配成液体,根据宝宝的腹泻情况分多次予以添加。只要注意充分补充水分,一般宝宝都可安全度过腹泻 期。   

  如果宝宝腹泻次数较多,或出现口唇干燥、两眼凹陷、面色发灰、尿量减少及皮肤失去弹性等现象时,显示宝宝有脱水迹象,应立即送医院诊治。

婴儿拉肚子的治疗

  1、及时给腹泻婴儿用口服液补盐。
2、不要要求医生开很多控制腹泻的药物。因为腹泻原因复杂,用药不当有害无益。
3、注意腹泻患儿的饮食,不一定要禁食,选喂容易消化的食物。
4、腹泻严重者,应及时送医院治疗。

婴儿拉肚子饮食调节

  送大便到医院化验,如果是感染性腹泻,用抗感染药物,如果是非感染性腹泻,可:   
①调整及控制饮食:给予消化道适当休息,减轻其负担。可以暂停添加辅食及不易消化的食物。适当减少哺乳量及哺乳次数或延长两次哺乳之间的时间。
②母乳喂养的母亲在婴儿腹泻期间饮食要清淡一些,喂奶前饮用温开水一碗,切勿轻易断母乳。在喂奶时尽量让婴儿吃前部分易消化的母乳,避免吃最后部分含 脂肪较多的母乳。
③人工喂养的婴儿应吃脱脂奶粉或将牛奶烧开冷却后去掉上面的脂肪,如此烧煮反复脱脂3次就成了脱脂奶。腹泻较重者,要减少奶量并用水稀释。可用1份牛 乳加1/2份水或l/2份米汤,必要时可用l份牛乳加l份水或米汤稀释。待婴儿腹泻好转后逐渐增加直至全奶。
④腹泻而脱水者要补充体内丧失的水分,可采用世界卫生组织推荐的“口服补液”(药房有售,其中包括食盐即氯化钠3.5克、氯化钾1.5克、葡萄糖20 克、碳酸氢纳1.5克,加温开水1000毫升,约4玻璃杯)其成分比例合理,有利于吸收,喂服时用茶匙一匙一匙吃,少量多次才能使胃内眼收。
若在偏僻地区买不到“口服补液”时,可以在家庭里自制简易口服液。配方是:食盐1/2茶匙,蔗糖2汤匙,加开水4玻璃杯。口服补液是最经济、最有效的 防治方法。喂服得当,可以使婴儿停止呕吐,减少腹泻,及早康复。
⑤消化不良者如仅有轻度腹泻,不需用药物止泻,只需采用以下几种方法,也可获得痊愈。
服用胡萝卜汤,每日2次~3次,每次2汤匙~3汤匙;服用苹果泥(取苹果一只洗净去皮去核,切成小块,放入碗内加少量白糖隔水蒸,蒸熟后捣拦成泥状服 用)。因胡萝卜和苹果含有果胶,能使大便成形,并且还能吸附肠内的有害物质,帮助治愈腹泻。
鱼蛋白粉加入米汤内服用,每日5克,分1次~2次服用。半岁以上的婴儿可服用鱼蛋白粉粥或烂面条。由于鱼蛋白粉内蛋白质质量高,脂肪量低,而且没有乳 糖,对婴儿腹泻特别有利。轻型腹泻一般服用3日~5日就痊愈。
焦米汤和焦米粥是用米或米粉加水煮成。可以少量多次喂服。由于米内含碳水化合物,最容易消化吸收,而且没有乳糖也不易发酵、胀气,米内所含的蛋白质不发生过敏反应。焦的部分能吸附有害物质,对控制腹泻很有利。
山楂炭或炮姜炭是将山楂去核或炮姜去皮,然后炒成炭,研成细末。服用时每次用0.3克-0.6克,日服3次,用温开水化服,可加少许白糖调昧。山楂能 帮助消化,生姜能解毒,对腹泻的防治有利。
维生素B1、维生素C、乳酶生每日服3次,每次各1片,研碎和水拌匀喂服,可在服“口服补液”的同时加服。因为维生素Bl能促进糖类完成代谢过程,不 使积酸发气,维生素C能增加抵抗力,乳酶生能帮助消化乳类。它们都是控制腹泻时常用的药。
⑥腹泻时大便次数增多,要及时换尿布。每次大便后要用温水洗净臀部,擦干并涂上护肤油脂或爽身粉,以防臀部糜烂发生“红臀”。
⑦注意腹部保暖,以免受凉后肠蠕动更快而加重腹泻。

婴儿拉肚子的食疗方法   

  婴儿腹泻有伤食型、风寒型、湿热型和脾虚型。只有区别不同症状,选择食疗,才能收到预期效果。
伤食型
伤食型腹泻有腹胀腹疼、泻前哭吵、大便酸臭如蛋花状、口臭、不思食等症状,可采用以下食疗:
荠菜汤:取鲜荠菜30克,加水200毫升,文火煎至50毫升,1次服完,每日2~3次。
苹果汤:取苹果1只洗净,连皮切碎,加水250毫升和少量食盐,煎汤代茶饮。适用于1岁以内的儿童,大于1岁者,可吃苹果泥。
风寒型  
风寒型腹泻有大便稀薄如泡沫状、色淡、臭气少、肠鸣腹痛,或伴有发热、鼻塞流涕等症状,可采用以下食疗:
姜茶饮:取绿茶、干姜丝各3克,放在瓷杯中,以沸 水150毫升冲泡,加盖温浸10分钟代茶随意饮服。
糯米固肠汤:糯米30克(略炒),山药15克,共煮粥,熟后加胡椒末少许、白糖适量调服。
湿热型

湿热型
腹泻有大便如水样伴有不消化食物、呈草绿色或黄色、有少量粘液,小便黄少等症状,可采用以下食疗:
乌梅汤:乌梅10只,加水500毫升煎汤,酌加红糖,以之代茶,每日服数次。
橘枣茶:取红枣10只,洗净晾干,放在铁锅内炒焦,取洁净橘皮10克,二味一起放入保温杯内,用沸水浸泡10分钟,饭后代茶饮,每日分2次服。
脾虚型
  脾虚型腹泻有时泻时止,或久泻不愈、大便稀薄或带有白色奶块、食后便泻、面色苍白等症状,可采用以下食疗:
胡萝卜汤:取鲜胡萝卜250克洗净,连皮切成块状,放人锅内,加水适量煎烂,去渣取汁钦.每日分2~3次。
栗子汤:取栗子3~5枚,去壳捣烂,加适量水煮成糊状,再加白糖适量调味,每日分2~3次。

  医生建议
  1、母乳喂养,不宜在夏季断奶。
2、合理安排饮食,讲究卫生、消毒食具。
3、添加辅食时,每次只限一种且渐渐加量。
4、将病人隔离。
5、勤换尿布,观察病情,做好呕吐及腹泻的处理。

家庭护理经验
1、平时常加用肥皂洗手,养成良好的个人卫生习惯及环境卫生。
2、不使用没有消毒过之地下水、井水或山泉水。
3、不吃生冷食物,食物应充分煮熟并以热食为宜。
4、注意奶瓶消毒及食物保存方式。
5、给予安静舒适的环境。
6、注意宝宝体温变化,测量体温时宜用腋下测温或量耳温,避免由***测温以减少刺激。
7、观察宝宝脸部表情、皮肤紧张度及干燥度、排尿情形、意识状态。
8、观察大便的颜色、性质、量、气味、次数。
9、注意排泄物及换洗衣物的处理,预防传染他人。
10、常换尿布、大便后用温水洗净,保持臀部清洁干燥,避免红臀产生。
11、补充水分及电解质。
12、可
将最近一次的大便带来给医师看,以帮助医师论断。
13、配合医师的指示服药、禁食及饮食指导。

另有一剂偏方(不适合每一个人):

  我生宝宝时,医院的医生曾告诉我宝宝拉肚子时熬萝卜水给他喝,后来女儿拉肚子只要不严重我都给她喝萝卜水,很管用,而且没有副作用.记住不能用胡萝卜,用青萝卜或红萝卜都行,熬出来有点甜,小孩喜欢喝.

利用imageMagicK制作有背景色的缩略图

原文如下:附本人翻译(翻译水平其差,可以忽略直接看英文)

I know, it's been a while since I last blogged. This is because a lot of things are happening in my personal life. I recently relocated to London from Finland and started a new job. Things are quite busy but I will try to post an example now and then. In the meanwhile I would like to hear about sites using Imagick, so if your project is not super secret please post an url and maybe a small explanation what you're doing with Imagick on the site. This is purely for my personal interest.

Anyway, to the point. Today's example originates from a question asked by a user. How do I thumbnail the image inside given dimensions proportionally and fill the "blank" areas with a color? Well, the answer is here :)

The code is for Imagick 2.1.0 but adapting to older versions should not be hard.

翻译如下:

我知道现在离我的博客更新有一段时间了,这主要是因为最近发生了很多事。最近我找了份新工作,使我从芬兰搬到了伦敦,工作也非常忙,所以我在这里仅仅只发一个示例。同时我很高兴听到很多网站使用了imagick,我也希望如果您的项目不是很保密的话,是否能够发个链接及少量的注释以说明您的站点是如何使用Imagek的。顺便说一声,这完全是我个人的兴趣。

OK,上重头菜。今天的例子起源于一个用户的问题,那就是如果在为一张图片按比例做缩略图的时候,怎么为留空的地方用其他颜色填充。这个例子就是我的回复。

代码是FOR ImagicK 2.1.0版本,当然要改成以前的老版本代码也不是件难事。

下面就是代码了:

<?php
/* Define width and height of the thumbnail */
/* 定义缩略图的长宽*/
$width = 100;
$height = 100;

/* Instanciate and read the image in */
/*创建一个对象,同时读回源图*/
$im = new Imagick( "test.png" );
/* Fit the image into $width x $height box
The third parameter fits the image into a "bounding box" */
/*按照比例进行缩放*/
$im->thumbnailImage( $width, $height, true );
/* 按照缩略图大小创建一个有颜色的图片 */
$canvas = new Imagick();
$canvas->newImage( $width, $height, 'pink', 'png' );
/* 取得缩图的实际大小 */
$geometry = $im->getImageGeometry();
/* 计算高度 */
$x = ( $width - $geometry['width'] ) / 2;
$y = ( $height - $geometry['height'] ) / 2;
/* 合并图片 */
$canvas->compositeImage( $im, imagick::COMPOSITE_OVER, $x, $y );
/* 输出图片*/
header( "Content-Type: image/png" );
echo $canvas;
?>

膘叔,上图片

源图:

b97200df758a3c022937df8fb60d66dc

缩图:

086d2bb302b8971e878da2f4a1e50c41

PHP5.30的更新列表

PHP5.30的更新列表

啥也不说了。自己看列表吧。。原来,更新了这么多啊。。。。。。现在还是alpha,等到了stable,那我应该不应该更新呢》》》

PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 200?, PHP 5.3.0 Alpha 2
- Removed shebang line check from CGI sapi (it is checked by scanner) (Dmitry)

- Fixed bug #45696 (Not all DateTime methods allow method chaining). (Derick)
- Fixed bug #45545 (DateInterval has a limitation of 4 chars for ISO
durations). (Derick)
- Fixed bug #45406 (session.serialize_handler declared by shared extension
fails). (Kalle, oleg dot grenrus at dynamoid dot com)
- Fixed bug #44100 (Inconsistent handling of static array declarations with
duplicate keys). (Dmitry)
- Fixed bug #43008 (php://filter uris ignore url encoded filternames and can't
handle slashes). (Arnaud)

01 Aug 2008, PHP 5.3.0 Alpha 1
- Upgraded bundled PCRE to version 7.7. (Nuno)
- Upgraded bundled PDO sqlite to version 3.5.9. (Scott)

- Moved extensions to PECL (Pierre):
. ext/fdf
. ext/ncurses
. ext/sybase (not maintained anymore, sybase_ct has to be used instead)

- Removed the experimental RPL (master/slave) functions from mysqli. (Andrey)
- Removed zend.ze1_compatibility_mode. (Dmitry)
- Deprecated ticks support. (Felipe)

- Changed PCRE, Reflection and SPL extensions to be always enabled. (Marcus)
- Changed md5() to use improved implementation. (Solar Designer, Dmitry)
- Changed HTTP stream wrapper to accept any code between and including
200 to 399 as successful. (Mike, Noah Fontes)

- Improved PHP syntax and semantics:
. Added lambda functions and closures. (Christian Seiler, Dmitry)
. Added "jump label" operator (limited "goto"). (Dmitry, Sara)
. Added NOWDOC syntax. (Gwynne Raskind, Stas, Dmitry)
. Added HEREDOC syntax with double quotes. (Lars Strojny, Felipe)
. Added support for using static HEREDOCs to initialize static variables and
class members or constants. (Matt)
. Improved syntax highlighting and consistency for variables in double-quoted
strings and literal text in HEREDOCs and backticks. (Matt)
. Added "?:" operator. (Marcus)
. Added support for namespaces. (Dmitry, Stas, Gregory)
. Added support for Late Static Binding. (Dmitry, Etienne Kneuss)
. Added support for __callStatic() magic method. (Sara)
. Added forward_static_call(_array) to complete LSB. (Mike Lively)
. Added support for dynamic access of static members using $foo::myFunc().
(Etienne Kneuss)
. Improved checks for callbacks. (Marcus)
. Added __DIR__ constant. (Lars Strojny)
. Added PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION,
PHP_EXTRA_VERSION, PHP_VERSION_ID, PHP_ZTS and PHP_DEBUG constants.
(Pierre)
. Added new error modes E_USER_DEPRECATED and E_DEPRECATED.
E_DEPRECATED is used to inform about stuff being scheduled for removal
in future PHP versions. (Lars Strojny, Felipe, Marcus)
. Added "request_order" INI variable to control specifically $_REQUEST
behavior. (Stas)
. Added support for exception linking. (Marcus)
. Added ability to handle exceptions in destructors. (Marcus)

- Improved PHP runtime speed and memory usage:
. Substitute persistent constants by their values at compile time. (Matt)
. Optimized ZEND_SIGNED_MULTIPLY_LONG(). (Matt)
. Removed direct executor recursion. (Dmitry)
. Use fastcall calling convention in executor on x86. (Dmitry)
. Use IS_CV for direct access to $this variable. (Dmitry)
. Use ZEND_FREE() opcode instead of ZEND_SWITCH_FREE(IS_TMP_VAR). (Dmitry)
. Lazy EG(active_symbol_table) initialization. (Dmitry)
. Optimized ZEND_RETURN opcode to not allocate and copy return value if it is
not used. (Dmitry)
. Replaced all flex based scanners with re2c based scanners.
(Marcus, Nuno, Scott)
. Added garbage collector. (David Wang, Dmitry).
. Improved PHP binary size and startup speed with GCC4 visibility control.
(Nuno)
. Improved engine stack implementation for better performance and stability.
(Dmitry)
. Improved memory usage by moving constants to read only memory.
(Dmitry, Pierre)
. Changed exception handling. Now each op_array doesn't contain
ZEND_HANDLE_EXCEPTION opcode in the end. (Dmitry)
. Optimized require_once() and include_once() by eliminating fopen(3) on
second usage. (Dmitry)
. Optimized ZEND_FETCH_CLASS + ZEND_ADD_INTERFACE into single
ZEND_ADD_INTERFACE opcode. (Dmitry)
. Optimized string searching for a single character.
(Michal Dziemianko, Scott)
. Optimized interpolated strings to use one less opcode. (Matt)

- Improved php.ini handling: (Jani)
. Added ".htaccess" style user-defined php.ini files support for CGI/FastCGI.
. Added support for special [PATH=/opt/httpd/www.example.com/] and
[HOST=www.example.com] sections. Directives set in these sections can
not be overridden by user-defined ini-files or during runtime.
. Added better error reporting for php.ini syntax errors.
. Allowed using full path to load modules using "extension" directive.
. Allowed "ini-variables" to be used almost everywhere ini php.ini files.
. Allowed using alphanumeric/variable indexes in "array" ini options.
. Added 3rd optional parameter to parse_ini_file() to specify the scanning
mode of INI_SCANNER_NORMAL or INI_SCANNER_RAW. In raw mode option values
and section values are treated as-is.
. Fixed get_cfg_var() to be able to return "array" ini options.
. Added optional parameter to ini_get_all() to only retrieve the current
value. (Hannes)

- Improved and cleaned CGI code:
. FastCGI is now always enabled and can not be disabled.
See sapi/cgi/CHANGES for more details. (Dmitry)
. Added CGI SAPI -T option which can be used to measure execution
time of script repeated several times. (Dmitry)

- Improved streams:
. Fixed confusing error message on failure when no errors are logged. (Greg)
. Added stream_supports_lock() function. (Benjamin Schulz)
. Added "ignore_errors" option to http fopen wrapper. (David Zulke, Sara)
. Added context parameter for copy() function. (Sara)
. Added "glob://" stream wrapper. (Marcus)
. Added "params" as optional parameter for stream_context_create(). (Sara)
. Added ability to use stream wrappers in include_path. (Gregory, Dmitry)

- Improved hash extension:
. Changed mhash to be a wrapper layer around the hash extension. (Scott)
. Added hash_copy() function. (Tony)
. Added sha224 hash algorithm to the hash extension. (Scott)

- Improved mbstring extension:
. Added "mbstring.http_output_conv_mimetypes" INI directive that allows
common non-text types such as "application/xhtml+xml" to be converted
by mb_output_handler(). (Moriyoshi)

- Improved OCI8 extension (Chris Jones/Oracle Corp.):
. Added Database Resident Connection Pooling (DRCP) and Fast
Application Notification (FAN) support.
. Added support for Oracle External Authentication (not supported
on Windows).
. Improve persistent connection handling of restarted DBs.
. Added SQLT_AFC (aka CHAR datatype) support to oci_bind_by_name.
. Fixed bug #41069 (Seg fault with query over DB link).
. Fixed define of SQLT_BDOUBLE and SQLT_BFLOAT constants with Oracle
10g ORACLE_HOME builds.
. Changed default value of oci8.default_prefetch from 10 to 100.
. Fixed PECL bug #12431 (OCI8 ping functionality is broken).
. Allow building (e.g from PECL) the PHP 5.3-based OCI8 code with
PHP 4.3.9 onwards.

- Improved OpenSSL extension: (Dmitry)
. Added support for OpenSSL digest and cipher functions.
. Added access to internal values of DSA, RSA and DH keys.

- Improved pcntl extension: (Arnaud)
. Added pcntl_signal_dispatch().
. Added pcntl_sigprocmask().
. Added pcntl_sigwaitinfo().
. Added pcntl_sigtimedwait().

- Improved SOAP extension:
. Added support for element names in context of XMLShema's <any>. (Dmitry)
. Added ability to use Traversable objects instead of plain arrays.
(Joshua Reese, Dmitry)
. Fixed possible crash bug caused by an uninitialized value. (Zdash Urf)

- Improved SPL extension:
. Added SPL to list of standard extensions that cannot be disabled. (Marcus)
. Added ability to store associative information with objects in
SplObjectStorage. (Marcus)
. Added ArrayAccess support to SplObjectStorage. (Marcus)
. Added SplDoublyLinkedList, SplStack, SplQueue classes. (Etienne)
. Added FilesystemIterator. (Marcus)
. Added GlobIterator. (Marcus)
. Added SplHeap, SplMinHeap, SplMaxHeap, SplPriorityQueue classes. (Etienne)
. Added new parameter $prepend to spl_autoload_register(). (Etienne)
. Added FixedArray. (Etienne, Tony)
. Added delaying exceptions in SPL's autoload mechanism. (Marcus)
. Added RecursiveTreeIterator. (Arnaud, Marcus)
. Added MultipleIterator. (Arnaud, Marcus, Johannes)

- Improved Zend Engine:
. Added "compact" handler for Zend MM storage. (Dmitry)
. Added "+" and "*" specifiers to zend_parse_parameters(). (Andrei)
. Added concept of "delayed early binding" that allows opcode caches to
perform class declaration (early and/or run-time binding) in exactly
the same order as vanilla PHP. (Dmitry)

- Improved crypt() function: (Pierre)
. Added Blowfish and extended DES support. (Using Blowfish implementation
from Solar Designer).
. Made crypt features portable by providing our own implementations
for crypt_r and the algorithms which are used when OS does not provide
them. PHP implementations are always used for Windows builds.

- Added new extensions:
. Added fileinfo extension as replacement for mime_magic extension. (Derick)
. Added intl extension for Internationalization. (Ed B., Vladimir I.,
Dmitry L., Stanislav M., Vadim S., Kirti V.)
. Added mysqlnd extension as replacement for libmysql for ext/mysql, mysqli
and PDO_mysql. (Andrey, Johannes, Ulf)
. Added phar extension for handling PHP Archives. (Greg, Marcus, Steph)
. Added SQLite3 extension. (Scott)

- Added new date/time functionality: (Derick)
. date_parse_from_format(): Parse date/time strings according to a format.
. date_create_from_format()/DateTime::createFromFormat(): Create a date/time
object by parsing a date/time string according to a given format.
. date_get_last_errors()/DateTime::getLastErrors(): Return a list of warnings
and errors that were found while parsing a date/time string through:
. strtotime() / new DateTime
. date_create_from_format() / DateTime::createFromFormat()
. date_parse_from_format().
. support for abbreviation and offset based timezone specifiers for
DateTime::getOffset() and DateTime::getName().
. support for selectively listing timezone identifiers by continent or
country code through timezone_identifiers_list() /
DateTimezone::listIdentifiers().
. timezone_location_get() / DateTimezone::getLocation() for retrieving
location information from timezones.
. date_timestamp_set() / DateTime::setTimestamp() to set a Unix timestamp
without invoking the date parser. (Scott, Derick)
. date_timestamp_get() / DateTime::getTimestamp() to retrieve the Unix
timestamp belonging to a date object.
. two optional parameters to timezone_transitions_get() /
DateTimeZone::getTranstions() to limit the range of transitions being
returned.
. support for "first/last day of <month>" style texts.
. support for date/time strings returned by MS SQL.
. support for serialization and unserialization of DateTime objects.
. support for diffing date/times through date_diff() / DateTime::diff().
. support for adding/subtracting weekdays with strtotime() and
DateTime::modify().
. DateInterval class to represent the difference between two date/times.
. support for parsing ISO intervals for use with DateInterval.
. date_add() / DateTime::add(), date_sub() / DateTime::sub() for applying an
interval to an existing date/time.
. proper support for "this week", "previous week"/"last week" and "next week"
phrases so that they actually mean the week and not a seven day period
around the current day.
. support for "<xth> <weekday of" and "last <weekday> of" phrases to be used
with months - like in "last saturday of februari 2008".
. DatePeriod class which supports iterating over a DateTime object applying
DateInterval on each iteration, up to an end date or limited by maximum
number of occurences.

- Added array_replace() and array_replace_recursive() functions. (Matt)
- Added ReflectionProperty::setAccessible() method that allows non-public
property's values to be read through ::getValue(). (Derick)
- Added msg_queue_exists() function to sysvmsg extension. (Benjamin Schulz)
- Added Firebird specific attributes that can be set via PDO::setAttribute()
to control formatting of date/timestamp columns: PDO::FB_ATTR_DATE_FORMAT,
PDO::FB_ATTR_TIME_FORMAT and PDO::FB_ATTR_TIMESTAMP_FORMAT. (Lars W)
- Added gmp_testbit() function. (Stas)
- Added icon format support to getimagesize(). (Scott)
- Added LDAP_OPT_NETWORK_TIMEOUT option for ldap_set_option() to allow
setting network timeout (FR #42837). (Jani)
- Added optional escape character parameter to fgetcsv(). (David Soria Parra)
- Added an optional parameter to strstr() and stristr() for retrieval of either
the part of haystack before or after first occurrence of needle.
(Johannes, Felipe)
- Added xsl->setProfiling() for profiling stylesheets. (Christian)
- Added long-option feature to getopt() and made getopt() available also on
win32 systems by adding a common getopt implementation into core.
(David Soria Parra, Jani)
- Added support for optional values, and = as separator, in getopt(). (Hannes)
- Added lcfirst() function. (David C)
- Added PREG_BAD_UTF8_OFFSET_ERROR constant. (Nuno)
- Added native support for asinh(), acosh(), atanh(), log1p() and expm1().
(Kalle)
- Added inet_pton() and inet_ntop() also for Windows platforms. (Kalle)
- Added mcrypt_create_iv() also for Windows platforms. (Pierre)

- Fixed html_entity_decode() incorrectly converting numeric html entities
to different characters with cp1251 and cp866. (Scott)
- Fixed an issue in date() where a : was printed for the O modifier after a P
modifier was used. (Derick)
- Fixed exec() on Windows to not eat the first and last double quotes. (Scott)

- Fixed PECL bug #12794 (PDOStatement->nextRowset() doesn�t work). (Johannes)
- Fixed PECL bug #12401 (Add support for ATTR_FETCH_TABLE_NAMES). (Johannes)

- Fixed bug #45622 (isset($arrayObject->p) misbehaves with ArrayObject::
ARRAY_AS_PROPS set). (robin_fernandes at uk dot ibm dot com, Arnaud)
- Fixed bug #45614 (ArrayIterator::current(), ::key() can show 1st private
prop of wrapped object). (robin_fernandes at uk dot ibm dot com, Arnaud)
- Fixed bug #45571 (ReflectionClass::export() shows superclasses' private
static methods). (robin_fernandes at uk dot ibm dot com)
- Fixed bug #45540 (stream_context_create creates bad http request). (Arnaud)
- Fixed bug #45430 (windows implementation of crypt is not thread safe).
(Pierre)
- Fixed bug #45345 (SPLFileInfo::getPathInfo() returning dir info instead of
file info). (Etienne)
- Fixed bug #45179 (--with-mysql-sock fails to compile & work). (Andrey)
- Fixed bug #45038 (Crash when using DateTimeZone object returned by
Date::getTimezone). (Joe Orton, Derick)
- Fixed bug #44769 (declaring private magic methods should throw error).
(Felipe)
- Fixed bug #44913 (Segfault when using return in combination with nested loops
and continue 2). (Dmitry)
- Fixed bug #44899 (__isset usage changes behavior of empty()). (Etienne)
- Fixed bug #44897 (failed to prepare statement). (Andrey)
- Fixed bug #44849 (imagecolorclosesthwb() is not available on Windows).
(Kalle)
- Fixed bug #44805 (rename() function is not portable to Windows). (Pierre)
- Fixed bug #44779 (filter returns NULL in CLI when it shouldn't). (Arnaud)
- Fixed bug #44742 (timezone_offset_get() causes segmentation faults). (Derick)
- Fixed bug #44660 (Indexed and reference assignment to propery of non-object
don't trigger warning). (Dmitry)
- Fixed bug #44648 (Attribute names not checked for wellformedness). (Rob)
- Fixed bug #44414 (Incomplete reporting about abstract methods). (Dmitry)
- Fixed bug #44390 (mysqli_bind_param/bind_result and Object member variables).
(Andrey)
- Fixed bug #44352 (mysqli_connect_error() false negative for host errors).
(Andrey)
- Fixed bug #44336 (Improve pcre UTF-8 string matching performance).
(frode at coretrek dot com, Nuno)
- Fixed bug #44301 (Segfault when an exception is thrown on persistent
connections). (Martin Jansen)
- Fixed bug #44257 (timelib_tz_lookup_table must use float for gmtoffset).
(Derick, iuri dot fiedoruk at hp dot com).
- Fixed bug #44214 (Crash using preg_replace_callback() and global variable).
(Nuno, Scott)
- Fixed bug #44034 (FILE_IGNORE_NEW_LINES in file() does not work as expected
when lines end in \r\n). (Ilia)
- Fixed bug #43960 (strtotime() returns timestamp in the future when given a
bogus string). (Derick)
- Fixed bug #43832 (mysqli_get_charset() doesn't expose charset comment).
(Andrey)
- Fixed bug #43808 (date_create never fails (even when it should)). (Derick)
- Fixed bug #43527 (DateTime created from a timestamp reports environment
timezone). (Derick)
- Fixed bug #43452 (strings containing a weekday, or a number plus weekday
misbehaved if the current day-of-week was same as the one in the phrase).
(Derick)
- Fixed bug #43426 (crash on nested call_user_func() calls). (Dmitry)
- Fixed bug #43323 (Wrong count abstract methods). (Felipe, Dmitry)
- Fixed bug #43261 (Use ^ as the escape with escapeshellcmd() on Windows).
(Scott)
- Fixed bug #43075 (Support 2007-11-01T24:00:00+00:00). (Derick)
- Fixed bug #43003 (Invalid timezone reported for DateTime objects constructed
using a timestamp). (Derick)
- Fixed bug #43143 (Warning about empty IV with MCRYPT_MODE_ECB). (Derick)
- Fixed bug #43136 (possible crash on script execution timeout.
The EG(function_state_ptr) is completely removed,
EG(current_execute_data)->function_state must be used instead). (Dmitry)
- Fixed bug #42952 (soap cache file is created with insecure permissions).
(Dmitry)
- Fixed bug #42868 (Floats cast to integer produce unpredictable results).
(Zoe Slattery)
- Fixed bug #42848 (Status: header incorrect under FastCGI). (Dmitry)
- Fixed bug #42773 (WSDL error causes HTTP 500 Response). (Dmitry)
- Fixed bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines).
(Nuno)
- Fixed bug #42736 (xmlrpc_server_call_method() crashes). (Tony)
- Fixed bug #42663 (gzinflate() try to allocate all memory with truncated
data). (Arnaud)
- Fixed bug #42657 (ini_get() returns incorrect value when default is NULL).
(Jani, Scott)
- Fixed bug #42637 (SoapFault : Only http and https are allowed). (Bill Moran)
- Fixed bug #42548 (mysqli PROCEDURE calls can't return result sets). (Hartmut)
- Fixed bug #42509 (gmp leaks memory when gmp_init() not used). (Stas)
- Fixed bug #42499 (PDO_MYSQL: multi-statement execution via PDO::exec() makes
connection unusable). (Johannes)
- Fixed bug #42443 (PDO SQLite driver binds integers and booleans as strings).
(Scott)
- Fixed bug #42284 (duplicate of #39700). (Lars W)
- Fixed bug #42203 (Clear SQLite result sets before closing database). (Scott)
- Fixed bug #42190 (Constructing DateTime with TimeZone Indicator invalidates
DateTimeZone). (Derick)
- Fixed bug #42069 (parse_ini_file() allows using some non-alpha numeric
characters). (Jani)
- Fixed bug #41997 (pdo_mysql: stored procedure call returning single rowset
blocks future queries). (Johannes)
- Fixed bug #41996 (Problem accessing Oracle ROWID). (Martin Jansen)
- Fixed bug #41599 (setTime() fails after modify() is used). (Derick)
- Fixed bug #41522 (PDO firebird driver returns null if it fails to connect).
(Lars W)
- Fixed bug #41135 (PDO SQLite driver binds blobs as strings,
use sqlite3_bind_blob() to stop errors with null bytes). (Scott)
- Fixed bug #39822 (new PDO() doesn't work with firebird). (Lars W)
- Fixed bug #39700 (NUMERIC error when result precision are 7,8 or 12-14 ).
(Lars W)
- Fixed bug #39457 (Multiple invoked OO connections never close). (Andrey)
- Fixed bug #39397 (invalid statement handle in Unknown on line 0). (Lars W)
- Fixed bug #39346 (Unsetting a static variable inside a destructor causes
segfault later on). (Dmitry)
- Fixed bug #39127 (Old-style constructor fallbacks produce strange results).
(Tony)
- Fixed bug #39056 (Interbase NUMERIC data type error). (Lars W)
- Fixed bug #39018 (Error control operator '@' fails to suppress "Uninitialized
string offset"). (Felipe)
- Fixed bug #38468 (Unexpected creation of cycle). (Dmitry)
- Fixed bug #37964 (Reflection shows private methods of parent class).
(Felipe, Marcus)
- Fixed bug #37911 (preg_replace_callback() ignores named groups). (Nuno)
- Fixed bug #37076 (SimpleXML ignores .=). (Felipe, Marcus)
- Fixed bug #36128 (Interbase PDO - timestamp columns return NULL). (Lars W)
- Fixed bug #35386 (firebird: first row is null). (Lars W)
- Fixed bug #35163 (Array elements can lose references). (Dmitry)
- Fixed bug #32330 (session_destroy, "Failed to initialize storage module",
custom session handler). (Gwynne)
- Fixed bug #32143 (ibase_query() causing IBserver 7 crash with NULL param as
link-id). (Lars W)
- Fixed bug #30907 (ibase_query() crashes (same bug as #32143). (Lars W)
- Fixed bug #30690 (Resource handle from ibase_execute becomes invalid after
return). (Lars W)
- Fixed bug #29044 (compact() does not have infinite recursion protection).
(Tony)
- Fixed bug #27372 (parse error loading browscap.ini at apache startup).
(Jani)